-
Notifications
You must be signed in to change notification settings - Fork 395
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
Dynamic completions wishlist #4763
Comments
Here's the features that I implemented for my custom Fish completions:
|
Awesome, thank you so much!
Is this different from telling the shell to use its built-in file path completion?
I have currently disabled it in my PR. We could allow it for those commands specifically, so we don't incur the performance overhead on commands where it doesn't matter. I have never tried it, but there is the file watcher option for snapshotting too, right? So if users run into performance problems, they could solve it for themselves that way. |
To clarify, here's the full original statement:
This will allow file completion of paths at a different revision e.g. |
Aah, I didn't think about sparse checkouts, that makes sense! |
Alright, I'm just about out of steam here. I'll carry the currently open PRs across the finish line, but I'm not planning to do more than that. The only thing remaining on the list right now is dynamic configuration keys. (e.g. If people come up with other cool completions, anyone should feel free to claim the work and not wait for me 🙂 |
Thank you!
I think the most valuable next item might be completion of revision arguments. |
That one is actually already merged: #4873 It just wasn't on the list here. (fixed now) I constantly had issues with editing the issue text. GitHub would always reset previous edits I had made. Very frustration. I'm never going to use GitHub issues as a "living document" anymore. (That's what we have version control for, right? 😄) |
Ah, I had missed that. So we just need to extend that to support completion of local and remote branches and tags then. |
True, that must've slipped off the list as well... edit: done #4900 |
Thanks so much for taking this up @senekor! I've been using the dynamic completions very happily and thrown away my custom Fish completions. |
That's great to hear! I always had a tab open with your completions as reference. They were a huge help, especially for the more difficult stuff like revisions and files. Btw. at least in fish, the dynamic completions can still be supplemented with custom ones without issue. This is very useful in combination with |
As dynamic completions are being worked on, let's use this issue to gather ideas for possible completions in one place. I'll try to keep the list in the issue description up to date according to the discussion below.
(probably not that useful...)
open questions:
jj commit/squash/split <TAB>
works without having to run another jj command first?-> No. Besides the performance impact, it would be confusing for users if hitting TAB in their shell could modify the state of their repository. Users can enable file watching if they want snapshotting to occur automatically.
places to scrape for ideas and implementations:
completions ofgit
-> The fish completions of git are 2.5k loc, I'm not reading that.
misc:
CompletionCandidate::display_order
to prioritize candidates appropriately andCompletionCandidate::help
to display useful information about each candidate.-> All the PRs include these where it's obviously appropriate / useful. Good enough for now.
The text was updated successfully, but these errors were encountered: