-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
completions/tmux: dynamic completions for all tmux subcommands and flags using tmux lscm
#10855
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tmux lscm workstmux subcommands when tmux lscm works
cf2d2a7 to
760ee22
Compare
ilyagr
commented
Nov 18, 2024
tmux subcommands when tmux lscm workstmux subcommands and flags when tmux lscm works
8ec284b to
b932873
Compare
tmux subcommands and flags when tmux lscm workstmux subcommands and flags with tmux lscm
tmux subcommands and flags with tmux lscmtmux subcommands and flags using tmux lscm
b932873 to
8ea5c98
Compare
For example, `tmux shell<tab>` now completes to `if-shell` and `run-shell`, though no additional information is provided.
These dynamic completions are exhaustive, but not as well-documented or as ergonomic as the manual completions. So, any manual completions should override them.
Make `tmux lscm <tab>` work.
8ea5c98 to
5a37adb
Compare
ilyagr
added a commit
to ilyagr/fish-shell
that referenced
this pull request
Jan 20, 2025
This documents some non-argument options for the window and panes commands. The choice of what to document is somewhat arbitrary, this commit is biased towards options that I find confusing or misleading without documentation (is `-a` "all" or "after"?) and the command that seem more useful to me. I also didn't cover the options that would be covered by fish-shell#10855 (though this PR can be used independently).
Member
|
Cool, this works well for me. |
zanchey
pushed a commit
that referenced
this pull request
Jan 28, 2025
This documents some non-argument options for the window and panes commands. The choice of what to document is somewhat arbitrary, this commit is biased towards options that I find confusing or misleading without documentation (is `-a` "all" or "after"?) and the command that seem more useful to me. I also didn't cover the options that would be covered by #10855 (though this PR can be used independently). I'm not sure how much difference this made, it might not matter at all.
Member
zanchey
pushed a commit
that referenced
this pull request
Jan 28, 2025
This documents some non-argument options for the window and panes commands. The choice of what to document is somewhat arbitrary, this commit is biased towards options that I find confusing or misleading without documentation (is `-a` "all" or "after"?) and the command that seem more useful to me. I also didn't cover the options that would be covered by #10855 (though this PR can be used independently). I'm not sure how much difference this made, it might not matter at all. (cherry picked from commit f241187)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Update: This now completes all flags and all commands. So,
tmux if-shell -<TAB>now works as well.Original description: For example,
tmux shell<tab>now completes toif-shellandrun-shell, thoughno additional information is provided.
This PR and #10854 complement each other, but either could be used independently from the other if necessary.
TODOs: