Author Topic: Search and replace clearing selection  (Read 5306 times)

PouncingPanda

  • Community Member
  • Posts: 74
  • Hero Points: 2
Search and replace clearing selection
« on: April 06, 2008, 06:35:44 PM »
SE2008: Is there any way to have search and replace not clear the selection of selected text?  I often do things like apply several regex operations to a set of selected text to do things like convert a pasted (C++) enum to a list of case statements for switch - I have to rehighlight the text every time I do a search and replace.  If there is no way I think it would be cool to add a checkbox for it alongside "Wrap and beginning/end", "Place cursor at end", etc.

hs2

  • Senior Community Member
  • Posts: 2763
  • Hero Points: 292
Re: Search and replace clearing selection
« Reply #1 on: April 06, 2008, 07:40:41 PM »
Edit>Search: 'Leave selected' could help.
BTW: There is another unique feature in SE: locked selections which might help you with some tasks.
HS2

PouncingPanda

  • Community Member
  • Posts: 74
  • Hero Points: 2
Re: Search and replace clearing selection
« Reply #2 on: April 06, 2008, 07:57:01 PM »
Thanks.  Unfortunately "leave selected" does not work if it performs a replace inside the selection - it only works if replace fails to find anything.

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1299
  • Hero Points: 130
Re: Search and replace clearing selection
« Reply #3 on: April 07, 2008, 12:10:44 PM »
It's not supposed to clear the selection after replace, that is a bug.  Someone else reported it through support, and it will be addressed in the first hotfix release, which should be available real soon now.

PouncingPanda

  • Community Member
  • Posts: 74
  • Hero Points: 2
Re: Search and replace clearing selection
« Reply #4 on: April 17, 2008, 08:24:32 PM »
Sweet, you guys are the best.

PouncingPanda

  • Community Member
  • Posts: 74
  • Hero Points: 2
Re: Search and replace clearing selection
« Reply #5 on: April 20, 2008, 07:14:18 AM »
Wait a minute, what does that mean "reported it through support"?  Are these forums not the correct place to report bugs?

hs2

  • Senior Community Member
  • Posts: 2763
  • Hero Points: 292
Re: Search and replace clearing selection
« Reply #6 on: April 20, 2008, 07:29:43 AM »
Hi PouncingPanda,
ususally it's ok to post problems/bug reports here.
But it's more save to email support@slickedit.com - see this statement from support.

HS2