I know you aren't advocating a change but I might as well hijack this
thread a little, since I have found it quite interesting seeing what
prefixes people use:

What has become clear over the last few of years is that there is
absolutely no consensus about the best prefix key.

Quite a few people have asked why tmux doesn't use C-a, because that is
what screen uses.

But probably an equal number of people have said that they like C-b, or
mooted tmux for using C-b, because it doesn't interfere with C-a for
start-of-line in emacs or the shell.

And it is surprising the amount of variation: I have seen others who use
`, or function keys, quite a few seem to go for C-x or C-s, and some
even for C-z.

So (and I know you didn't suggest this but some people might be
wondering :-), the tmux prefix key is C-b and it is staying C-b unless
there is a clear consensus that it should change, and what it should
change to.

The same applies to default colours... many people want colours by
default and many do not, no consensus means it stays what I originally
chose, which is a coloured tmux by default. And the same for the status
line, there is no clear opinion on whether on or off is better by
default, so on it stays on :-).

For the record, I use C-a for my primary tmux sessions but I leave it at
C-b for transient ones (eg when I start one up on a different box just
for a build).

The actual reason I originally chose C-b was because the first prototype
versions of tmux were written and tested inside screen, and C-b didn't
interfere with screen's C-a prefix.

As an aside, you can bind multiple prefix keys, so if you wanted you
could bind a function key and another key as a backup.


On Thu, Apr 29, 2010 at 12:19:50PM -0700, Micah Cowan wrote:
> Martial Boniou wrote:
> > I presume you're ok with C-b. If not, what other prefix can you advice?
> 
> No, personally I hate C-b: too much finger-stretching for such a
> commonly-used function. I use C-a, which I became accustomed to in
> screen. This works fine for me, since I use vi-mode in my shell (and vim
> as my editor, or sometimes emacs with viper-mode). Some folks have been
> known to use ` (not C-`) as their escape in screen, so I suppose that
> works, too. Still others use function-keys, I think, but that makes me a
> little nervous, since the function-keys are so very terminal-dependent,
> and easy to get screwed up.
> 
> -- 
> Micah J. Cowan
> http://micah.cowan.name/
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> tmux-users mailing list
> tmux-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tmux-users

------------------------------------------------------------------------------
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to