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

Bash completion missing from repo and docs #166

Closed
dentuzhik opened this Issue Jun 2, 2016 · 8 comments

Comments

Projects
None yet
2 participants
@dentuzhik

dentuzhik commented Jun 2, 2016

I can't find the file (tmuxp.bash), and link in the docs also missing.
Any other ways I can setup completion?

@tony

This comment has been minimized.

Member

tony commented Jun 2, 2016

We can add it back. We switched from argparse to click in 1.1.

Which completions did you use?

Do you load your sessions via project directories (.tmuxp.yaml, .tmuxp.json) or via ~/.tmuxp/?

@tony

This comment has been minimized.

Member

tony commented Jun 2, 2016

eval "$(_TMUXP_COMPLETE=source tmuxp)"

Does that work?

tony added a commit that referenced this issue Jun 2, 2016

@dentuzhik

This comment has been minimized.

dentuzhik commented Jun 2, 2016

Yep, it works, thanks! Added this to my dotfiles:

if [[ -n $(which tmuxp) ]]; then
    eval "$(_TMUXP_COMPLETE=source tmuxp)"
fi
@tony

This comment has been minimized.

Member

tony commented Jun 2, 2016

That snippet is nice @dentuzhik , what to make a PR to add it cli.rst?

@dentuzhik

This comment has been minimized.

dentuzhik commented Jun 3, 2016

Yep, will do that shortly

@dentuzhik dentuzhik closed this Jun 26, 2016

@tony

This comment has been minimized.

Member

tony commented Jun 26, 2016

@dentuzhik do you still want to make a PR for this ?

https://github.com/tony/tmuxp/edit/master/doc/cli.rst

@dentuzhik

This comment has been minimized.

dentuzhik commented Jun 26, 2016

I can do this, but as far as I can see you've already added a section about the completions :)
https://github.com/tony/tmuxp/blob/master/doc/cli.rst#completion

@tony

This comment has been minimized.

Member

tony commented Jun 26, 2016

@dentuzhik You can wrap the if statement :)

oliverralbertini added a commit to oliverralbertini/tmuxp that referenced this issue Nov 11, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment