mayerwin / vs-customize-window-title

Customize Visual Studio Window Title - Visual Studio Extension
https://marketplace.visualstudio.com/items?itemName=mayerwin.RenameVisualStudioWindowTitle
MIT License
108 stars 30 forks source link

svnDirectoryName:X #40

Closed theKBro closed 5 years ago

theKBro commented 5 years ago

Is there any way to "reverse" the index for svnDirectoryName? We have multiple projects located in one svn server so we have something like

/prog1/branches/ /framework/prog2/branches/

and im only interested in the branch name. Like it is now i cannot set global settings. Maybe something like [svnDirectoryName:-1]?

mayerwin commented 5 years ago

This isn't supported but I agree it should be. For negative numbers, -1 will be the rightmost element (since -0 is already taken), -2 the second rightmost, etc. I'll implement this today and let you know when you can update.

mayerwin commented 5 years ago

Done, please test version 4.3.0 and let me know if you notice any issue.

As per the documentation:

Tag arguments X and Y for paths can also be negative numbers, in which case the corresponding path element or range will be resolved backwards, starting from -1 = last path element, -2 = second-to-last path element, etc.

theKBro commented 5 years ago

Works like a charm!