Skip to content

Commit

Permalink
tweak(ssh-deploy): add transient menu
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Nov 12, 2024
1 parent 7ba12d5 commit dd9f562
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions modules/me-tools.el
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,29 @@
:straight t
:hook ((after-save . ssh-deploy-after-save)
(find-file . ssh-deploy-find-file))
:bind (("C-c C-z" . +ssh-deploy-transient))
:custom
(ssh-deploy-revision-folder (concat minemacs-cache-dir "ssh-deploy-revisions/"))
:config
(ssh-deploy-hydra "C-c C-z"))

:init
(transient-define-prefix +ssh-deploy-transient ()
"Transient for flymake."
[[("u" "Upload" ssh-deploy-upload-handler :transient t)
("f" "Force Upload" ssh-deploy-upload-handler-forced :transient t)
("d" "Download" ssh-deploy-download-handler :transient t)
("D" "Delete" ssh-deploy-delete-handler :transient t)
("x" "Difference" ssh-deploy-diff-handler :transient t)
("R" "Rename" ssh-deploy-rename-handler :transient t)
("e" "Detect Remote Changes" ssh-deploy-remote-changes-handler :transient t)]
[("t" "Eshell Base Terminal" ssh-deploy-remote-terminal-eshell-base-handler)
("T" "Eshell Relative Terminal" ssh-deploy-remote-terminal-eshell-handler)
("h" "Shell Base Terminal" ssh-deploy-remote-terminal-shell-base-handler)
("H" "Shell Relative Terminal" ssh-deploy-remote-terminal-shell-handler)]
[("b" "Browse Base" ssh-deploy-browse-remote-base-handler)
("B" "Browse Relative" ssh-deploy-browse-remote-handler)
("o" "Open current file on remote" ssh-deploy-open-remote-file-handler)
("m" "Open sql-mysql on remote" ssh-deploy-remote-sql-mysql-handler)
("s" "Run deploy script" ssh-deploy-run-deploy-script-handler)]]))

;; TRAMP integration for Incus containers
(use-package incus-tramp
Expand Down

0 comments on commit dd9f562

Please sign in to comment.