Author Topic: Workspace relative paths, in FindInFiles?  (Read 179 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2385
  • Hero Points: 201
  • Text
Workspace relative paths, in FindInFiles?
« on: August 12, 2021, 05:04:24 pm »
In the "Lookin" field, is there a way to use workspace relative paths?
    <Workspace>\src\foo\bar
doesn't work.

Ideally, filename completion would continue to work.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6064
  • Hero Points: 467
Re: Workspace relative paths, in FindInFiles?
« Reply #1 on: August 12, 2021, 07:24:14 pm »
Definitely no support for this yet.

Too bad there isn't an alias escape sequence for the workspace path. Then you could define an alias (like wp) and press Ctrl-Space to get the workspace path.

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3429
  • Hero Points: 465
Re: Workspace relative paths, in FindInFiles?
« Reply #2 on: August 12, 2021, 10:19:02 pm »
Try this (from the Look in: field of Find in Files):

workspace<Ctrl+Space>

There are also built-in aliases for "project" and "build".
« Last Edit: August 12, 2021, 10:20:37 pm by Dennis »

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6064
  • Hero Points: 467
Re: Workspace relative paths, in FindInFiles?
« Reply #3 on: August 12, 2021, 10:57:38 pm »
Looks like the alias "workspace" is defined as "%\M_workspace_path%. You can create your own alias with the same or different name.

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3429
  • Hero Points: 465
Re: Workspace relative paths, in FindInFiles?
« Reply #4 on: August 12, 2021, 11:04:30 pm »
There are also secret built-in aliases for project directories using just the project name (assuming the project is part of the current workspace).  For example, if you have:

   topdir/wacky.vpw
   topdir/src/crazysauce.vpj
   topdir/include/incadincado.vpj
   topdir/help/me.vpj

me<Ctrl+Space> will expand to "<topdir>/help"