diff options
| author | Paul Buetow <paul@buetow.org> | 2025-05-01 14:13:37 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-05-01 14:13:37 +0300 |
| commit | 5f57d05233476f46b102a03e3532dbc9be40abc4 (patch) | |
| tree | dadccf2d2c1d43559c407684a0c25629cec68f9b | |
| parent | 9cbac9b6fdbaf565d16eaceb8fff4816e03ae884 (diff) | |
| parent | 61a6484eafb1a3665c8e1233b936fc13cb6b7cee (diff) | |
Merge branch 'master' of codeberg.org:snonux/rexfiles
| -rw-r--r-- | dotfiles/fish/conf.d/editor.fish | 1 | ||||
| -rw-r--r-- | dotfiles/fish/conf.d/quickedit.fish | 26 |
2 files changed, 20 insertions, 7 deletions
diff --git a/dotfiles/fish/conf.d/editor.fish b/dotfiles/fish/conf.d/editor.fish index 111c6d9..ea8a34a 100644 --- a/dotfiles/fish/conf.d/editor.fish +++ b/dotfiles/fish/conf.d/editor.fish @@ -28,3 +28,4 @@ end abbr -a lhx 'editor::helix::open_with_lock' abbr -a hxl 'editor::helix::open_with_lock' abbr -a rhx 'editor::helix::edit::remote' +abbr -a x hx diff --git a/dotfiles/fish/conf.d/quickedit.fish b/dotfiles/fish/conf.d/quickedit.fish index 9accc30..2c6b2c9 100644 --- a/dotfiles/fish/conf.d/quickedit.fish +++ b/dotfiles/fish/conf.d/quickedit.fish @@ -50,18 +50,30 @@ function quickedit cd $prev_dir end -function quickedit::scratchpad - cd ~/Notes +function quickedit::direct + set -l dir $argv[1] + set -l file $argv[2] + 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 -abbr -a cdquickedit "cd $QUICKEDIT_DIR" +function quickedit::scratchpad + quickedit::direct ~/Notes Scratchpad.md +end + +function quickedit::quicknote + quickedit::direct ~/Notes QuickNote.md +end + abbr -a e quickedit +abbr -a scratch quickedit::scratchpad +abbr -a S quickedit::scratchpad +abbr -a quicknote quickedit::quicknote abbr -a er "ranger $QUICKEDIT_DIR" -abbr -a scratch "quickedit::scratchpad" -abbr -a S "quickedit::scratchpad" +abbr -a cdquickedit "cd $QUICKEDIT_DIR" +abbr -a cdnotes 'cd ~/Notes' |
