diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-10 22:31:36 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-10 22:31:36 +0300 |
| commit | 8f1f65ee60f9cb337d695e8f194ae56630891e52 (patch) | |
| tree | a4b8b526bafd43f0246b9f8210f100d936694bbd /fish | |
| parent | a41c770e62542d1d7376de73d120782dbf57e5d8 (diff) | |
Update
Diffstat (limited to 'fish')
| -rw-r--r-- | fish/conf.d/quickedit.fish | 21 | ||||
| -rw-r--r-- | fish/conf.d/utils.fish | 6 |
2 files changed, 18 insertions, 9 deletions
diff --git a/fish/conf.d/quickedit.fish b/fish/conf.d/quickedit.fish index b33e3b7..b41e0a8 100644 --- a/fish/conf.d/quickedit.fish +++ b/fish/conf.d/quickedit.fish @@ -29,12 +29,13 @@ function quickedit::postaction end end -function quickedit +function quickedit::run + set -l run_postaction $argv[1] set -l prev_dir (pwd) set -l grep_pattern . - if test (count $argv) -gt 0 - set grep_pattern $argv[1] + if test (count $argv) -gt 1 + set grep_pattern $argv[2] end cd $QUICKEDIT_DIR @@ -71,17 +72,27 @@ function quickedit if test "$file_path" = REINDEX rm -f $QUICKEDIT_DIR/.index cd $prev_dir - quickedit $argv + quickedit::run $run_postaction $argv[2..-1] return end if editor::helix::open_with_lock $file_path - quickedit::postaction $file_path + if test "$run_postaction" = 1 + quickedit::postaction $file_path + end end cd $prev_dir end +function quickedit + quickedit::run 1 $argv +end + +function quickview + quickedit::run 0 $argv +end + function slowedit if test -f $QUICKEDIT_DIR/.index rm $QUICKEDIT_DIR/.index diff --git a/fish/conf.d/utils.fish b/fish/conf.d/utils.fish index d78ad59..36db443 100644 --- a/fish/conf.d/utils.fish +++ b/fish/conf.d/utils.fish @@ -150,8 +150,6 @@ function ssh::force ssh -A $server end -if test -f ~/git/geheim/geheim.rb - function geheim - ruby ~/git/geheim/geheim.rb $argv - end +function geheim + echo 'Use KeePassXC and/or foostore' end |
