Skip to content

Repeat search in both directions prev/next #4086

@etosan

Description

@etosan

Description

Also mentioned in #1748, but this is slightly different concept.

Editor is amazing, although it spawns "zillions" of go threads :D, I am in process of moving to it everywhere from nano.

I was hoping msedit would be better nano replacement, but terminal support there is not that great. micro has some terminal issues as well but overall the experience is much better. My quintessential "quick" editor model is edit.com/qbasic editor. Most nix native offerings are either too bloated or complex for that or have weird bindings, micro almost hits the sweet spot.

One final thing I am missing, is "repeat search" feature almost everything else offers, that would make this editor actually useful for 99% of quick edit use cases.

Description: in 99% editors (even non modals) there is "search mode/search context" which, when you enter the search pattern they remember it and when you pres "search" keychord again, they continue with last remembered word/pattern from current position both forward or backwards.

This allows you to skim document quickly by repeated keystrokes.

Unfortunately in micro, when you press search combo, only search input pops. Then you need to type in word/pattern (or pick in history with arrows) and only then it remembers it. From now on you can find the word "easily".

HOWEVER once you are in search prompt, and the word is found, screen scrolls into position, but you are stuck: you either need to press ESC to cancel whole search state, or ENTER to confirm find. Only THEN you can search again.

Maybe I am missing some keybind or misread docs or don't understand the feature - but the behavior should be, that while I am in search prompt, even if word is found, when I execute search-forward/search-back chord again I SHOULD jump to next/previous occurrence (without the need to ESC/ENTER cancel/confirm) - to start searching agan. This should work in any search direction: forward or backward, ie i should be able to flip foward/backward anytime like i can in bat,less, most, nano, vim, msedit or any GUI editor.

Can this be please fixed?

With this modification micro would be most useful "quick editor" in the space.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions