[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ssh-deploy 4c5b82a 062/133: Added hydra application as
From: |
Stefan Monnier |
Subject: |
[elpa] externals/ssh-deploy 4c5b82a 062/133: Added hydra application as shortcut |
Date: |
Sat, 27 Mar 2021 14:48:44 -0400 (EDT) |
branch: externals/ssh-deploy
commit 4c5b82adea1d2e6f85871c460bb5eca5631c9086
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>
Added hydra application as shortcut
---
ssh-deploy.el | 42 +++++++++++++++++++++++-------------------
1 file changed, 23 insertions(+), 19 deletions(-)
diff --git a/ssh-deploy.el b/ssh-deploy.el
index 58ba98a..ccf7bf2 100644
--- a/ssh-deploy.el
+++ b/ssh-deploy.el
@@ -1380,9 +1380,12 @@
(defun ssh-deploy-add-find-file-hook () "Add the `find-file-hook'."
(when (fboundp 'ssh-deploy-find-file) (add-hook 'find-file-hook
'ssh-deploy-find-file)))
-(when (fboundp 'defhydra)
- (defhydra ssh-deploy-hydra (:color red :hint nil)
- "
+;;;###autoload
+(defun ssh-deploy-set-hydra (shortcut)
+ "Attach hydra at SHORTCUT."
+ (when (fboundp 'defhydra)
+ (defhydra ssh-deploy-hydra (:color red :hint nil)
+ "
SSH Deploy Menu
_u_: Upload _f_: Force Upload
@@ -1397,22 +1400,23 @@
_o_: Open current file on remote _m_: Open sql-mysql on remote
_s_: Run deploy script
"
- ("f" #'ssh-deploy-upload-handler-forced)
- ("u" #'ssh-deploy-upload-handler)
- ("d" #'ssh-deploy-download-handler)
- ("D" #'ssh-deploy-delete-handler)
- ("x" #'ssh-deploy-diff-handler)
- ("t" #'ssh-deploy-remote-terminal-eshell-base-handler)
- ("T" #'ssh-deploy-remote-terminal-eshell-handler)
- ("h" #'ssh-deploy-remote-terminal-shell-base-handler)
- ("H" #'ssh-deploy-remote-terminal-shell-handler)
- ("e" #'ssh-deploy-remote-changes-handler)
- ("R" #'ssh-deploy-rename-handler)
- ("b" #'ssh-deploy-browse-remote-base-handler)
- ("B" #'ssh-deploy-browse-remote-handler)
- ("o" #'ssh-deploy-open-remote-file-handler)
- ("m" #'ssh-deploy-remote-sql-mysql-handler)
- ("s" #'ssh-deploy-run-deploy-script-handler)))
+ ("f" #'ssh-deploy-upload-handler-forced)
+ ("u" #'ssh-deploy-upload-handler)
+ ("d" #'ssh-deploy-download-handler)
+ ("D" #'ssh-deploy-delete-handler)
+ ("x" #'ssh-deploy-diff-handler)
+ ("t" #'ssh-deploy-remote-terminal-eshell-base-handler)
+ ("T" #'ssh-deploy-remote-terminal-eshell-handler)
+ ("h" #'ssh-deploy-remote-terminal-shell-base-handler)
+ ("H" #'ssh-deploy-remote-terminal-shell-handler)
+ ("e" #'ssh-deploy-remote-changes-handler)
+ ("R" #'ssh-deploy-rename-handler)
+ ("b" #'ssh-deploy-browse-remote-base-handler)
+ ("B" #'ssh-deploy-browse-remote-handler)
+ ("o" #'ssh-deploy-open-remote-file-handler)
+ ("m" #'ssh-deploy-remote-sql-mysql-handler)
+ ("s" #'ssh-deploy-run-deploy-script-handler))
+ (global-set-key (kbd shortcut) 'ssh-deploy-hydra/body)))
(defvar ssh-deploy-prefix-map
(let ((map (make-sparse-keymap)))
- [elpa] externals/ssh-deploy 4268c8b 035/133: Fixed bug with constant definition, (continued)
- [elpa] externals/ssh-deploy 4268c8b 035/133: Fixed bug with constant definition, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 7be2881 038/133: Fixed proper symbols for actions, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 3c5fe09 037/133: More work on diff mode cosmetic changes, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 95a932a 047/133: Started on unit-tests, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 0b43ceb 048/133: Added unit tests for get-revision-path and is-not-empty-string, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 4ff27e9 049/133: Minor modifications after suggestions from flycheck-package, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 5871711 052/133: Renamed TRAMP to Tramp and added link to lisp code style, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy e834379 053/133: Updated version, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 2388c00 056/133: Added -p suffix to predicate functions, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy bc93b81 057/133: Updated version, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 4c5b82a 062/133: Added hydra application as shortcut,
Stefan Monnier <=
- [elpa] externals/ssh-deploy 0e98d8e 046/133: Removed unnecessary group, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy c7407ef 069/133: Using (kill-buffer) instead of reverting default-directory in unit tests, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy d9f61e1 071/133: Resolved byte-compilation with optional hydra feature, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy f2cdb1a 077/133: Started on asynchronous tests, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 1073a7c 078/133: Replace more (require) with (autoload), Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy d992624 087/133: More work on asynchronous unit test of detecting remote changes, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 3223f69 094/133: Updated Travis file, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 9b5d3d2 111/133: Fixed bug wih conditonal logic for async file diff, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy bebeaa1 100/133: Updated version to 3.1, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy c4fd187 039/133: Deletion working from diff-mode, Stefan Monnier, 2021/03/27