Feature: Replacement Preview
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- frontend
Research direction
No files or tests are named. Start by locating the existing substitute-command handling and its tests, then compare the current behavior with the described staged previews for :%s/foo, :%s/foo/bar, and :%s/foo/bar/g; done means those previews work consistently and are covered by tests.
Written by the indexing model from the issue text.
Description
VsCodeVim has a neat feature of previewing replacement commands.
While writing :%s/foo, it will highlight all occurrences of foo (1 per line).
When proceeding with :%s/foo/bar it will keep the highlight on the previously marked words, but they will now be visibly changed to bar.
Similarly, adding the finishing :%s/foo/bar/g, it will apply that preview to multiple occurrences per line.
I think that's a great way of knowing if the regex you're trying to replace works as intended.
Would that be a feature that would also fit CodeMirror Vim?
- Dominant language
- JavaScript
- Stars
- 473
- Forks
- 54
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from replit/codemirror-vim
-
[Bug] Exiting Visual mode at end of line leaves the Normal-mode cursor past the final characterOpen
Difficulty 3/5 1-2 days Newbie friendliness 65/100
replit/codemirror-vim#277 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 50/100
replit/codemirror-vim#276 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
replit/codemirror-vim#264 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
replit/codemirror-vim#251 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
replit/codemirror-vim#243 ·
All issues in replit/codemirror-vim
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Effect-TS/effect#8728 · 1 comment ·
Maintainers usually reply within 1 day
-
[quality] coverage gate exits 0 when the test run is killed by a signal (tests/tools/coverage-report.mjs:680 `?? 1` is untested)Possibly taken @hivecommons-hive claimed this today. Openagent/quality hive/covered-by-pr hive/hosted-available-lke648397-260827-5n31 quality testing
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Maintainers usually reply within 1 day
-
deep-research
Difficulty 1/5 Under an hour Newbie friendliness 65/100
githubnext/gh-aw-wizard#314 ·
Maintainers usually reply within 1 day
-
feedback simulation workshop
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
githubnext/gh-aw-workshop#4174 ·
Maintainers usually reply within 1 day