micro-editor / micro-editor/micro

SpawnMultiCursorAll - feature request

Open
#2,920 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
29.6k
Forks
1.4k
Avg merge
2d 18h
Merged PRs (30d)
10

Description

Hi,

Multi-cursor editing is great! The more I use multiple cursors, the more I wish for a function to edit all occurrences of a selection. I guess a pair of functions ScrollNextCursor/ScrollPrevCursor would also be needed so we can check all the selections before editing.

This would be much easier than ReplaceAll. ReplaceAll requires me to type/paste the target, then the replacement and feels long-winded, especially when there are spaces demanding quotes. If I make an error with ReplaceAll I may lose the unique target and cannot correct without undo.

Simply typing the replacement using multiple cursors feels much easier - like a superpower!

Sorry I don't have the skills to code this myself.

Kind Regards Gavin Holt

Version: 2.0.12-dev.75
Commit hash: 75b9a6ce
Compiled on September 02, 2023
OS: Windows
Terminal: Conhost.exe

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the existing multi-cursor commands and the ReplaceAll entry point in the editor. Define how SpawnMultiCursorAll should select every occurrence and how ScrollNextCursor/ScrollPrevCursor should navigate those selections before editing. Done means the requested commands work reliably without requiring the user to retype the target.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.