annotate dot_config/private_fish/functions/fzf_hg_status_files.fish @ 1072:240d435b7443

feat: remove "current" keyword from stack state when the change is orphaned
author Zeger Van de Vannet <zeger@vandevan.net>
date Mon, 10 Feb 2025 17:55:14 +0100
parents 6ab26ddbf78d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1038
6ab26ddbf78d feat: add fish shell
Zeger Van de Vannet <zeger@vandevan.net>
parents:
diff changeset
1 function fzf_hg_status_files
6ab26ddbf78d feat: add fish shell
Zeger Van de Vannet <zeger@vandevan.net>
parents:
diff changeset
2 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")
6ab26ddbf78d feat: add fish shell
Zeger Van de Vannet <zeger@vandevan.net>
parents:
diff changeset
3 if test -n "$result"
6ab26ddbf78d feat: add fish shell
Zeger Van de Vannet <zeger@vandevan.net>
parents:
diff changeset
4 commandline -i (string join " " -- $result "") # adds a space after the inserted line output
6ab26ddbf78d feat: add fish shell
Zeger Van de Vannet <zeger@vandevan.net>
parents:
diff changeset
5 end
6ab26ddbf78d feat: add fish shell
Zeger Van de Vannet <zeger@vandevan.net>
parents:
diff changeset
6 commandline -f repaint
6ab26ddbf78d feat: add fish shell
Zeger Van de Vannet <zeger@vandevan.net>
parents:
diff changeset
7 end