You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are multiple alternatives to consider when completing an Argument with the cursor not being at the end of the line/argument.
Consider a command load that takes a Filename, assume there is a file project/LICENSE, the | indicates the cursor position:
load project/LICE|XXX
# possible situations after hitting tab
load project/LICENSE |XXX
load project/LICENSE
When the suffix matches the candidate, there are these possibilities:
load project/LICE|NS
# possible situations after hitting tab
load project/LICENSE |NS
load project/LICENSE |
Different completion frameworks do this differently (compare bash, ipython, Eclipse, IntelliJ)
I believe both strategies can be considered useful, so it would be nice if JLine supported both. I might have time to work on a PR, but first I want to check whether this is considered a good idea.
The text was updated successfully, but these errors were encountered:
HI,
There are multiple alternatives to consider when completing an Argument with the cursor not being at the end of the line/argument.
Consider a command
load
that takes a Filename, assume there is a file project/LICENSE, the|
indicates the cursor position:When the suffix matches the candidate, there are these possibilities:
Different completion frameworks do this differently (compare bash, ipython, Eclipse, IntelliJ)
I believe both strategies can be considered useful, so it would be nice if JLine supported both. I might have time to work on a PR, but first I want to check whether this is considered a good idea.
The text was updated successfully, but these errors were encountered: