ddworken / hishtory

Your shell history: synced, queryable, and in context
https://hishtory.dev
MIT License
2.43k stars 41 forks source link

feature: add vim bindings #190

Closed busla closed 1 month ago

busla commented 4 months ago

It would be great for us transitioning from fzf to get the following features:

  1. VIM bindings for item navigation
  2. Override item navigationhishtory keybindings.

fzf bindings:

Since hishtory binds ctrl+k to delete item, overriding that would be a requirement for adopting VIM bindings.

related: https://github.com/ddworken/hishtory/issues/55

ddworken commented 3 months ago

Thanks for filing this! The core code for this is actually already in place since we already use a keymap to store configurable key bindings, it just isn't wired up to the config to enable actually customizing this. I'll try to take this on relatively soon, but if anyone is looking to make a contribution, I think this could be a good starter one. :)

ddworken commented 1 month ago

This is now fully released and available, if you run hishtory update you can now customize the key bindings. Check out the README for information on how to do this. If you run into any issues, please re-open this issue to let me know. :)