Mercurial > dotfiles
diff dot_config/private_fish/functions/fzf_hg_status_files.fish @ 1038:6ab26ddbf78d
feat: add fish shell
author | Zeger Van de Vannet <zeger@vandevan.net> |
---|---|
date | Fri, 26 Apr 2024 18:43:22 +0200 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dot_config/private_fish/functions/fzf_hg_status_files.fish Fri Apr 26 18:43:22 2024 +0200 @@ -0,0 +1,7 @@ +function fzf_hg_status_files + set result (HGRCPATH= rhg status -n --color=always --config commands.status.relative=yes| fzf --ansi -m --header "Select the file(s) to insert in the command line") + if test -n "$result" + commandline -i (string join " " -- $result "") # adds a space after the inserted line output + end + commandline -f repaint +end