-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CLOSED] Prepopulate replace input with current editor selection #1910
Comments
Comment by peterflynn This looks good, but one thing I noticed is that the replace begins on the next occurrence after the text you initially selected. It loops back around eventually, but the text you had selected will always be last to get replaced. This bug already existed, of course, but your change makes it easier to hit since there's now an incentive to have some text selected. I think you can fix this by changing line 225 from |
Comment by jbalsas Yes, I noticed that as well, but as it was already happening in master and is stated in the comments at the top I thought about trying to solve it separately... Something similar happens if you have the cursor in the middle of a word (no selection) which looks strange to me. However, I've been testing it and Sublime2 does exactly the same.
|
Comment by jbalsas
After reading it again, I think the comment I was quoting refers to the find-next in general, which still works like that. This could also be fixed by setting |
Comment by peterflynn
But we can do that cleanup later -- I'm happy to merge this pull request now. |
Issue by jbalsas
Friday Oct 26, 2012 at 08:51 GMT
Originally opened as adobe/brackets#1964
Prepopulates the replace input with the current editor selection.
This pull request replaces adobe/brackets#1962 following
@
peterflynn suggestions.jbalsas included the following code: https://github.com/adobe/brackets/pull/1964/commits
The text was updated successfully, but these errors were encountered: