On 19.12.18 12:45, Alec Muffett wrote:
On Wed, 19 Dec 2018 at 11:42, Nicholas Marriott
    Do you mean select-pane -d/-e?


Ye gods, that looks like it - assuming "input" is keyboard input!

Thank you! Now I have to work out what to bind it to / whether
I can make it toggle!

I use

  # read-only panes (since tmux-2.0)
  if 'expr "$(tmux -V)" \>= "tmux 2.0"' ' \
    bind-key L select-pane -d             ;\
    bind-key U select-pane -e             \;\
               select-pane -P bg=default   \
  ' 'unbind-key L'

  # (almost) same as above, via a toggle key
  bind-key -T root ¶ if -F '#{pane_input_off}' \
    "select-pane -e; select-pane -P bg=default" \
    "select-pane -d; select-pane -P bg=colour230"

for exact that purpose.

 - prefix-L/-U to lock or unlock (no toggle!)
 - ¶ (at least on my keyboard) is [AltGr]+[r]
 - it has visual feedback for read-only panes
    (intentionally only via the toggle-key)

Thomas

--
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 [email protected].
To post to this group, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to