You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[suggestion] Cancel modal operations by pression ESC #78
For example: When I press g I see a modal menu "Position to go". To hide the menu without changing the position I should keep input empty and press Enter. More than I'll error message "Invalid format". And the same with "find" menu.
I think It should be more "vi like" - Pressing ESC interrupts any modal operations.
I didn't. The issue is that readline can't seem to be able to recognise ESC while also be able to process special keys such as arrows. You're welcome to try making it do that though.
but I see this code and realize it's not exposed in actions.h so it won't work. Is there any other way of doing it? Esc is really intuitive from other programs (e.g. vim)
This still doesn't seem to be working out of the box unfortunately.
Pressing ctrl+s in a playlist to open the sort dialog and then pressing escape doesn't lead to it being dismissed. Presseing g to open the "Position to go" prompt and then pressing escape doesn't do anything, leaving one stuck in the prompt.
Imho this issue needs to be re-opened as user experience is really bad in this regard. Generally it should imho be possible to dismiss any prompt/popup/... by default, using the escape key.
Activity
arybczak commentedon Oct 29, 2015
You can already do that with Ctrl-C/Ctrl-G. AFAIR I tried to make ESC also work, but readline didn't want to cooperate with me.
trygveaa commentedon Oct 29, 2015
Ctrl-C/Ctrl-G doesn't seem to work for me. Nothing happens. (version 0.6.7)
ttohin commentedon Oct 29, 2015
+1
arybczak commentedon Oct 29, 2015
It's in 0.7.x.
doronbehar commentedon May 13, 2017
Hello @arybczak,
I was wondering, have you triedever since this issue was closed to recheck this problem?
arybczak commentedon May 14, 2017
I didn't. The issue is that readline can't seem to be able to recognise ESC while also be able to process special keys such as arrows. You're welcome to try making it do that though.
matt-snider commentedon Nov 5, 2018
I tried doing this:
but I see this code and realize it's not exposed in
actions.hso it won't work. Is there any other way of doing it? Esc is really intuitive from other programs (e.g. vim)mrusme commentedon Sep 10, 2022
This still doesn't seem to be working out of the box unfortunately.
Pressing ctrl+s in a playlist to open the sort dialog and then pressing escape doesn't lead to it being dismissed. Presseing
gto open the "Position to go" prompt and then pressing escape doesn't do anything, leaving one stuck in the prompt.Imho this issue needs to be re-opened as user experience is really bad in this regard. Generally it should imho be possible to dismiss any prompt/popup/... by default, using the escape key.
kohane27 commentedon Feb 6, 2024
I've found a workaround with
xremap. We can mapjktoCtrl-C.We need
--class dropdown_rightforxremapto identify this specific terminal window:kitty --class dropdown_right zsh -i -c "ncmpcpp".Then we can put the following in
~/.config/xremap/config.yml:Restart your
xremapfor it to take effect. Cheers!