global/shell: change fzf edit scripts to close with no results
This commit is contained in:
parent
d095e4692d
commit
2d0ebc52aa
2 changed files with 4 additions and 4 deletions
|
@ -103,9 +103,9 @@ in
|
|||
universe.packages = [
|
||||
(pkgs.writeScriptBin "editi" ''
|
||||
if [[ $# -eq 0 ]] then
|
||||
fd -H -t f | fzf --filepath-word --multi | xargs $EDITOR
|
||||
fd -H -t f | fzf --filepath-word --multi | xargs -r $EDITOR
|
||||
else
|
||||
fd -H -t f | fzf --filepath-word --multi -1 -q "$*" | xargs $EDITOR
|
||||
fd -H -t f | fzf --filepath-word --multi -1 -q "$*" | xargs -r $EDITOR
|
||||
fi
|
||||
'')
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue