vmware-archive / scripted

The Scripted code editor
Eclipse Public License 1.0
1.56k stars 166 forks source link

Find jumps to next occurance of last search instead of letting me type a search #285

Open michaelkantor opened 11 years ago

michaelkantor commented 11 years ago

If the search bar is showing and I hit Cmd-F, going to the next occurance of my search term is good.

But if the search bar is hidden and I hit Cmd-F and it executes the last remembered search, it could take me a thousand lines away from where I'd wanted to start my search. So now I have to search for the line I started at instead of the text I'm trying to find.

Adding insult to injury, if I clear out the text in the search bar, close the search bar, go back to where I started, and hit Cmd-F again, it restores the search that I deliberately cleared and jumps 1000 lines down the file.

Recommended behaviors (some of which work and some do not):

  1. If search bar is closed and I hit Cmd-F, open the search bar, focus on the search text and give me the opportunity to edit it instead of immediately executing the search.
  2. Cmd-F only executes the search if the searchbar is open; which after completing behavior 1 will be the case.
  3. Hitting Enter within the searchbar can also be used to reexecute the current search text
  4. Typing something will replace (or be added to) the current search, and the search will execute as I type STARTING FROM WHERE I WAS WHEN FIRST OPENNING THE SEARCH BAR!
  5. If I clear the searchbar text, that should be remembered.