micro-editor / micro-editor/micro
WordRight moves one character before the word
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
WordLeft moves the cursor to the beginning of the word.
WordRight moves the cursor one character before the beginning of the word.
So, pressing Ctrl+Right and then Ctrl+Left, would end up in a different place if you would press Ctrl+Right and then Ctrl+Left.
This is also different than how all the other editors work.
Specifications
Version: 2.0.9-dev.31
Commit hash: 84f72489
OS: Linux Mint 20 (based on Ubuntu 20.04)
Terminal: Kitty 0.15.0
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
Reproduce the Ctrl+Right then Ctrl+Left behavior in the editor and trace the WordRight and WordLeft command implementations. Look for the existing movement tests and add a regression case showing that WordRight reaches the word boundary expected by the issue; done means the cursor returns to its original position after the two commands.
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
- 45/100