Dushistov / sdcv

https://dushistov.github.io/sdcv/
GNU General Public License v2.0
294 stars 42 forks source link

Ctrl+D to abort selection on multiple items found #48

Open yaeuge opened 5 years ago

yaeuge commented 5 years ago

Typing -1 each time is quite inconvenient to use. Ctrl+D (which is used for exiting sdcv) would also be better in this case

Dushistov commented 5 years ago

@yaeuge you can use Esc instead of -1, with

$ cat .inputrc 
$if sdcv
    "\e\e": "-1\n"
$endif

see #24 and d2327e2a0f067cedcda3ad1aba8224129634f1c7

yaeuge commented 5 years ago

@Dushistov Thank you for the workaround! I was not able to find it for some reason... Are there any problems to implement the suggested behavior with ^D? It seems so common to me

yaeuge commented 5 years ago

Oh, I've read it in #24, sorry for missing it

Freed-Wu commented 2 years ago

The hack about .inputrc make a problem: In any time, input \e\e will input -1, however, it should only input -1 when multiple items found, I think.