Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/shelloracle/shell/shelloracle.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,9 @@ shelloracle-widget() {
# Register the function as a ZLE widget
zle -N shelloracle-widget

# Install the ZLE widget as a keyboard shortcut Ctrl+F
bindkey '^F' shelloracle-widget
# Install the ZLE widget as a keyboard shortcut Ctrl+F in every keymap, so it
# works in both emacs mode and vi mode (insert and command), regardless of
# whether `bindkey -v` runs before or after this file is sourced.
bindkey -M emacs '^F' shelloracle-widget
bindkey -M viins '^F' shelloracle-widget
bindkey -M vicmd '^F' shelloracle-widget