Skip to content
Myr

Allow command/control-click/wheel

Before adoption: this commit came in with the history the project adopted, so no landing records it.

e.g. urxvt

authored by Junegunn Choi · committed by Junegunn Choi · parent 27d3b52 · Browse files · 2 files+8 added−7 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+8 added−7 removed

  • other:+8 added−7 removed

2 files+8 added−7 removed

modified:fzf+5 added-5 removed
5 unmodified lines
6# / /_/_ / / /_7# / __/ / /_/ __/8# /_/ /___/_/ Fuzzy finder for your shell9#10# Version: 0.8.0 (March 6, 2014)10# Version: 0.8.0 (March 7, 2014)11#12# Author: Junegunn Choi13# URL: https://github.com/junegunn/fzf14# License: MIT
738 unmodified lines
753 end754755 def get_mouse756 case ord = read_nb757 when 32, 36, # mouse-down / shift-mouse-down758 35, 39 # mouse-up / shift-mouse-up757 when 32, 36, 40, 48, # mouse-down / shift / cmd / ctrl758 35, 39, 43, 51 # mouse-up / shift / cmd / ctrl759 x = read_nb - 33760 y = read_nb - 33761 { :event => (ord % 2 == 0 ? :click : :release),762 :x => x, :y => y, :shift => ord >= 36 }763 when 96, 100, # scroll-up / shift-scroll-up764 97, 101 # scroll-down / shift-scroll-down763 when 96, 100, 104, 112, # scroll-up / shift / cmd / ctrl764 97, 101, 105, 113 # scroll-down / shift / cmd / ctrl765 read_nb(2)766 { :event => :scroll, :diff => (ord % 2 == 0 ? -1 : 1), :shift => ord >= 100 }767 else768 # e.g. 40, 43, 104, 105
343 unmodified lines
modified:README.md+3 added-2 removed
100 unmodified lines
101102If you enable multi-select mode with `-m` option, you can select multiple items103with TAB or Shift-TAB key.104105You can also use mouse. Double-click on an item to select it or shift-click to106select multiple items. Use mouse wheel to move the cursor up and down.105You can also use mouse. Double-click on an item to select it or shift-click (or106ctrl-click) to select multiple items. Use mouse wheel to move the cursor up and107down.108109### Extended-search mode110111With `-x` or `--extended` option, fzf will start in "extended-search mode".
233 unmodified lines