Page 1 of 1

oxygen editor variable for selected file/folder

Posted: Tue Apr 17, 2012 8:00 pm
by pmac
Is there an oxygen equivalent of the eclipse ${resource_loc} ?
Meaning the file system path of the selection in the project view.

Everything i could find was based on the file open in the editor which makes it hard to get at parent directories.

I want to do (for source control stuff with p4) simple external tools that do things like

p4 diff ${resource_loc)/...

For example, so i can select a folder in the proj view and see the accumulated diffs below that point.

Thanks

PMac

Re: oxygen editor variable for selected file/folder

Posted: Wed Apr 18, 2012 5:08 pm
by adrian
Hello,

Unfortunately there isn't such an editor variable for the selection in the Project view. I've added an improvement request for this.
Everything i could find was based on the file open in the editor which makes it hard to get at parent directories.
Note that there are editor variables for the path and URL of the current file directory (parent): ${cfd}, ${cfdu}

Regards,
Adrian

Re: oxygen editor variable for selected file/folder

Posted: Wed Apr 18, 2012 10:46 pm
by pmac
Thanks.

I don't think the existing vars you mention really help a lot. I want one external tool called something like "diff hierarchy" so i can see pending changes below a "selected" node. I anticipate maybe 4 levels of useful hierarchy (e.t. root, collection, doc, section) ... so having to open a file and have some convention for "parent of open file" or "parent of parent of open file" would drive me to the command line ...

PMac

Re: oxygen editor variable for selected file/folder

Posted: Thu Apr 19, 2012 11:22 am
by adrian
I'm sorry, I simply tried to offer a workaround.
Only the contextual actions(from the popup menu) in the Project view have access to the project selection and paths.

Regards,
Adrian