diff options
| author | Paul Buetow <paul@buetow.org> | 2025-04-30 19:23:59 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-04-30 19:23:59 +0300 |
| commit | 8eeb9952cf7903cfa3abfa748e22dc9dc7982358 (patch) | |
| tree | 281d55383cade1255d7f002eff82c7e945c87e7a | |
| parent | 91ea55d7e4ce64009944e73ee3798c9501706002 (diff) | |
Update
| -rw-r--r-- | dotfiles/fish/conf.d/quickedit.fish | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/dotfiles/fish/conf.d/quickedit.fish b/dotfiles/fish/conf.d/quickedit.fish index 2074312..a809a9b 100644 --- a/dotfiles/fish/conf.d/quickedit.fish +++ b/dotfiles/fish/conf.d/quickedit.fish @@ -50,18 +50,29 @@ function quickedit cd $prev_dir end -function quickedit::scratchpad - cd ~/Notes +function quickedit::direct + set -l dir $argv[1] + set -l file$argv[1] + cd $dir - if editor::helix::open_with_lock Scratchpad.md - quickedit::postaction Scratchpad.md + if editor::helix::open_with_lock $file + quickedit::postaction $file end cd - end +function quickedit::scratchpad + quickedit::direct ~/Notes Scratchpad.md +end + +function quickedit::quicknote + quickedit::direct ~/Notes QuickNote.md +end + abbr -a cdquickedit "cd $QUICKEDIT_DIR" abbr -a e quickedit abbr -a er "ranger $QUICKEDIT_DIR" -abbr -a scratch "quickedit::scratchpad" -abbr -a S "quickedit::scratchpad" +abbr -a scratch quickedit::scratchpad +abbr -a S quickedit::scratchpad +abbr -a quicknote quickedit::quicknote |
