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
Requesting a feature for digit keys in normal mode to automatically act as universal-arguments, without needing to press C-u first.
For example, assuming the "j" key is mapped to move cursor down 1 line in normal mode (meow-next function), you can then move down 10 lines by typing "C-u 1 0 j".
My suggestion would allow you to move down 10 lines by simply typing "1 0 j" in normal mode.
I've already been testing this for a while in my own meow config with the following:
(meow-normal-define-key
'("1". (lambda () (interactive) (my-meow-digit 1)))
("2". (lambda () (interactive) (my-meow-digit 2)))
;; And so on...
It seems to work great and I haven't noticed any issues or conflicts with anything. It's very useful and I can't think of any reason not to have such a feature built-in to meow.
Of course there's probably a better way to build it into meow directly, such as modifying the meow-expand function or adding a var so this feature can be enabled/disabled (in case someone doesn't want it for some reason although I can't think of any downsides).
The text was updated successfully, but these errors were encountered:
There's a simple principle in Meow that we want to avoid DWIM command. Especially for those have different behaviors when there's a selection and when there's no selection. So a digit command should only work for one form, either as prefix or as suffix, otherwise user must distinguish whether there's a selection or not.
But yes, you can mix them up to build your own command.
Requesting a feature for digit keys in normal mode to automatically act as universal-arguments, without needing to press C-u first.
For example, assuming the "j" key is mapped to move cursor down 1 line in normal mode (meow-next function), you can then move down 10 lines by typing "C-u 1 0 j".
My suggestion would allow you to move down 10 lines by simply typing "1 0 j" in normal mode.
I've already been testing this for a while in my own meow config with the following:
And then bind the number keys to it as follows:
It seems to work great and I haven't noticed any issues or conflicts with anything. It's very useful and I can't think of any reason not to have such a feature built-in to meow.
Of course there's probably a better way to build it into meow directly, such as modifying the meow-expand function or adding a var so this feature can be enabled/disabled (in case someone doesn't want it for some reason although I can't think of any downsides).
The text was updated successfully, but these errors were encountered: