micro-editor / micro-editor/micro
Feature Request: add Alt + Q shortcut to hard-wrap lines at the preconfigured "ruler" column width
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
Depends on: https://github.com/zyedidia/micro/issues/2694
In Sublime Text I can hard-wrap using Alt + Q. This will hard-wrap at the first specified ruler position in the settings. Please implement this feature in micro too.
Ex: when the first ruler is set to 80 chars, this:
I am a long line that goes beyond 80 chars. See! Look how long I am. I don't even want to be on one single line though, in truth.
...becomes this after clicking on the line and pressing Alt + Q.:
I am a long line that goes beyond 80 chars. See! Look how long I am. I don't
even want to be on one single line though, in truth.
Specifications
Commit hash: 225927b9
OS: Linux Ubuntu 22.04
Terminal: terminator 2.1.1
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 reviewing the dependency issue 2694, then inspect micro's existing ruler settings, hard-wrap behavior, and shortcut handling. Implement Alt+Q so the current line wraps at the first configured ruler column, and verify that the example long line is split at that position without changing the intended text.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100