atom / find-and-replace

Find and replace in a single buffer and in the project
MIT License
242 stars 197 forks source link

Suggestion: pre-select contents of "replace with" field when tabbing into the field #745

Open adamreisnz opened 8 years ago

adamreisnz commented 8 years ago

When the find and replace panel is open, and you press the shortcut for find & replace again, focus shifts on the "find" field and the contents of that input field gets pre-selected, so that you can quickly overwrite it by typing something else.

Could we also pre-select the contents of the "replace with" input field when the user tabs into it? That will speed up typing a different replacement as well.

adamreisnz commented 8 years ago

Note that this already seems to be working for "find in files". However, it doesn't work for regular find in a single file.

PhiLhoSoft commented 8 years ago

I am generally fine with the current behavior, because sometime I tab and just want to alter a bit the replace string. If I want to type over the whole replace text, I just hit Ctrl-A which works there. Now, either way is fine (Home key after tabbing could reproduce current behavior if it is implemented), it might be better to have consistency of behavior between the two modes (find / find in files).