2017-06-08 11:47:56 +02:00
|
|
|
;;; tools/tmux/autoload/evil.el -*- lexical-binding: t; -*-
|
2019-04-21 19:59:44 -04:00
|
|
|
;;;###if (featurep! :editor evil)
|
2017-02-19 18:55:00 -05:00
|
|
|
|
2017-04-09 22:25:18 -04:00
|
|
|
;;;###autoload (autoload '+tmux:run "tools/tmux/autoload/evil" nil t)
|
2017-04-09 22:30:49 -04:00
|
|
|
(evil-define-command +tmux:run (bang &optional command)
|
|
|
|
(interactive "<!><fsh>")
|
|
|
|
(if (evil-visual-state-p)
|
|
|
|
(+tmux/send-region evil-visual-beginning evil-visual-end bang)
|
|
|
|
(+tmux/run command bang)))
|
2017-02-19 18:55:00 -05:00
|
|
|
|
2017-04-09 22:25:18 -04:00
|
|
|
;;;###autoload (autoload '+tmux:cd-here "tools/tmux/autoload/evil" nil t)
|
2017-02-19 18:55:00 -05:00
|
|
|
(evil-define-command +tmux:cd-here (bang)
|
|
|
|
(interactive "<!>")
|
|
|
|
(if bang
|
|
|
|
(+tmux/cd-to-here)
|
|
|
|
(+tmux/cd-to-project)))
|
|
|
|
|