tmux-sensible icon indicating copy to clipboard operation
tmux-sensible copied to clipboard

Non-ctrl-based prefix

Open atsepkov opened this issue 7 years ago • 3 comments

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:

  • use of backtick is typically an anti-pattern that can be replaced with cleaner syntax (i.e. perl)
  • use of backtick is very rare and my binding of pressing backtick twice to insert a literal backtick handles these rare cases just fine (even in JS, which embraced this abomination in ES6)

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.

atsepkov avatar Oct 19 '18 16:10 atsepkov

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

bruno- avatar Oct 26 '18 17:10 bruno-

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

hholst80 avatar Jul 17 '19 09:07 hholst80

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

atsepkov avatar Jul 17 '19 13:07 atsepkov