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

Request: When in wait_for_user_input(), show prompt #294

Closed
jamespharvey20 opened this issue Jun 8, 2019 · 6 comments
Closed

Request: When in wait_for_user_input(), show prompt #294

jamespharvey20 opened this issue Jun 8, 2019 · 6 comments

Comments

@jamespharvey20
Copy link

jamespharvey20 commented Jun 8, 2019

After the user calls a multiple_cursors function that calls wait_for_user_input(), I think it would be useful to to show a prompt in the status line. Even if it defaulted to off and required an option to turn it on. Something maybe like "multiple_cursors: " Ideally, it might even show the mode being MULTIPLE instead of NORMAL, but I'm not sure vim allows that customization.

Additionally, I think it would be great if vim-multiple-cursors worked together with vim-airline so when it's in wait_for_user_input(), vim-airline can show mode MULTIPLE (or M when that plugin is configured to show short mode names), and then nothing would be needed on a second status line when that plugin is being used, because the vim-multiple-cursors mode would be shown on it instead of NORMAL.

Assuming you guys might need to work together a small bit, not for the vim-multiple-cursors status line output of course, but for any vim-airline integration, I opened an issue in vim-airline.

@chrisbra
Copy link

vim-airline maintainer here: So how would it be possible to detect, whether Vim is in "Multiple Cursor Mode"?

@antoinemadec
Copy link
Collaborator

antoinemadec commented Jun 26, 2019

@jamespharvey20 @chrisbra , this feature would be good to have indeed.
We need to expose which mode vim-multipile-cursors is into (MULTIPLE_INSERT, MULTIPLE_NORMAL, MULTIPLE_VISUAL).

I don't have much time on my hand right now.
@terryma @eapache @balta2ar @marcospb19 , feel free to create a PR if you feel like it!

Cheers,
Antoine

@acheronfail
Copy link

I have the same request, however I'm using https://github.com/itchyny/lightline.vim instead.
As long as vim-multiple-cursors exposes a way to do this, it should be easy to connect it to lightline too.

@antoinemadec
Copy link
Collaborator

@acheronfail , correct, once the vim-multiple-cursors mode is accessible, any plugin could benefit from it.
However, I still don't have much time on my hand, sorry...
Pull request welcome! 😃

@chrisbra
Copy link

chrisbra commented Jul 31, 2020 via email

@balta2ar
Copy link
Contributor

@chrisbra #314

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

5 participants