ddworken / hishtory

Your shell history: synced, queryable, and in context

Home Page:https://hishtory.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feature: add vim bindings

busla opened this issue · comments

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:

  • ctrl+k: up
  • ctrl+j: down

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

related: #55

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. :)

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. :)