sdcv icon indicating copy to clipboard operation
sdcv copied to clipboard

Ctrl+D to abort selection on multiple items found

Open yaeuge opened this issue 5 years ago • 4 comments

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

yaeuge avatar Nov 08 '18 13:11 yaeuge

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

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

see #24 and d2327e2a0f067cedcda3ad1aba8224129634f1c7

Dushistov avatar Nov 08 '18 15:11 Dushistov

@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 avatar Nov 08 '18 15:11 yaeuge

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

yaeuge avatar Nov 08 '18 16:11 yaeuge

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.

Freed-Wu avatar Jul 22 '22 15:07 Freed-Wu