new function __fish_preview_current_file to open file at the cursor in pager

bound to Alt+O by shared key bindings
created with help from @krobelus
fixes #6838
This commit is contained in:
exploide
2020-04-07 17:42:49 +02:00
committed by Johannes Altmanninger
parent 77d33a8eb9
commit 8025e80fdb
4 changed files with 31 additions and 0 deletions

View File

@@ -84,6 +84,7 @@ function __fish_shared_key_bindings -d "Bindings shared between emacs and vi mod
bind --preset $argv \e. history-token-search-backward
bind --preset $argv \el __fish_list_current_token
bind --preset $argv \eo __fish_preview_current_file
bind --preset $argv \ew __fish_whatis_current_token
# ncurses > 6.0 sends a "delete scrollback" sequence along with clear.
# This string replace removes it.