Neovim slow escape time with nested tmux.

106 views
Skip to first unread message

G M

unread,
Dec 19, 2021, 9:09:37 PM12/19/21
to tmux-users
I made this post on reddit, but maybe its possible to solve this just through tmux. If I have nested tmux sessions, I was wondering if there is a way to pass set -sg escape-time 0 from the outer session to the inner session only by modifying the config of the outer session? I want this variable to be set when the outer session creates the inner session or when it attaches to an existing session.

Nicholas Marriott

unread,
Dec 20, 2021, 4:05:37 AM12/20/21
to G M, tmux-users
When you create the inner tmux, do "set -s escape-time 0" at the same time.


On Mon, 20 Dec 2021 at 02:09, G M <gmar...@gmail.com> wrote:
I made this post on reddit, but maybe its possible to solve this just through tmux. If I have nested tmux sessions, I was wondering if there is a way to pass set -sg escape-time 0 from the outer session to the inner session only by modifying the config of the outer session? I want this variable to be set when the outer session creates the inner session or when it attaches to an existing session.

--
You received this message because you are subscribed to the Google Groups "tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tmux-users+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/tmux-users/5633d36a-6fc7-4c43-85eb-6dcce3d3de09n%40googlegroups.com.

G M

unread,
Dec 20, 2021, 4:19:40 PM12/20/21
to tmux-users
Tmux is aware when there is a nested session or else how would I get the message warning about this, so there must be some mechanism to detect it and issue some commands based on this.
Is there no way for me to specify in my local config something along the lines of 'there is a tmux session inside my current session' -> 'set escape time to 0'?

On a separate note, I don't really understand why default tmux behavior is to capture anything before the prefix key is pressed.

G M

unread,
Dec 20, 2021, 4:20:28 PM12/20/21
to tmux-users
sorry the behavior I want is

'there is a tmux session inside my current session' -> 'set escape time to 0 in the inner session'

Nicholas Marriott

unread,
Dec 20, 2021, 4:42:31 PM12/20/21
to G M, tmux-users
a tmux server can only know if it is attached inside itself, it doesn't know if you attached another tmux server

the easiest way is just to set the option when you create the session




Reply all
Reply to author
Forward
0 new messages