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

Indicate when the cursors are paused #62

Open
duianto opened this issue May 7, 2017 · 2 comments
Open

Indicate when the cursors are paused #62

duianto opened this issue May 7, 2017 · 2 comments

Comments

@duianto
Copy link
Contributor

duianto commented May 7, 2017

Description

It would be helpful, if it was easier to see when the cursors are paused. The current method seems to be, that one moves the cursor, and checks if the other cursors also move.

Multiple cursor(s) appearance

A more user-friendly solution, could be to change the appearance of the multiple cursors when they are paused. Then their current state would be visible near the main cursor.

A possible "paused" cursor shape could be the hollow cursor-type.

But this solution leaves at least two cases where it still would be difficult to see the paused/resumed state.

  • When the main cursor is on top of the new cursor. This happens when the first multi cursor is created, by pressing: g r h.
  • When the other cursors are located above and/or below the current window.

Additional mode-line text

Another or an additional option could be to change the mode-line text. Here are some examples:
emc:p:3, emc:P:3,
emc(p):3, emc(P):3,
emc:paused:3, emc:PAUSED:3,
emc(paused):3, emc(PAUSED):3,
(emc:3), {emc:3}, [emc:3], <emc:3>

Inverted mode-line colors

The mode-line texts colors could (also) be inverted:

	(if evil-mc-frozen
		(propertize "%s:%d" 'face '(:inverse-video t))
	  "%s:%d")

If a specific color is picked then it might run into issues with some themes.

Currently (when this was written) the mode-line text uses the cursors current color as the background (there's an open issue about it here: Modeline indicator, background color, readability #57). If that's changed so that the mode-line text uses the default colors. Then the default and the inverted (paused) mode-line text colors would look like this (with the Spacemacs-dark theme):

paused-cursors_mode-line-text-inverted

Minibuffer messages

Maybe it would be useful to show a message in the minibuffer, when the cursors are paused and resumed. The messages could say something like this:

evil-mc Cursors Paused
evil-mc Cursors Resumed

Variable(s)

Variables for the options above, would make it easier to (en/dis)abled them.

@gabesoft
Copy link
Owner

gabesoft commented May 7, 2017

Great suggestion

@gabesoft
Copy link
Owner

gabesoft commented May 15, 2017

I added a mode-line indicator for paused state in this commit fdeb7dc. This may be enough for now but I'll look into changing the cursors face as well at some point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants