Skip to content
Myr

Implement CTRL-D

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

authored by Junegunn Choi · committed by Junegunn Choi · parent 9dac12c · Browse files · 2 files+9 added−2 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+9 added−2 removed

  • other:+9 added−2 removed

2 files+9 added−2 removed

modified:fzf+8 added-2 removed
5 unmodified lines
6# / /_/_ / / /_7# / __/ / /_/ __/8# /_/ /___/_/ Fuzzy finder for your shell9#10# Version: 0.8.5 (Jun 7, 2014)10# Version: 0.8.5 (Jun 12, 2014)11#12# Author: Junegunn Choi13# URL: https://github.com/junegunn/fzf14# License: MIT
865 unmodified lines
880 cursor = (input[0, cursor].rindex(/\s\S/) || -1) + 1881 }882 actions = {883 :esc => proc { exit 1 },884 ctrl(:d) => proc { exit 1 if input.empty? },884 ctrl(:d) => proc {885 if input.empty?886 exit 1887 elsif cursor < input.length888 input = input[0...cursor] + input[(cursor + 1)..-1]889 end890 },891 ctrl(:m) => proc {892 got = pick893 exit 0894 },
286 unmodified lines
modified:README.md+1 added
121 unmodified lines
122The following readline key bindings should also work as expected.123124- CTRL-A / CTRL-E125- CTRL-B / CTRL-F126- CTRL-H / CTRL-D127- CTRL-W / CTRL-U / CTRL-Y128- ALT-B / ALT-F129130If you enable multi-select mode with `-m` option, you can select multiple items
407 unmodified lines