Skip to content

Commit feb7848

Browse files
vemvexpez
authored andcommitted
Add 'back' commands to the Hydra children menus
1 parent ec15835 commit feb7848

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

clj-refactor.el

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -407,11 +407,13 @@ Otherwise open the file and do the changes non-interactively."
407407
_ai_: Add import to ns _am_: Add missing libspec _ap_: Add project dependency
408408
_ar_: Add require to ns _au_: Add use to ns _cn_: Clean ns
409409
_rm_: Require a macro into the ns _sr_: Stop referring
410+
_b_: Back to previous Hydra
410411
"
411412
("ai" cljr-add-import-to-ns) ("am" cljr-add-missing-libspec)
412413
("ap" cljr-add-project-dependency) ("ar" cljr-add-require-to-ns)
413414
("au" cljr-add-use-to-ns) ("cn" cljr-clean-ns)
414415
("rm" cljr-require-macro) ("sr" cljr-stop-referring)
416+
("b" hydra-cljr-help-menu/body :exit t)
415417
("q" nil "quit"))
416418

417419
(defhydra hydra-cljr-code-menu (:color pink :hint nil)
@@ -424,6 +426,7 @@ _il_: Introduce let _is_: Inline symbol
424426
_pf_: Promote function _rl_: Remove let _rs_: Rename symbol
425427
_tf_: Thread first all _th_: Thread _tl_: Thread last all
426428
_ua_: Unwind all _uw_: Unwind
429+
_b_: Back to previous Hydra
427430
"
428431
("ci" clojure-cycle-if) ("ct" cljr-cycle-thread)
429432
("dk" cljr-destructure-keys) ("el" cljr-expand-let)
@@ -433,6 +436,7 @@ _ua_: Unwind all _uw_: Unwind
433436
("rs" cljr-rename-symbol) ("tf" clojure-thread-first-all)
434437
("th" clojure-thread) ("tl" clojure-thread-last-all)
435438
("ua" clojure-unwind-all) ("uw" clojure-unwind)
439+
("b" hydra-cljr-help-menu/body :exit t)
436440
("q" nil "quit"))
437441

438442
(defhydra hydra-cljr-project-menu (:color pink :hint nil)
@@ -443,13 +447,16 @@ _ap_: Add project dependency _cs_: Change function signatu
443447
_hd_: Hotload dependency _is_: Inline symbol _mf_: Move form
444448
_pc_: Project clean _rf_: Rename file-or-dir _rs_: Rename symbol _sp_: Sort project dependencies
445449
_up_: Update project dependencies
450+
_b_: Back to previous Hydra
446451
"
447452
("ap" cljr-add-project-dependency) ("cs" cljr-change-function-signature)
448453
("fu" cljr-find-usages) ("hd" cljr-hotload-dependency)
449454
("is" cljr-inline-symbol) ("mf" cljr-move-form)
450455
("pc" cljr-project-clean) ("rf" cljr-rename-file-or-dir)
451456
("rs" cljr-rename-symbol) ("sp" cljr-sort-project-dependencies)
452-
("up" cljr-update-project-dependencies) ("q" nil "quit"))
457+
("up" cljr-update-project-dependencies)
458+
("b" hydra-cljr-help-menu/body :exit t)
459+
("q" nil "quit"))
453460

454461
(defhydra hydra-cljr-toplevel-form-menu (:color pink :hint nil)
455462
"
@@ -459,21 +466,27 @@ _as_: Add stubs for the interface/protocol at point_cp_: Cycle privacy
459466
_ec_: Extract constant _ed_: Extract form as def _ef_: Extract function
460467
_fe_: Create function from example _is_: Inline symbol _mf_: Move form
461468
_pf_: Promote function _rf_: Rename file-or-dir _ad_: Add declaration
469+
_b_: Back to previous Hydra
462470
"
463471
("as" cljr-add-stubs) ("cp" clojure-cycle-privacy)
464472
("cs" cljr-change-function-signature) ("ec" cljr-extract-constant)
465473
("ed" cljr-extract-def) ("ef" cljr-extract-function)
466474
("fe" cljr-create-fn-from-example) ("is" cljr-inline-symbol)
467475
("mf" cljr-move-form) ("pf" cljr-promote-function)
468-
("rf" cljr-rename-file-or-dir) ("ad" cljr-add-declaration) ("q" nil "quit"))
476+
("rf" cljr-rename-file-or-dir) ("ad" cljr-add-declaration)
477+
("b" hydra-cljr-help-menu/body :exit t)
478+
("q" nil "quit"))
469479

470480
(defhydra hydra-cljr-cljr-menu (:color pink :hint nil)
471481
"
472482
Cljr related refactorings
473483
------------------------------------------------------------------------------------------------------------------------------------------------------
474484
_sc_: Show the project's changelog _?_: Describe refactoring
485+
_b_: Back to previous Hydra
475486
"
476-
("sc" cljr-show-changelog) ("?" cljr-describe-refactoring) ("q" nil "quit"))
487+
("sc" cljr-show-changelog) ("?" cljr-describe-refactoring)
488+
("b" hydra-cljr-help-menu/body :exit t)
489+
("q" nil "quit"))
477490

478491
(defhydra hydra-cljr-help-menu (:color pink :hint nil)
479492
"

0 commit comments

Comments
 (0)