-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Counts are prefixed by C-u when displayed in the status bar #9741
Comments
^_^, this is emacs' style, do not think like vim |
The effect this the same, But evil is not vim. |
Its actually more correct this way, the numbers you see do count as a prefix argument, which you most typically enable with C-u. So commands that behave differently with C-u will show the same behaviour when you first enter 12345 instead. Though there probably is a way to change that. Youll need to dig into spaceline's segment definitions,. |
Turns out If you really want to change it: (remove-hook 'prefix-command-echo-keystrokes-functions 'universal-argument--description)
(add-hook 'prefix-command-echo-keystrokes-functions 'whatever) Where (defun universal-argument--description ()
(when prefix-arg
(concat "C-u"
(pcase prefix-arg
(`(-) " -")
(`(,(and (pred integerp) n))
(let ((str ""))
(while (and (> n 4) (= (mod n 4) 0))
(setq str (concat str " C-u"))
(setq n (/ n 4)))
(if (= n 4) str (format " %s" prefix-arg))))
(_ (format " %s" prefix-arg)))))) By the way, the display area is called the "echo-area" (it also doubles as the minibuffer window). The status bar is usually called the "mode-line", and is above the echo-area. (Spaceline is a package that modifies the mode-line) |
I don't count this as a bug, so I labeled it as "Forum". You could report it as a bug to Evil upstream, but I don't think they'll consider it a bug either. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid! |
Description
In Vim you can type
123j
to go down 123 lines. Emacs also has counts, you typeC-u 123
. Currently in Spacemacs when you type a partial command likeSPC-h
org-
the status bar will display the typed combination. When typing123
the status bar displaysC-u 123
. Its a small thing but it really bothers me. Is there an easy way to fix it?Reproduction guide 🪲
123
Observed behaviour: 👀 💔
C-u 123-
is displayedExpected behaviour: ❤️ 😄
123-
is displayedSystem Info 💻
The text was updated successfully, but these errors were encountered: