tmenu icon indicating copy to clipboard operation
tmenu copied to clipboard

Bind arrow keys, HOME key and END key

Open dhamidi opened this issue 10 years ago • 4 comments

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 to C-p, moving the cursor upwards
  • DOWN shall be equivalent to C-n, moving the cursor downwards
  • LEFT shall be equivalent to C-b, moving point left by one character
  • RIGHT shall be equivalent to C-f, moving point right by one character

Additionally, the HOME and END keys should be bound:

  • HOME shall be equivalent to C-a, moving point to the beginning of the line
  • END shall be equivalent to C-e, moving point to the end of the line

dhamidi avatar Jun 14 '14 16:06 dhamidi

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.

dhamidi avatar Dec 17 '14 09:12 dhamidi

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

actionless avatar Dec 17 '14 09:12 actionless

Yup, this feature seems to be a deal breaker for me... Not having the arrows work properly hinders the usability.

Although good work.

cipriancraciun avatar Dec 17 '14 17:12 cipriancraciun

Thanks for the feedback!

@cipriancraciun if bindings for arrow keys are important, I'll prioritize this feature more.

dhamidi avatar Dec 19 '14 08:12 dhamidi