You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was reported by a friend trying out the develop branch.
There's a couple of smaller issues wrapped up in this. The performance issues should be fixable and are likely caused by how I'm lazy loading a menu item action. For instance windows:jump would require the windows module and call the jump function. We may be able to cache that better so we can avoid re-reloading modules.
The other part, where the alert window lingers was intended. Actions can be marked as repeatable. Let's say you want to jump 3 windows to the right, you can press:
cmd+spacewcmd+lcmd+lcmd+l
When an action is repeatable it sets a timer to wait for repeated keypresses from the currently open menu. When the timer fires, we close the menu and disable the hotkey modal.
To improve this, multiple ideas come to mind:
Display an animated progress bar representing the repeating timer. The vim module has an example of drawing a box at a specific size at a specific placement on the screen.
Hide the modal when an action is triggered but key the hotkey modal active for the duration of the timer. This is significantly easier than option Other keys should be disabled when modal is active #1 but may lead to confusing behavior on more complicated configs.
Remove the repeatable: true from the default actions. The easiest option of the 3. It may make the menu behave more as expected but then people may miss that feature.
This was fixed with updating the fsm library. May have also been caused by a build up of log data that slows Hammerspoon down. That was patched upstream.
Reproduction
Expected
The command should run immediately and the alert window should close immediately
Actual
Those commands take a moment to fire and the alert window lingers for a second or two.
The text was updated successfully, but these errors were encountered: