Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide menu? #51

Open
dpavlic opened this issue Feb 5, 2022 · 1 comment
Open

Hide menu? #51

dpavlic opened this issue Feb 5, 2022 · 1 comment

Comments

@dpavlic
Copy link

dpavlic commented Feb 5, 2022

Firstly, thank you for the LOVELY package. Coming from vim, hydra combined with major / pretty mode hydra is a lovely alternative to the Evil impedance mismatch.

What I am wondering is if there is a way to bind a key to hide the menu while still keeping the hydra active? This seems to exist in the regular hydra (abo-abo/hydra#301 (comment)) but I am wondering how I'd recreate something like that with the pretty hydra?

Thanks!

@jerrypnz
Copy link
Owner

jerrypnz commented Oct 4, 2023

Hi sorry for the super super late response. I know it has been a very long time. I haven't been actively working on emacs stuff due to work and family and I finally got some time again. I didn't know about this feature and it seems pretty cool! Keen to implement it into major/pretty hydra macros.

I'm thinking of an extra keyword parameter :show-hide-key which when provided adds a key that toggles the visibility of the menu.

(pretty-hydra-define jp-window (:foreign-keys warn :title jp-window--title :quit-key "q" :show-hide-key "?")
  ("Actions"
   (("TAB" other-window "switch")
    ("x" ace-delete-window "delete")
    ("m" ace-delete-other-windows "maximize")
    ("s" ace-swap-window "swap")
    ("a" ace-select-window "select"))

   "Resize"
   (("h" move-border-left "←")
    ("j" move-border-down "↓")
    ("k" move-border-up "↑")
    ("l" move-border-right "→")
    ("n" balance-windows "balance")
    ("f" toggle-frame-fullscreen "toggle fullscreen"))

   "Split"
   (("b" split-window-right "horizontally")
    ("B" split-window-horizontally-instead "horizontally instead")
    ("v" split-window-below "vertically")
    ("V" split-window-vertically-instead "vertically instead"))

   "Zoom"
   (("+" zoom-in "in")
    ("=" zoom-in)
    ("-" zoom-out "out")
    ("0" jp-zoom-default "reset"))))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants