作者:手机用户2502935197 | 来源:互联网 | 2023-08-23 09:09
It would be nice to have a permanent visual indication of a modal status.
The most basic one is this:
1 2 3 4
| lua
k:bind({'cmd'}, 'a', myfunc)
function k:entered() hydra.alert('Entered mode') end
function k:exited() hydra.alert('Exited mode') end |
Some ideas on how it should work:
- The visual indicator should always be visible when the modal is active. You can choose wether to show it or not when the modal is inactive, maybe changing its color to differentiate states.
What the visual indication should look like:
- An statusbar icon.
- A textgrid.
- Something custom by drawing primitives (see #323).
该提问来源于开源项目:mjolnirapp/mjolnir
This can either be done with a simple text box (mjolnir-io/ext#28), a textgrid, or drawing primitives (mjolnir-io/ext#24). Closing in favor of one of those.