diff options
| author | Jakob L. Kreuze | 2020-07-02 21:14:45 -0400 |
|---|---|---|
| committer | Jakob L. Kreuze | 2020-07-02 21:14:45 -0400 |
| commit | f0a4bb3e6db11de4332c33fe671efb6d5b85362e (patch) | |
| tree | 59e6543eaa3e5b6b252ad51957152d5eebadf39b /lisp/shell.el | |
| parent | 09c9a7a96c28d7bfc85ac182e92d81a0d2b92a3e (diff) | |
Properly parse visual commands.
Diffstat (limited to 'lisp/shell.el')
| -rw-r--r-- | lisp/shell.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/shell.el b/lisp/shell.el index ecd1433..0ff7b7e 100644 --- a/lisp/shell.el +++ b/lisp/shell.el @@ -147,12 +147,12 @@ (args (cl-rest (split-string input " "))) (visual (cl-member command visual-commands :test #'string=))) (cond ((string= command "man") (man (string-join args " ")) - (shell-fake-comint-send)) - (visual (apply #'start-process "" nil "alacritty" - "--class" (format "*%s*,*%s*" command command) - "-t" input - "-e" command args) - (shell-fake-comint-send)) + (shell-fake-comint-send pmark)) + (visual (start-process + "" nil "alacritty" + "--class" (format "*%s*,*%s*" command command) + "-e" "bash" "-c" (format "echo -ne \"\033]0;%s\007\" && %s" input input)) + (shell-fake-comint-send pmark)) (t (comint-send-input))))))) (bind-key "RET" 'shell-screen-command shell-mode-map) |