Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange interactions between interactive search and overlays (such as Show Files) #181

Open
tllilleh opened this issue Sep 18, 2017 · 0 comments

Comments

@tllilleh
Copy link

I you open up the Show Files overlay (ctrl+x, ctrl+f) and then start an incremental search (cntrl+s) the Show Files overlay gets stuck open. Other strange interactions can also occur if you attempt to open the Show Files overlay while in the middle of an incremental search. I've worked around these locally by modifying my keymap:


// Goto open file
{"keys": ["ctrl+x", "ctrl+f"], "command": "nop"},
{"keys": ["ctrl+x", "ctrl+f"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true}, "context": [{"key": "i_search_active", "operand": false}]},


{"keys": ["ctrl+s"], "command": "nop"},
{"keys": ["ctrl+s"], "command": "sbp_inc_search", "args": {"forward": true, "regex": false}, "context": [{"key": "overlay_visible", "operator": "equal", "operand": false}]},
{"keys": ["ctrl+r"], "command": "nop"},
{"keys": ["ctrl+r"], "command": "sbp_inc_search", "args": {"forward": false, "regex": false}, "context": [{"key": "overlay_visible", "operator": "equal", "operand": false}]},


It's hacky because I need to rely on a fictional "nop" command to force the key to do nothing if the condition is not met.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant