tmenu
tmenu copied to clipboard
Bind arrow keys, HOME key and END key
Some people expect the arrow keys to work for selecting items in the menu or moving the text cursor (point). Thus the arrow keys should be bound in the following manner:
-
UP
shall be equivalent toC-p
, moving the cursor upwards -
DOWN
shall be equivalent toC-n
, moving the cursor downwards -
LEFT
shall be equivalent toC-b
, moving point left by one character -
RIGHT
shall be equivalent toC-f
, moving point right by one character
Additionally, the HOME
and END
keys should be bound:
-
HOME
shall be equivalent toC-a
, moving point to the beginning of the line -
END
shall be equivalent toC-e
, moving point to the end of the line
Eugene [email protected] writes:
can bindings be moved to config.h or like that? because some other people prefer hjkl
I can imagine configurable bindings in the future. Supporting hjkl however is a bit more problematic, because it requires reimplementing modes as found in vi. Otherwise users can go through the search results using hjkl but won't be able to input these characters.
however is a bit more problematic, because it requires reimplementing modes as found in vi.
that's why i removed my initial comment
I can imagine configurable bindings in the future.
but still that one will be pretty usable
Yup, this feature seems to be a deal breaker for me... Not having the arrows work properly hinders the usability.
Although good work.
Thanks for the feedback!
@cipriancraciun if bindings for arrow keys are important, I'll prioritize this feature more.