You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is probably due to how micro handles line wrapping.
Micro simply jumps to the next line of text when you press down, but this is unintuitive due to the wrapped lines spanning multiple rows in the terminal.
Working up/down movement with soft-wrapped lines would be an important feature, and it's a common feature in text editors.
When writing prose (blogs, research...) it would be natural to write one paragraph in one line, and let micro wrap it to current window size. Current behavior where up/down arrow jumps whole paragraphs makes it infeasible to use soft wrap. But when soft wrap is disabled, other people editing those documents find the excess line feeds odd.
This bug has been discussed already in 2016 in "Up/Down navigation ignores soft-wrap" #498 . That bug was closed with a comment introducing a plugin emulating correct up/down arrow behavior, micro-natural-navigation-plugin. https://github.com/samdmarshall/micro-natural-navigation-plugin . Unfortunately, the plugin repository is now archived, so the plugin is probably unsupported.
Luckily, the source code of the archived plugin is still available. Based on the short Lua code of the plugin, adding this feature built-in to micro is possible.
Correct cursor movement on wrapped lines would be a useful feature in micro itself.
I tested the discontinued natural-navigation-plugin, and it does not work in micro 2.0.8. Maybe it could still be useful example for implementing this behavior.
Sometimes when I press arrow up or down the cursor jumps a whole paragraph. How do I make it always move only one row at a time?
The text was updated successfully, but these errors were encountered: