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

Non-ctrl-based prefix #46

Open
atsepkov opened this issue Oct 19, 2018 · 3 comments
Open

Non-ctrl-based prefix #46

atsepkov opened this issue Oct 19, 2018 · 3 comments

Comments

@atsepkov
Copy link

atsepkov commented Oct 19, 2018

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.

@bruno-
Copy link
Member

bruno- commented Oct 26, 2018

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

@hholst80
Copy link

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

@atsepkov
Copy link
Author

atsepkov commented Jul 17, 2019

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

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

No branches or pull requests

3 participants