Source Control Integration - #2, Pasted Path Manipulation

Discussion & Support for xplorer² professional

Moderators: fgagnon, nikos, Site Mods

Do you have a use for path pattern replacement?

Poll ended at 2005 Feb 17, 18:54

Yes
2
67%
No
1
33%
 
Total votes: 3

gladely
Member
Member
Posts: 9
Joined: 2004 Jun 11, 19:51
Location: california

Source Control Integration - #2, Pasted Path Manipulation

Post by gladely »

I want to be able to paste a path into the address bar of x2 which it doesn't understand.  I want to be able to do this by defining filter patterns in the registry, or options pan=nel.  The filter patterns would be compared against when a new path is pasted in the address bar (or navigated to, depending on performance).  The filter patterns should be paired regular expression replacement statements, which allows a portion of a path to be replaced with either 1) other content completely or 2) a re-arranged structure of the original path string.  

For example we have a source control path that gets copied from perforce as //depot/roottree/tree/tree/file.ext.  A proposed filter might exchange //depot/ for d:/sourcecontrol/, allowing the final path to be d:/sourcecontrol/roottree/tree/tree/file.ext.

These paths come directly from perforce, they come accross in email, and they get Instant Messaged around -- they are abundant.  I estimate that I change a perforce prefixed path no less than a 20 times a day.  

This is the second most desirable feature for x2, next to a single instance setting.  A single instance setting would provide an inconvenient work around of pasting the emailed path into perforce, right-clicking the item, and finally selecting Explore.  Hopefully that opens a new tab in x2, and not another instance.

Clearly, pasting in the right application the first time is much more desirable.

Have I missed a feature similar to this?

Thanks for the timeshare 8)

Gladely
User avatar
nikos
Site Admin
Site Admin
Posts: 16401
Joined: 2002 Feb 07, 15:57
Location: UK

Post by nikos »

:?
i don't get it!
do you think that users at large would understand -- let alone find a use for -- such a rocket-manager feature? :)
gladely
Member
Member
Posts: 9
Joined: 2004 Jun 11, 19:51
Location: california

What about mapped drives?

Post by gladely »

Yes, and I think there are more use cases which support this, too.

I also correct unix file paths; they map to a drive mapping (W:) but i have to fix the /usr/local/  portion by hand.  (thankfully the latest releases support forward slash and dont require backslash.)

URL to a mapped drive path (http://myserver/path/foo.asp) becomes W:\foosite\path\foo.asp.

While some urls I would want it to navigate to, the general case is that I want to edit the file, and therefore I need  a file system path abstracted from the Application Specific path (P4, URL, find).

Glade
User avatar
nikos
Site Admin
Site Admin
Posts: 16401
Joined: 2002 Feb 07, 15:57
Location: UK

Post by nikos »

x2 addressbar accepts paths with forward slashes, no problem there
however, why can't this "perforce" thing export windows-friendly paths?

there are a few workarounds i can think of e.g.
* make all these standard prefixes into environmental variables:

Code: Select all

set //depot/=d:/
then to "convert" the path you'd just have to add %% around the name as in %//depot/% (still some editing required)
* maybe folder junctions (?)

I still don't understand why webfolder paths http://blah can't be recognized in XP but i'm looking at improving them as we speak