]> git.lizzy.rs Git - micro.git/commit
find: select prefilled text (#2127)
authorDmitry Maluka <dmitrymaluka@gmail.com>
Wed, 9 Jun 2021 21:04:11 +0000 (23:04 +0200)
committerGitHub <noreply@github.com>
Wed, 9 Jun 2021 21:04:11 +0000 (17:04 -0400)
commit3bfd367d87c4f143dfb22515876d4099d44bd8ec
tree3bd5b089d649fc851827ef25d02f4d58c6fdfeae
parent6d5beb50baaf0267daf3b2a1259f74c4c208fae2
find: select prefilled text (#2127)

The new feature of prefilling the search bar with the selected text (added
in 3d0b5db) has an annoying side effect: if we do have some text selected
but we want to search for some other pattern, not the selected text,
then we have to manually delete the prefilled text before we can start
entering our wanted search pattern.

A simple solution is to select the prefilled text, so that we can replace it
with our pattern right away just by typing, without any additional keystrokes.
internal/action/actions.go