tmux-plugins / tmux-logging

Easy logging and screen capturing for Tmux.
MIT License
1.03k stars 113 forks source link

Is it possible to bind a key other than prefix + shift + p? #66

Closed nicolas-g closed 9 months ago

nicolas-g commented 1 year ago

I would like to enable logging by using prefix + shift + L , is this possible?

DexterHacks commented 9 months ago

Yes it's possible, you can just go to your installation folder of tmux-logging (default is ~/.tmux/plugins/tmux-logging/scripts) edit variables.sh

for your needs just change the value of default_logging_key to "L"

nicolas-g commented 9 months ago

Thank you @DexterHacks, your solution worked perfectly! Before closing this issue, I have one lingering concern. Will this change remain in effect after I update the plugin? If not, could you suggest a method for making the change persistent?

DexterHacks commented 9 months ago

Most welcome, about the updates am not sure but like the last commit to this plugin was like two years ago so maybe you don't have to worry about this.

Anyways a simple sed command should do this in case you needed to.

nicolas-g commented 9 months ago

Anyways a simple sed command should do this in case you needed to.

I know but my point is to avoid doing this change manually when there is an update.