16 hours ago · Tech · 0 comments

If you customise Tmux a lot, inevitably you will run out of ways to cleanly map keys (or they have become a mess) and you will yearn for another “leader” or “prefix” to bind to moar mappings. For some, it’s a case of when, not if. My current 1 recommendation: meta+key. By “meta” I mean option / alt and by “key” I mean whatever you have for the key alongside your prefix in your configuration, commonly a or the default b. How do? Tmux configuration odditiesTo find out, we go spelunking in the Tmux manual. First, ignore the prefix2 setting in the manual. Tis a trap! This allows an alternate trigger for existing mappings but not new mappings. i.e. if you have ctrl+a for prefix and then set ctrl+space to prefix2 you can press either of those to trigger something. Not that useful. Next, did you know about “key-tables” in Tmux? From the manual: Keys are bound in a key table. By default (without -T), the key is bound in the prefix key table. This table is used for keys pressed after the…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.