input-remapper icon indicating copy to clipboard operation
input-remapper copied to clipboard

Filtering/searching the mapping table

Open guy-who-googles opened this issue 4 years ago • 4 comments

I remap a lot of keys. When I want to tweak my config, it takes a while to find what I'm looking for. Is search functionality of interest for this project?

P.S. This tool is truly awesome!

guy-who-googles avatar Nov 13 '21 02:11 guy-who-googles

Search function for macros and keys?

Other than the autocompletion of the gui and the docs there is nothing

sezanzeb avatar Nov 13 '21 10:11 sezanzeb

Yes, it would be useful for users with many entries. For example, if I had the following entries:

Key Macro
apostrophe+e hold(mouse(up,2))
apostrophe+d hold(mouse(down,2))
apostrophe+s hold(mouse(left,2))
apostrophe+f hold(mouse(right,2))

then searching (through a search bar or shortcut) for "down" would only show the apostrophe+d entry

guy-who-googles avatar Nov 13 '21 20:11 guy-who-googles

ahh, I see. You want to filter your mapping table.

An alternative to filtering could be something similar to what the nemo file-manager does:

image

with the search term on the bottom left, which then jumps to the first match. Using arrow keys then cycles through the matches

sezanzeb avatar Nov 13 '21 21:11 sezanzeb

Assuming users don't have too many entries, jumping to matches seems reasonable and is probably easier to implement. If they have tons of entries, it may be less friendly to cycle through many jumps.

Filtering would probably make more sense for many entries but would have the addiional implementation cost of changing the output of mapping table.

guy-who-googles avatar Nov 14 '21 19:11 guy-who-googles