-
Notifications
You must be signed in to change notification settings - Fork 365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FR: Dynamic completion should suggest options only when input is prefixed with -
#5201
Comments
What shell are you using? With $ jj <TAB>
abandon (Abandon a revision)
absorb (Move changes from a revision into the stack of mutable revisions)
backout (Apply the reverse of a revision on top of another revision)
bookmark (Manage bookmarks [default alias: b])
branch (Manage bookmarks [default alias: b])
cat (Print contents of files in a revision)
chmod (Sets or removes the executable bit for paths in the repo)
commit (Update the description and create a new change on top)
config (Manage config options)
debug (Low-level commands not intended for users)
desc (Update the change description or other metadata)
describe (Update the change description or other metadata)
diff (Compare file contents between two revisions)
…and 39 more rows
$ jj log -<TAB>
-h --help (Print help (see more with '--help'))
-l
-n --limit (Limit number of revisions to show)
-p --patch (Show patch)
-R --repository (Path to repository to operate on)
-r --revisions (Which revisions to show)
-s --summary (For each path, show only whether it was modified, added, or deleted)
-T --template (Render each revision using the given template)
--at-op --at-operation (Operation to load the repo at)
--color (When to colorize output (always, never, debug, auto))
--color-words (Show a word-level diff with changes indicated only by color)
--config (Additional configuration options (can be repeated))
--config-file (Additional configuration files (can be repeated))
…and 16 more rows |
I am using
|
As you can imagine, this get unwieldy when trying to find a revision from the suggestions etc. |
In your second example as well, ideally (IMO) you should not get suggestions for options but only revisions, unless you had typed |
I had not typed the |
Is your feature request related to a problem? Please describe.
Dynamic completions suggest short form and long form options as well as completions for positional arguments. This adds a lot of clutter since they are intertwined with each other (presumably during sorting?), requiring visually filtering out positional suggestions from option names.
Describe the solution you'd like
Completions should only suggest options when the input is prefixed with at least
-
.Describe alternatives you've considered
Switching back to static completions which do have this behavior but none of the niceties.
Additional context
Thanks for this fantastic project! Cheers to everyone contributing. ❤️
The text was updated successfully, but these errors were encountered: