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
I think it’s best to keep it how it is. You can access previous searches by using the up arrow in the find prompt, and pressing ctrl-n in the buffer will instantly find the next occurrence of the previous search.
In less, when opening up 'find' with / the search box remains empty, but if you press enter it will search for the previously entered search pattern again.
I think it would be nice to have the ability to do this in Micro. Most other editors have a variation of this - eg Sublime Text retains the find, but selects it so if you start typing it gets overwritten.
Ctrl-n definitely makes this pointless, but that also means having to remember the keybind! :D
Yeah this is pretty confusing... but if it was possible to add keybindings which only work on the search prompt then people would have more flexibility to make the behavior feel natural to them.
For example, I would prefer that enter would bind to both confirm the search and jump to the next match and I would prefer that ctrl+n and ctrl+p would work in the search prompt. When I want to exit searching I press Esc... Obviously those commands don't make sense to have run in the default configuration wherein the search text has not been "confirmed" yet--and I don't expect this behavior to make sense to everyone, but it would be nice if micro allowed for more flexibility
When invoking the Find or Replace command the search string of the previous command should be offered.
The text was updated successfully, but these errors were encountered: