Fix tmux commands
This commit is contained in:
parent
a416b7acd3
commit
3e8ecdb118
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@
|
||||||
(evil-define-command narf:tmux-run (&optional command bang)
|
(evil-define-command narf:tmux-run (&optional command bang)
|
||||||
"Sends input to tmux. Use `bang' to append to tmux"
|
"Sends input to tmux. Use `bang' to append to tmux"
|
||||||
(interactive "<tmux><!>")
|
(interactive "<tmux><!>")
|
||||||
(nerf/tmux-send (format (if bang "C-u %s Enter" "%s")
|
(narf--tmux-send (format (if bang "C-u %s Enter" "%s")
|
||||||
(shell-quote-argument command)))
|
(shell-quote-argument command)))
|
||||||
(when (evil-ex-p)
|
(when (evil-ex-p)
|
||||||
(message "[Tmux] %s" command)))
|
(message "[Tmux] %s" command)))
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
(file-truename path)
|
(file-truename path)
|
||||||
(error "Directory doesn't exist %s" path))
|
(error "Directory doesn't exist %s" path))
|
||||||
(if bang default-directory (narf/project-root))))))
|
(if bang default-directory (narf/project-root))))))
|
||||||
(nerf/tmux-send (format "C-u cd Space %s Enter" (shell-quote-argument dir)))
|
(narf--tmux-send (format "C-u cd Space %s Enter" (shell-quote-argument dir)))
|
||||||
(when (evil-ex-p)
|
(when (evil-ex-p)
|
||||||
(message "[Tmux] cd %s" dir))))
|
(message "[Tmux] cd %s" dir))))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue