We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
$ tmux show-buffer >> /tmp/mylog.txt
I typed /tmp/m and hit tab to complete the filename but nothing happened.
/tmp/m
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."
-o bashdefault
The text was updated successfully, but these errors were encountered:
Hello. Yes. I specifically disabled this option because it was completing other commands where it shouldn't have.
For filecompletion you can read more there http://stackoverflow.com/questions/14343464/bash-completion-after-redirection-symbol#14343925
Also if it is only case for show-buffer, I can enable file completion for it explicitly.
show-buffer
Sorry, something went wrong.
Ah, interesting - I wasn't familiar with the complete-filename option although I use that key combination for completion in emacs.
complete-filename
I've only encountered this when trying show-buffer. I can't think of other tmux commands for which I would want to redirect output.
No branches or pull requests
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:I typed
/tmp/m
and hit tab to complete the filename but nothing happened.The fix is to change this line:
to:
The bash man page says
-o bashdefault
will "Perform the rest of the default bash completions if the compspec generates no matches."The text was updated successfully, but these errors were encountered: