TMUX bash completion based on bash-it's tmux completion
Requires bash-completion 1.2 or higher
Available completions
- commands
- files
- sessions
- windows
TODO
- use
list-sessions -F
- check all cases for
complete -o default
Tmux bash completion
License: GNU General Public License v2.0
TMUX bash completion based on bash-it's tmux completion
Requires bash-completion 1.2 or higher
Available completions
TODO
list-sessions -F
complete -o default
tmux-bash-completion/completions/tmux
Line 69 in 509f018
I suppose this check should be for _init_completion
(without the s
)?
Hi, I maintain the AUR package for this project. While checking on a few things I noticed that it's unclear whether the script is licensed as GPL v2.0 only, or GPL v2.0 or later. Ideally, since you're using the GPL, the completion script should have a license header that specifies whether later versions may be used. See the license header instructions for details. Currently my package has it listed as the more restrictive GPL v2.0 only to be safe, but clarification would be appreciated so that I can make sure the metadata is accurate. Thank you!
Problem: When I try to write the tmux copy buffer to a file, tab completion doesn't work for the file name.
I copied text in my tmux session and tried redirect the output tmux show-buffer
to append it to an existing file, like this:
$ tmux show-buffer >> /tmp/mylog.txt
I typed /tmp/m
and hit tab to complete the filename but nothing happened.
The fix is to change this line:
complete -F _tmux tmux
to:
complete -o bashdefault -F _tmux tmux
The bash man page says -o bashdefault
will "Perform the rest of the default bash completions if the compspec generates no matches."
Hi!
Thank you for the help with the license. Another issue for maintainers is lack of formal releases, version numbers and so on. Is there anything that can be done here?
It also will be helpful to track changes for tmux releases (something like version 1.1 is compatible with tmux 2.3).
This project requires bash-completion to function, and it places its files in the same location as bash-completion
. It should be very easy to merge the code in this project into bash-completion
. This would mean that users do not have to install a separate package to use bash completion for tmux, as it would be available in the bash-completion
package, which is pre-installed on many Linux distributions.
If there is some reason that this project should remain separate, please enlighten me, but I think that it would be better for users to only need to install bash-completion
, the de facto standard for bash completion on Linux.
how to use it?
Hello,
It works perfectly when used with the default prefix C-b. When I changed the prefix to C-i, it works but I needs 2 tab presses instead of one. Rarely it stops working even with 2 or 3 tabs. Its a bit random.
I'm not sure how to give you logs for this.
Good day!
Could you please clarify under which license this product should be distributed?
tmux completion once were in the tree of the tmux source code, but since 2.3 was removed. So now Gentoo maintainers would like to add a separate package to the tree to include this functionality and this won't be possible without knowing the license.
Hi! It seems that this repo has not been updated for quite some time inline with tmux. Im using tmux for a daily basis and If possible I would like to help maintain the project.
Should I just send a PR for starter?
Since tmux is very useful, it would be nice for tmux completion to be included in bash-completion repository.
Thanks.
This emerged from a discussion on a PR at the bash-completion
repo.
When I start up bash and source the completions file I get an error when trying to tab complete. I type tmux at
and hit <tab>
, expecting for it to show me the options starting with attach
. Instead I get the error: bash: _get_comp_words_by_ref: command not found
added to my command line.
I use zsh
these days over bash
, so it is possible something has gone wonky with my bash
setup. I can tab-complete other things.
The full terminal session is below.
bash-4.2$ ls
README.md completions
bash-4.2$ source completions/tmux
bash-4.2$ tmux atbash: _get_comp_words_by_ref: command not found
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.