Code Monkey home page Code Monkey logo

tmux-bash-completion's Introduction

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's People

Contributors

azat avatar imomaliev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tmux-bash-completion's Issues

License Clarification

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!

Failover to default completions

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."

Version tag request

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).

Request to merge this project into bash-completion.

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.

not working properly with prefix other than C-b

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.

License of the project

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.

https://bugs.gentoo.org/show_bug.cgi?id=604688

Help maintaining

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?

`_get_comp_words_by_ref` not found

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.