Home Download Buy Blog Forum Support

Find and Replace Wishlist

Find and Replace Wishlist

Postby adzenith on Mon Oct 19, 2009 9:41 pm

I just tried out Sublime for the first time, and it's really sweet. I like the minimap, I like the color scheme, and I really like how clean it feels.
There's just a couple things that have been a dealbreaker in pretty much every editor I've ever used, and Sublime is really close to doing what I want but not quite there. Specifically, it'd be really nice if:

  • There were a command for "replace" (as in "replace and find next"; as opposed to "showPanel replace").
  • There were a command to put the current selection into the "Replace with:" half of the replace panel.
  • There were a command to put the current selection into the "Find what:" half of the replace panel without immediately searching for it. Right now I use findUnder, which almost does what I want but not quite.
  • The "showPanel" command didn't automatically fill the input box with what's currently selected.
  • The replace panel input boxes could be expanded.
    Right now they accept multiple lines only (so far as I can tell) through the use of findUnder (pasting a multiline clipboard only pastes the last line), which is inconvenient especially in the fact that there's no way to then replace with a multiline string. So the functionality is there for them to support multiple lines; I'd just like to be able to make the box bigger, to be able to use the up and down arrows to navigate the current content instead of browsing the history, and to be able to paste multiline clipboard contents unchanged.

To make it more clear, my ideal workflow goes something like this (the shortcut keys are not the important part, obviously. As an aside, I really like Sublime's easy .sublime-keymap format. It makes editing keys way faster than does a GUI):
  • Select a word.
  • Hit ctrl-e to put my selection into the "find" half.
  • Edit what was just selected to change it to what I want.
  • Select that.
  • Hit ctrl-shift-e to put the new word into the "replace" half.
  • Hit ctrl-g to find next.
  • Hit ctrl-r to replace and find next, or ctrl-g to not replace if this one shouldn't be replaced.

As long as I'm writing a wish-list, I may as well say this: Ideally I'd like to only use the find/replace panel, even when not replacing, but when I hit "Enter" in it, it replaces by default instead of finding by default. If there were a way to change this that'd be awesome.

Thanks!
adzenith
 
Posts: 1217
Joined: Mon Oct 19, 2009 9:12 pm

Re: Find and Replace Wishlist

Postby EJ12N on Tue Oct 20, 2009 1:48 am

+1 for this :)
jps wrote:Also now exposed to plugins is the ability to change the current search string (as shown in the find panel, and used by F3): overwrite the option "find.string" to change this.

Maybe we can get find.stringReplace
and a find.doReplace, find.doFind (I know we have findAll already...)
EJ12N
 
Posts: 281
Joined: Tue Apr 21, 2009 5:23 pm

Re: Find and Replace Wishlist

Postby AKWintermute on Tue Oct 20, 2009 5:12 pm

I would second support for multiline find and replace text with expandable text-areas instead of text-boxes.
AKWintermute
 
Posts: 4
Joined: Sat Oct 17, 2009 6:31 am

Re: Find and Replace Wishlist

Postby EJ12N on Wed Nov 18, 2009 5:46 pm

# Hit ctrl-e to put my selection into the "find" half.
# Hit ctrl-shift-e to put the new word into the "replace" half.


available in latest beta :)
EJ12N
 
Posts: 281
Joined: Tue Apr 21, 2009 5:23 pm


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: Exabot [Bot] and 15 guests