Skip to content
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

TmuxlineSnapshot: add output to current buffer if file is "-" #67

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aswild
Copy link
Contributor

@aswild aswild commented Oct 22, 2016

Rather than save my tmuxline config snapshot in a separate file, I'd prefer to just dump the config directly into the bottom of my tmux.conf. To ease that, I tweaked the :TmuxlineSnapshot command to put the text into the current buffer isntead of a file if the argument given is -.

To implement this, I had to move the snapgeneration up first in the function, then check for a - file, and then do real file handling after that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant