+11

Definitions to configure (up/down) history key bindings on find panel

aristidesfl 13 years ago updated by FichteFoll 12 years ago 2
In the find panel, I would like to assign the history's (up/down) arrows to alt + (up/down).

Then assign the (up/down) keys to dismiss it like currently escape does. This would allow me to drop the incremental search and use the find pannel for everything, thus simplifying the logic of find usage.

Would be possibly interested also in doing the same thing with the (left/right) keys.


There should exist definitions in the Key Bindings file which allowed the customization of these actions.

Developer, what's the status of this feature request?

 The up and down key bindings for search panels seem to be hard-coded and are not defined in the Default keymap.


My attempt with

   { "keys": ["alt+up"], "command": "move", "args": {"by": "lines", "forward": false}, "context": [
     {"key": "panel", "operand": "find"}, {"key": "panel_has_focus"}
   ] },
   { "keys": ["alt+down"], "command": "move", "args": {"by": "lines", "forward": true}, "context": [
     {"key": "panel", "operand": "find"}, {"key": "panel_has_focus"}
   ] },
   { "keys": ["up"], "command": "find_prev", "context": [
     {"key": "panel", "operand": "find"}, {"key": "panel_has_focus"}
   ] },
   { "keys": ["down"], "command": "find_next", "context": [
     {"key": "panel", "operand": "find"}, {"key": "panel_has_focus"}
   ] },

also does not work (neither with "find" nor "incremental_find").


Also not with

     {"key": "panel", "operator": "equal", "operand": "find"},
     {"key": "panel_has_focus", "operator": "equal", "operand": true}