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

Multicursor Layer Issue in Spacemacs #16182

Open
Ghasak opened this issue Nov 8, 2023 · 1 comment
Open

Multicursor Layer Issue in Spacemacs #16182

Ghasak opened this issue Nov 8, 2023 · 1 comment
Labels

Comments

@Ghasak
Copy link

Ghasak commented Nov 8, 2023

Dear Spacemacs Team,
Firstly, I would like to extend a heartfelt thank you from myself and the Spacemacs user community for your exceptional dedication to developing Spacemacs. Your hard work truly enriches all Spacemacs' users coding experience (me included), and for that, I am profoundly grateful.

However, I am currently encountering an issue with the multi-cursor layer that I hope to get some guidance on. I'm utilizing mc as the engine for multiple cursors, I'm facing a challenge with cursor behavior:

Steps to Reproduce the Issue

  1. I select multiple instances where I wish to have cursors.
  2. I create the cursors at these selected instances.
  3. Upon switching to insert mode and pressing Enter, I intend for all cursors to move to a new line. Unfortunately, only the first cursor is doing so, while the others remain static and I get Multiple-Cursors mode disabled in current buffer after hitting Enter.

Attachment: For better clarity, I've included a video that illustrates the problem in action.

Screen.Recording.2023-11-08.at.14.55.05.mov

I would greatly appreciate any help or suggestions you could provide to resolve this issue. Your support is invaluable,
Thank you for your attention and for maintaining such an incredible project.

Layer configures

     (multiple-cursors
      :variables
      multiple-cursors-backend  'mc;; other mode  'evil-mc (not support number)
      mc/cmds-to-run-once '(upcase-region)
      )

user-config

 ;; -------------------------------------------------------------
 ;;              MULTI- CURSOR MC ENGINE
 ;;              KEYBINDING SIMPLIFIED
 ;; -------------------------------------------------------------
 (define-key evil-normal-state-map (kbd "C-c i n") 'mc/insert-numbers)
 (define-key evil-visual-state-map (kbd "C-n") 'mc/mark-more-like-this-extended)
@rawenous
Copy link
Contributor

Is this not working as intended? This is what the multiple-cursor README says

To get out of multiple-cursors-mode, press return or C-g. The latter will first disable multiple regions before disabling multiple cursors. If you want to insert a newline in multiple-cursors-mode, use C-j.

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

No branches or pull requests

3 participants