Lock filter command for menus does not work
Far Manager version
3.0.6074.0 x64
OS version
10.0.22623.1037
Other software
No response
Steps to reproduce
- Press
F9to show the menu bar - Press
Lto open the Left dropdown menu - Press the right
Altto enable filtering mode - Type in
file. The menu will now only show items withfilein their name, viz. File owners and File links. - Press
Ctrl+Alt+Lto lock the filter. The filter indicator will change from[file]to<file>indicating that the filter is locked. - Press
F10orEscto close the dropdown menu - Press
Lto open the Left dropdown menu again
Expected behavior
The menu should show filtered items only since the filter was locked. The filter indicator should show <file>.
Actual behavior
The menu shows all items. The filter indicator is not displayed.
Note that the Lock filter command does not work in any of these menus either:
- User menu
F2 - Change drive menu
Alt+F1andAlt+F2 - Plugin commands menu
F11 - Configure plugins menu
Alt+Shift+F9 - Code pages menu in Viewer and Editor
Shift+F8 - Filters menu
Ctrl+I - Configuration editor
far:config
In all the above cases, the filter indicator changes to show that the filter is locked. However, closing and reopening the menu removes the filter.
The menu should show filtered items only since the filter was locked.
"Lock the filter" does not mean "make it permanent", but "stop accepting more letters into the filter and let the menu process the pressed keys as usual".
Menus can have user-configured or autogenerated hotkeys to invoke corresponding items. The filter intercepts the input and hotkeys don't work, locking it allows to use the hotkeys again.
I see. Please feel free to remove the bug tag.
It would be a nice feature to have. Would you consider adding it as an enhancement?
Persisting and restoring filter state sounds interesting. However, unlike, say, panels, menus are not that unique, there is a legion of them all over the place. Coming up with an universal solution (that would also cover menus spawned by plugins and macros) could be tricky, so no ETA for this.
No worries. I'll be happy to test it out whenever it's ready. Thanks.