vim-multiple-cursors icon indicating copy to clipboard operation
vim-multiple-cursors copied to clipboard

Request: When in wait_for_user_input(), show prompt

Open jamespharvey20 opened this issue 7 years ago • 6 comments

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.

jamespharvey20 avatar Jun 08 '19 12:06 jamespharvey20

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

chrisbra avatar Jun 11 '19 07:06 chrisbra

@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

antoinemadec avatar Jun 26 '19 19:06 antoinemadec

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.

acheronfail avatar Sep 16 '19 01:09 acheronfail

@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! :smiley:

antoinemadec avatar Sep 16 '19 21:09 antoinemadec

Why was this closed?

Am 30.07.2020 um 21:51 schrieb Antoine [email protected]:

 Closed #294.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

chrisbra avatar Jul 31 '20 10:07 chrisbra

@chrisbra https://github.com/terryma/vim-multiple-cursors/issues/314

balta2ar avatar Jul 31 '20 12:07 balta2ar