Discussion:
Is it possible to have a binding that "brings back" mouse behavior?
Steven Lu
2015-05-16 00:23:02 UTC
Permalink
Basically the default binds I am seeing so far are missing the mouse wheel
functionality.

I deduced that these default binds

bind-key -T root MouseDown1Pane select-pane -t = ; send-keys -M
bind-key -T root MouseDown1Status select-window -t =
bind-key -T root MouseDrag1Pane if-shell -F -t = #{mouse_any_flag}
"if -Ft= "#{pane_in_mode}" "copy-mode -M" "send-keys -M"" "copy-mode -M"
bind-key -T root MouseDrag1Border resize-pane -M

are the ones that are implementing the ability to use the mouse to switch
and resize panes now. Given that we now have the ability to bind mouse
wheel and drag and everything, I'm really excited because I think it means
I'll be able to bind mwheel to fire arrow keys (for use in pagers, etc).
But first, I'd love to be able to enter copy mode and scroll history.

But it's turning out to be super challenging to work with, without certain
knowledge... for example, it seems like the bind is saying that when
dragging Mouse1 inside a pane, while targeting the pane in question (-t =),
if mouse flag is set (mouse_any_flag) then .... well I have trouble with
parsing at this stage. I think it would help greatly if the double-quote
escapement scheme could be explained. I see 3 quotes in a row, and I
suspect that that is significant.

Thanks
Thomas Adam
2015-05-17 03:24:25 UTC
Permalink
This post might be inappropriate. Click to display it.
Steven Lu
2015-05-17 05:39:15 UTC
Permalink
I think I understand it now, the inner quotes for if-shell do not require
escaping. Presumably they can be nested arbitrarily as well?
Post by Steven Lu
Post by Steven Lu
But it's turning out to be super challenging to work with, without
certain
Post by Steven Lu
knowledge... for example, it seems like the bind is saying that when
dragging Mouse1 inside a pane, while targeting the pane in question (-t
=),
Post by Steven Lu
if mouse flag is set (mouse_any_flag) then .... well I have trouble with
parsing at this stage. I think it would help greatly if the double-quote
escapement scheme could be explained. I see 3 quotes in a row, and I
suspect that that is significant.
What is it you want to know?
-- Thomas Adam
--
"Deep in my heart I wish I was wrong. But deep in my heart I know I am
not." -- Morrissey ("Girl Least Likely To" -- off of Viva Hate.)
Loading...