micro-editor / micro-editor/micro
Feature request: option to not insert empty line when wrapping line that exactly hits limit
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 29.6k
- Forks
- 1.4k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 10
Description
With word wrap on, if a line has the exact minimum length to be wrapped, an empty line is displayed between it and the next line in the file (which isn't what modern GUI editors tend to do).
My suggestion is for an option to disable this behaviour so that the line that has the exact minimum length is not wrapped.
Empty lines being displayed where they shouldn't be breaks structure and grouping made with empty lines. Worse when writing prose in the style of a book (intended paragraphs with only one line break between them, not two).
I tried to edit a clone of micro to do this, but nothing I tried actually removed said blank lines. If it's not a change that fits in micro then some direction on how to do it, plugin or source edit, would be appreciated!
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 tracing the word-wrap behavior described in the issue and identify where the exact-limit case inserts a displayed blank line. Define an option that leaves an exactly-at-limit line unwrapped, then verify that normal wrapping and paragraph spacing still behave correctly in the terminal editor.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100