micro-editor / micro-editor/micro

Feature request: option to not insert empty line when wrapping line that exactly hits limit

Open
#3,235 10 comments 2 reactions 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

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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.