tmux-plugins / tmux-sensible

basic tmux settings everyone can agree on
MIT License
1.73k stars 90 forks source link

Non-ctrl-based prefix #46

Open atsepkov opened 5 years ago

atsepkov commented 5 years ago

Call me an outcast, but I never got onboard with the C-a/C-b prefix. My prefix is ` (backtick), which I have been using without issues for over 6 years. I'm not alone, I've met other developers who do the same, although this binding is rare. In case you're wondering, it does not create issues with languages using backtick in code for the following reasons:

This is rather low priority since I can easily modify/comment out that part of config, but I just wanted to point this alternative out since tmux-sensible is supposed to be settings everyone can agree on.

bruno- commented 5 years ago

Your arguments make sense. I'm in favor of modifying the script so it supports non-ctrl based prefixes. PR welcome.

hholst80 commented 5 years ago

Backtick is used in markdown so that is a no go.

atsepkov commented 5 years ago

@hholst80 Please read my post in its entirety. My mapping for inserting a physical backtick is pressing the backtick twice. I've been using tmux for years and never had an issue inserting a physical backtick into my code/docs.

It does break your double-ctrl-key sequence to swap to last pane, but again this is a hint that this mapping may not be as universal/sensible as you think.