mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-11 19:45:25 +03:00
feat(console): with-editor
This commit is contained in:
parent
f1e4731ca5
commit
138d5522f9
3 changed files with 16 additions and 2 deletions
|
|
@ -60,3 +60,9 @@ bind -M insert \eh backward-char
|
||||||
bind -M insert \ew forward-word
|
bind -M insert \ew forward-word
|
||||||
bind -M insert \eb backward-word
|
bind -M insert \eb backward-word
|
||||||
# Keybindings:1 ends here
|
# Keybindings:1 ends here
|
||||||
|
|
||||||
|
# [[file:../../Console.org::*Functions][Functions:1]]
|
||||||
|
function e
|
||||||
|
eval $EDITOR $argv
|
||||||
|
end
|
||||||
|
# Functions:1 ends here
|
||||||
|
|
|
||||||
|
|
@ -489,6 +489,14 @@ bind -M insert \eh backward-char
|
||||||
bind -M insert \ew forward-word
|
bind -M insert \ew forward-word
|
||||||
bind -M insert \eb backward-word
|
bind -M insert \eb backward-word
|
||||||
#+end_src
|
#+end_src
|
||||||
|
** Functions
|
||||||
|
A small function to open the file with =$EDITOR=.
|
||||||
|
|
||||||
|
#+begin_src fish
|
||||||
|
function e
|
||||||
|
eval $EDITOR $argv
|
||||||
|
end
|
||||||
|
#+end_src
|
||||||
* Nushell
|
* Nushell
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:header-args+: :tangle ./.config/nu/config.toml :comments link
|
:header-args+: :tangle ./.config/nu/config.toml :comments link
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# [[file:../../Console.org::*=autocommmit=][=autocommmit=:1]]
|
# [[file:../../Console.org::*=autocommit=][=autocommit=:1]]
|
||||||
TIMEOUT_MIN=${TIMEOUT_MIN:-60}
|
TIMEOUT_MIN=${TIMEOUT_MIN:-60}
|
||||||
|
|
||||||
export DISPLAY=:0
|
export DISPLAY=:0
|
||||||
|
|
@ -58,4 +58,4 @@ fi
|
||||||
if [[ $(git ls-files -u | wc -l) -gt 0 ]]; then
|
if [[ $(git ls-files -u | wc -l) -gt 0 ]]; then
|
||||||
notify-send -u critical "Autocommit $(pwd)" "Merge conflict!"
|
notify-send -u critical "Autocommit $(pwd)" "Merge conflict!"
|
||||||
fi
|
fi
|
||||||
# =autocommmit=:1 ends here
|
# =autocommit=:1 ends here
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue