forked from scop/bash-completion
-
Notifications
You must be signed in to change notification settings - Fork 0
feat(tmux): new completion #3
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
Closed
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
c1e913e
to
f315cde
Compare
The path for the transaction history sqlite moved, the options have to be after the install subcommand
This still installs the vpnc command itself, which means we shouldn't actually lose coverage. Installing /usr/bin/vpnc brings vpnc-consoleuser, which then fails to install, see https://bugzilla.redhat.com/show_bug.cgi?id=2341517. Without this, I get conflicts about /usr/bin/vpnc and /usr/bin/vpnc-disconnect, between vpnc-consoleuser-0.5.3-48.svn550.fc41.x86_64 and vpnc-0.5.3-48.svn550.fc41.x86_64 Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>
test(docker): fix centos7 image build
https://github.com/tldr-pages/tldr-python-client/blob/fa495f2fb9f4a5b35729efa4b83807bc646c8f04/README.md#autocomplete Note: There is an alternative implementation of tldr [1], which does not support "--print-completion bash" but provides a separate completion file [2]. This should not cause a problem because we any way redirect stderr by "2>/dev/null". [1] https://github.com/tealdeer-rs/tealdeer [2] \ https://github.com/tealdeer-rs/tealdeer/blob/769ef4da20dcaa7c00ba638ab11f063b83d99b01/docs/src/installing.md?plain=1#L64
feat(shtab): add 3rd party fallback completion loader
2aa6779
to
2048252
Compare
From tmux/tmux#259 it doesn't look like the tmux maintainers were interested in having a bash completion script in the upstream repo. However, I added license headers to put these new files under either bash-completion's license or tmux's, in case they want it there in the future. I'm aware of a handful of existing tmux bash completion scripts, below. As far as I can tell, they all hard-code a decent amount of tmux's available options, commands, etc. Some are also abandoned and out of date with more recent versions of tmux. Rather than base this code off of those, I decided to implement completion using tmux's own introspection commands as much as possible. Hopefully that will reduce the ongoing maintenance work and make it stay up to date with most tmux changes automatically. This commit has a relatively minimal set of completions, see the TODO in _comp_cmd_tmux__value(). I have code for more completions in varying states of readiness, but this commit is already pretty large. I'll make follow-up PR(s) for those. I'm willing to maintain this script. (And I'm hoping that the design mentioned above will make that easier.) Existing implementations that I'm aware of: * https://github.com/Bash-it/bash-it/blob/master/completion/available/tmux.completion.bash * https://github.com/Boruch-Baum/tmux_bash_completion * https://github.com/imomaliev/tmux-bash-completion * scop#81 * https://github.com/srsudar/tmux-completion
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.
From tmux/tmux#24 it doesn't look like the tmux maintainers were interested in having a bash completion script in the upstream repo in 2019. I didn't ask again more recently, but I did make tmux/tmux#4455 and wasn't asked to include the script there. However, I added license headers to put these new files under either bash-completion's license or tmux's, in case the current or future tmux maintainers want it in tmux's repo in the future.
I'm aware of a handful of existing tmux bash completion scripts, below. As far as I can tell, they all hard-code a decent amount of tmux's available options, commands, etc. Some are also abandoned and out of date with more recent versions of tmux. Rather than base this code off of those, I decided to implement completion using tmux's own introspection commands as much as possible. Hopefully that will reduce the ongoing maintenance work and make it stay up to date with most tmux changes automatically.
This commit has a relatively minimal set of completions, see the TODO in _comp_cmd_tmux__value(). I have code for more completions in varying states of readiness, but this commit is already pretty large. I'll make follow-up PR(s) for those.
I'm willing to maintain this script. (And I'm hoping that the design mentioned above will make that easier.)
Existing implementations that I'm aware of:
https://github.com/Bash-it/bash-it/blob/master/completion/available/tmux.completion.bash https://github.com/Boruch-Baum/tmux_bash_completion https://github.com/imomaliev/tmux-bash-completion
scop#81
https://github.com/srsudar/tmux-completion