SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: jporkkahtc on August 12, 2021, 05:04:24 PM

Title: Workspace relative paths, in FindInFiles?
Post by: jporkkahtc 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.
Title: Re: Workspace relative paths, in FindInFiles?
Post by: Clark 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.
Title: Re: Workspace relative paths, in FindInFiles?
Post by: Dennis 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".
Title: Re: Workspace relative paths, in FindInFiles?
Post by: Clark 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.
Title: Re: Workspace relative paths, in FindInFiles?
Post by: Dennis 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"