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

Fix flatten which-key--update advice for toggle functions. #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jeff-phil
Copy link

Pass flatten parameter to hercules-hide in order to remove advice for which-key--update when flattened. Otherwise, which-key no longer pops-up after certain events.

For example, using the code from top of README for macrostep-mode being the toggle-funs works great.

Except if hit q in macrostep-mode, the map is toggled off when mode is quit. Then which-key no longer works, due to the override advice for which-key--update not being removed. By passing flatten param from hercules toggle, the hercules hide function removes advice.

Pass `flatten` parameter to `hercules-hide` in order to remove
advice for `which-key--update` when flattened.  Otherwise,
which-key no longer pops-up.
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

Successfully merging this pull request may close these issues.

1 participant