Add: tools/eshell: C-d now quits or deletes depending on state
this is the default behavior of bash, zsh et al.
This commit is contained in:
parent
d0e84e3d41
commit
22c9e2350d
2 changed files with 8 additions and 0 deletions
|
@ -35,6 +35,13 @@ module to be loaded."
|
|||
(+eshell/run))
|
||||
(doom/workspace-display))
|
||||
|
||||
;;;###autoload
|
||||
(defun +eshell/quit-or-delete-char (arg)
|
||||
(interactive "p")
|
||||
(if (and (eolp) (looking-back eshell-prompt-regexp))
|
||||
(eshell-life-is-too-much)
|
||||
(delete-forward-char arg)))
|
||||
|
||||
(defun +eshell--outside-prompt-p ()
|
||||
(< (point) eshell-last-output-end))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue