mrjones2014 / ctrlg

A command line context switcher, written in Rust :crab:
https://crates.io/crates/ctrlg
MIT License
30 stars 1 forks source link

[Bug]: Fish shell key binds don't work when using Fish vi bindings in insert mode #35

Closed mrjones2014 closed 2 years ago

mrjones2014 commented 2 years ago

Similar Issues

Description

If using Fish shell's vi bindings, you have to go to normal mode for the key bind to work.

The fix is to change the binding code from:

bind \a _ctrlg_search_and_go

to:

for mode in insert default normal
  bind -M $mode \a _ctrlg_search_and_go
end