feat(console): with-editor

This commit is contained in:
Pavel Korytov 2021-09-30 19:14:03 +03:00
parent f1e4731ca5
commit 138d5522f9
3 changed files with 16 additions and 2 deletions

View file

@ -60,3 +60,9 @@ bind -M insert \eh backward-char
bind -M insert \ew forward-word
bind -M insert \eb backward-word
# Keybindings:1 ends here
# [[file:../../Console.org::*Functions][Functions:1]]
function e
eval $EDITOR $argv
end
# Functions:1 ends here

View file

@ -489,6 +489,14 @@ bind -M insert \eh backward-char
bind -M insert \ew forward-word
bind -M insert \eb backward-word
#+end_src
** Functions
A small function to open the file with =$EDITOR=.
#+begin_src fish
function e
eval $EDITOR $argv
end
#+end_src
* Nushell
:PROPERTIES:
:header-args+: :tangle ./.config/nu/config.toml :comments link

View file

@ -1,5 +1,5 @@
#!/usr/bin/env bash
# [[file:../../Console.org::*=autocommmit=][=autocommmit=:1]]
# [[file:../../Console.org::*=autocommit=][=autocommit=:1]]
TIMEOUT_MIN=${TIMEOUT_MIN:-60}
export DISPLAY=:0
@ -58,4 +58,4 @@ fi
if [[ $(git ls-files -u | wc -l) -gt 0 ]]; then
notify-send -u critical "Autocommit $(pwd)" "Merge conflict!"
fi
# =autocommmit=:1 ends here
# =autocommit=:1 ends here