branch: externals/hydra commit f27fce1b2f0a9162e159557bdeb2c0c94defb4d2 Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
hydra.el: Bump version * doc/Changelog.org: Add. --- doc/Changelog.org | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ hydra.el | 2 +- 2 files changed, 70 insertions(+), 1 deletion(-) diff --git a/doc/Changelog.org b/doc/Changelog.org new file mode 100644 index 0000000000..429a7ddd8c --- /dev/null +++ b/doc/Changelog.org @@ -0,0 +1,69 @@ +* 0.15.0 +** New Features + +*** defhydra + +**** New :base-map option in body plist +In case your hydra conficts with el:hydra-base-map, you can now override it. + +Example: +#+begin_src elisp +(defhydra hydra-numbers (:base-map (make-sparse-keymap)) + "test" + ("0" (message "zero")) + ("1" (message "one"))) +#+end_src +See [[https://github.com/abo-abo/hydra/issues/285][#285]]. + +**** Make no docstring equivalent to :hint nil +Example: +#+begin_src elisp +(defhydra hydra-clock (:color blue) + ("q" nil "quit" :column "Clock") + ("c" org-clock-cancel "cancel" :color pink :column "Do") + ("d" org-clock-display "display") + ("e" org-clock-modify-effort-estimate "effort") + ("i" org-clock-in "in") + ("j" org-clock-goto "jump") + ("o" org-clock-out "out") + ("r" org-clock-report "report")) +#+end_src +See [[https://github.com/abo-abo/hydra/issues/291][#291]]. + +**** Declare /params and /docstring +See [[https://github.com/abo-abo/hydra/issues/185][#185]]. + +**** Sexp hints are now supported for :columns +Example +#+begin_src elisp +(defhydra hydra-test () + "Test" + ("j" next-line (format-time-string "%H:%M:%S" (current-time)) :column "One") + ("k" previous-line (format-time-string "%H:%M:%S" (current-time))) + ("l" backward-char "back" :column "Two")) +#+end_src +See [[https://github.com/abo-abo/hydra/issues/311][#311]]. + + +*** defhydra+ +New macro. Allows to add heads to an existing hydra. + +Example: +#+begin_src elisp +(defhydra hydra-extendable () + "extendable" + ("j" next-line "down")) + +(defhydra+ hydra-extendable () + ("k" previous-line "up")) +#+end_src +See [[https://github.com/abo-abo/hydra/issues/185][#185]]. + +*** el:hydra-hint-display-type +Customize what to use to display the hint: +- el:message +- el:lv-message +- posframe + +el:hydra-lv is now obsolete. +See [[https://github.com/abo-abo/hydra/issues/317][#317]]. diff --git a/hydra.el b/hydra.el index 6da21a2378..4137823b25 100644 --- a/hydra.el +++ b/hydra.el @@ -5,7 +5,7 @@ ;; Author: Oleh Krehel <ohwoeo...@gmail.com> ;; Maintainer: Oleh Krehel <ohwoeo...@gmail.com> ;; URL: https://github.com/abo-abo/hydra -;; Version: 0.14.0 +;; Version: 0.15.0 ;; Keywords: bindings ;; Package-Requires: ((cl-lib "0.5") (lv "0"))