Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Open file in solution should show relative paths
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

xMRi
Tomato Guru

Germany
315 Posts

Posted - Jan 12 2018 :  02:52:39 AM  Show Profile  Reply with Quote
Hello!

Idea for Open file in Solution (Sift+Alt+O) to show relative paths.

Sometimes I have long path names. But the only the root path for the project is long.
How about an option that shows relative path names, based on the current solution.

Assume the base solution is
D:\Dev\Root\Projects\Solution
and projects
D:\Dev\Root\Projects\Solution\Proj1
D:\Dev\Root\Projects\Solution\Proj2

There might be a common folder like this
D:\Dev\Root\Common

Files can be shown as
.\Proj1\main.cpp
.\Proj2\main.cpp

Or as
[Solution]\Proj1\main.cpp
[Solution]\Proj2\main.cpp

Additional gimic ;)
Also for the depth of 2 directories (adjustable) also folders up the tree may be shown as relative paths.
[Solution]\..\..\Common\CommonHeader.h

For complex directory structure this would help to identify files.

Happy coding
Martin

Martin Richter [rMVP] WWJD http://blog.m-ri.de
"A well-written program is its own heaven; a poorly written
program is its own hell!" The Tao of Programming

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Jan 13 2018 :  08:39:25 AM  Show Profile  Reply with Quote
A very interesting thought, and it makes a lot of sense. It turns out someone else suggested this a while ago, but I prefer the solution as the base directory approach, it seems clearer, at least when it works:

case=16131

I have made a note on the case about your suggestions here. For now, in the cases where you know the directory name you are looking for, are you aware you can use "\Proj1" as one of the search terms, to just search for files with this as part of their path?

zen is the art of being at one with the two'ness
Go to Top of Page

xMRi
Tomato Guru

Germany
315 Posts

Posted - Jan 13 2018 :  1:25:44 PM  Show Profile  Reply with Quote
The way using another part of the path is OK.

But assume a real complex C# project.
You have 5 files in 5 folders names model.cs ;)

Now assume the base pathname is long...
You path column may not be large enough to show all needed information.

Just another reason for my idea.

Martin Richter [rMVP] WWJD http://blog.m-ri.de
"A well-written program is its own heaven; a poorly written
program is its own hell!" The Tao of Programming
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Jan 15 2018 :  08:26:37 AM  Show Profile  Reply with Quote
I suspected that path filtering would not help so much, but worth mentioning in case it helped. I have definitely seen times and places where some path information would make it a lot clearer.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000