Hello,

Using tmux 3.1c under macOS Catalina with latest iTerm2. I've seen an number 
of bindings that, with mouse mode enabled, allow one to double click to select 
a word and triple click to select a line. They look more or less like what I 
have in my .tmux.conf:

bind-key -n DoubleClick1Pane \
    select-pane \; \
    copy-mode -H \; \
    send-keys -MX select-word \; \
    run-shell "sleep .5s" \; \
    send-keys -X copy-pipe-and-cancel "pbcopy"

bind-key -T copy-mode DoubleClick1Pane \
    select-pane \; \
    send-keys -MX select-word \; \
    run-shell "sleep .5s" \; \
    send-keys -X copy-pipe "pbcopy"

bind-key -n TripleClick1Pane \
    select-pane \; \
    copy-mode -H \; \
    send-keys -MX select-line \; \
    run-shell "sleep .5s" \; \
    send-keys -X copy-pipe-no-cancel "pbcopy"

bind-key -T copy-mode TripleClick1Pane \
    select-pane \; \
    send-keys -MX select-line \; \
    run-shell "sleep .5s" \; \
    send-keys -X copy-pipe "pbcopy"

I have no issues with DoubleClick1Pane events whether in or out of copy mode, 
but the TripleClick1Pane events only trigger if I unbind the DoubleClick1Pane
events, regardless of mode. It seems like tmux isn't waiting to see if 
there's a third click -- it sees two clicks and declares it a DoubleClick and 
triggers accordingly.

I've tried the stock Terminal.app, but the behavior is the same.

Any thoughts on what to try next?

Thanks,
-Jason

-- 
Jason White
"The single biggest problem in communication is the illusion that it has taken 
place." - George Bernard Shaw

-- 
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 view this discussion on the web, visit 
https://groups.google.com/d/msgid/tmux-users/YCHpsXi%2B9sTG6GP3%40equinox.home.menelos.com.

Reply via email to