timo-reymann / bash-tui-toolkit

Toolkit to create simple Terminal UIs using plain bash builtins
Apache License 2.0
44 stars 4 forks source link

Vim binding in prompts #27

Closed sswastik02 closed 4 months ago

sswastik02 commented 4 months ago

Description

The prompts such as checkbox and ranged can use vim bindings too.

References

No response

sswastik02 commented 4 months ago

Hi @timo-reymann If this issue seems valid to you. I would like to work on this under your guidance.

timo-reymann commented 4 months ago

Sounds like a valuable feature! :)

Feel free to work on this, also happy to do frequent reviews on this.

sswastik02 commented 4 months ago

Hi @timo-reymann Apologies for the late reply, here is the plan I proposing: modify the following lines to include the vim key bindings: https://github.com/timo-reymann/bash-tui-toolkit/blob/fa201d71be29cbb3826bec2ed8dd0f04e58efb8a/src/prompts.sh#L28-L35

basic vim bindings: vim key function
k up
j down
l right
h left

If you think this plan is satisfactory, I can open a PR.

timo-reymann commented 4 months ago

Sounds reasonable 👍

timo-reymann commented 4 months ago

:tada: This issue has been resolved in version 1.6.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: