Mercurial > dotfiles
view dot_config/private_fish/functions/fzf_hg_status_files.fish @ 1044:fb4670b7526a
feat: replicate push-line function from zsh
source: https://github.com/fish-shell/fish-shell/issues/7800#issuecomment-792915764
author | Zeger Van de Vannet <zeger@vandevan.net> |
---|---|
date | Thu, 02 May 2024 08:48:33 +0200 |
parents | 6ab26ddbf78d |
children |
line wrap: on
line source
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