Correct mistake in dmenu_fish and in user keybindings

This commit is contained in:
David Holland 2022-09-11 22:01:36 +02:00
parent ea9869e367
commit 7ba4dc58a0
Signed by: DustVoice
GPG key ID: 47068995A14EDCA9
2 changed files with 4 additions and 3 deletions

View file

@ -1,7 +1,7 @@
function dmenu_fish --description 'Open fish agnostic dmenu'
set fns "$(string replace -a ', ' \n $(functions))"
set commands $(string join \n $fns $(dmenu_path) | sort | dmenu -i -fn "$(get-font)" -nb "#282a36" -nf "#f8f8f2" -sb "#44475a" -sf "#f8f8f2")
set command_to_run $(string join \n $fns $(dmenu_path) | sort | dmenu -i -fn "$(get-font)" -nb "#282a36" -nf "#f8f8f2" -sb "#44475a" -sf "#f8f8f2")
fish -c "$command_to_run" &
end

View file

@ -1,9 +1,10 @@
function fish_user_key_bindings
fish_vi_key_bindings
bind \f 'accept-autosuggestion'
bind \b 'cancel-commandline'
bind \f -M insert 'accept-autosuggestion'
bind \b -M insert 'cancel-commandline'
bind \v 'up_or_search'
bind \n 'down_or_search'
bind \cE 'edit_command_buffer'
bind \cE -M insert 'edit_command_buffer'
end