Author Topic: Narrowing the multi-file searc/replace scope  (Read 488 times)

mzel

  • Junior Community Member
  • Posts: 9
  • Hero Points: 0
Narrowing the multi-file searc/replace scope
« on: April 20, 2017, 06:04:45 pm »
Hi all,
I have a project of ~400 files within a workspace of  ~2000 files. All are .h and .cpp files. Can I limit the scope of  search and replace to a subset of ~15 files.
Is there such a thing as sub-project? Can the same file be included in more than one project within a workspace?
TIA, Mark

hs2

  • Senior Community Member
  • Posts: 2725
  • Hero Points: 281
Re: Narrowing the multi-file searc/replace scope
« Reply #1 on: April 20, 2017, 06:19:39 pm »
Quote
Can the same file be included in more than one project within a workspace
Yes. But there is no such thing as a sub-project.
You could e.g. open (only) these 15 files and search 'All Buffers'.
HS2

davehohl

  • Senior Community Member
  • Posts: 230
  • Hero Points: 11
Re: Narrowing the multi-file searc/replace scope
« Reply #2 on: April 20, 2017, 07:24:28 pm »
If a file can be included in multiple projects, then you could create a special project with just those 15 files. Set it as the active project and limit your search to the project.

mzel

  • Junior Community Member
  • Posts: 9
  • Hero Points: 0
Re: Narrowing the multi-file searc/replace scope
« Reply #3 on: April 20, 2017, 08:32:25 pm »
Yes, I was missing the "if" part. Still does anybody know of a different way?

davehohl

  • Senior Community Member
  • Posts: 230
  • Hero Points: 11
Re: Narrowing the multi-file searc/replace scope
« Reply #4 on: April 20, 2017, 08:48:03 pm »
As far as I know, your search options are limited by the selections in the Look in: pull-down in the Find dialog. So "All Buffers" or a specific project seem like the best options.

mzel

  • Junior Community Member
  • Posts: 9
  • Hero Points: 0
Re: Narrowing the multi-file searc/replace scope
« Reply #5 on: April 20, 2017, 08:55:48 pm »
Ok, thanks everybody who replied

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2091
  • Hero Points: 257
Re: Narrowing the multi-file searc/replace scope
« Reply #6 on: April 21, 2017, 10:32:32 pm »
You could just paste all 15 file names into the "Look in:" box of the "Find in Files" tool window.  Make sure you quote them if the paths contain spaces.

mzel

  • Junior Community Member
  • Posts: 9
  • Hero Points: 0
Re: Narrowing the multi-file searc/replace scope
« Reply #7 on: April 21, 2017, 10:36:43 pm »
Wow, that is a good one!
Thanks for the tip!