micro-editor / micro-editor/micro
Can't search/replace/replace with '\n'
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 29.6k
- Forks
- 1.4k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 10
Description
Description of the problem or steps to reproduce
1, type Ctrl-F to Find
2, type '\n' or '\r?\n'
That should find the line break of the buffer instead of 'no matches found',
Replace or Replace with '\n' also not work.
Currently It seems there is no way to insert newline with replace.
Tested with micro 2.0.4 and git master.
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Start by reproducing the problem through Ctrl-F in micro, testing both searching for and replacing with '\n' and '\r?\n'. Trace the find and replace entry points to determine how line breaks are handled. Done means searches can match buffer line breaks and replacement can insert them.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100