Author Topic: Files Tool Window - Path - can the displayed path be relative to project?  (Read 1471 times)

gtrimble

  • Community Member
  • Posts: 11
  • Hero Points: 1
Hello,
Is there a way to configure the Files Tool Window display to show the path relative to the project directory?

As it is now, it shows the entire path from the root of the drive that I am on, which makes it difficult to find the correct file because the filename(s) are on the left side and I have to scroll, sometimes around 145 characters, to the right to see the path to choose which file I need to open.

If the path were relative, it would reduce the length by 66 characters.

Thanks,

-Glenn

warnerrs

  • Senior Community Member
  • Posts: 115
  • Hero Points: 4
Re: Files Tool Window - Path - can the displayed path be relative to project?
« Reply #1 on: November 19, 2015, 01:49:40 am »
This.

Tim Kemp

  • Senior Community Member
  • Posts: 514
  • Hero Points: 83
Re: Files Tool Window - Path - can the displayed path be relative to project?
« Reply #2 on: November 19, 2015, 02:05:05 pm »
I agree that this would be a nice feature. I think it would be a new feature though. So it probably won't happen soon.

If you would like to have this functionality right now, without SlickEdit changing, you might be able to use your operating to get similar results.

In Windows you can map a drive letter to your project path.

In almost everything everything else (all the UNIX spawn) you can crate a link to make a short version of the project directory.

I'm sure there are different and probably better ways to do this. Anyone else, please feel free to chime in with creative solutions.

gtrimble

  • Community Member
  • Posts: 11
  • Hero Points: 1
Re: Files Tool Window - Path - can the displayed path be relative to project?
« Reply #3 on: November 19, 2015, 05:44:31 pm »
Tim,

I tried mapping a drive to my folder, and even changed the working directory to that drive letter, closed and restarted SlickEdit, and the old drive and path still show up in the File Tool Window.

I also looked in the .vpw and .vpj file and didn't see the old drive letter.

I will check to see if creating a new project using the newly mapped drive letter works.

Thanks,

-Glenn

gtrimble

  • Community Member
  • Posts: 11
  • Hero Points: 1
Re: Files Tool Window - Path - can the displayed path be relative to project?
« Reply #4 on: November 19, 2015, 05:50:04 pm »
I created the new project with the new mapped drive letter, but the File Tool Window still shows the old "fully qualified" letter with path. Windows just doesn't want to be without an anchor I guess.

-Glenn

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2364
  • Hero Points: 319
Re: Files Tool Window - Path - can the displayed path be relative to project?
« Reply #5 on: November 19, 2015, 06:17:43 pm »
That is a good idea.  I am filing a feature request for us to add that option to a future release.

Here's a query though, if the relative path is "../../monkey/business/", instead of a path directly under the workspace or project directory, would you still want the relative path or the absolute path for that file? 

I would vote for the absolute path, but I think an argument could be made for allowing a single set of dots, but after that divining the path requires more thinking than it is worth to save the space.
« Last Edit: November 19, 2015, 06:21:58 pm by Dennis »

Tim Kemp

  • Senior Community Member
  • Posts: 514
  • Hero Points: 83
Re: Files Tool Window - Path - can the displayed path be relative to project?
« Reply #6 on: November 19, 2015, 07:28:09 pm »
@gtrimble, I tried it and it seems to work fine.  Here is the original:


And here is after I mapped C:\data\MiniSensor\branches\ULCE\Sensor to w: and created a new project with the same files:


Here is the command I used to do the mapping (if it makes any difference):
subst w: C:\data\MiniSensor\branches\ULCE\Sensor
« Last Edit: November 19, 2015, 07:37:03 pm by Tim Kemp »

jimlangrunner

  • Senior Community Member
  • Posts: 358
  • Hero Points: 30
  • Jim Lang - always a student.
Re: Files Tool Window - Path - can the displayed path be relative to project?
« Reply #7 on: November 19, 2015, 08:42:14 pm »
Now, see, I would have used "net use" for the mapping. Might even have had to create a share to do it.  Trying that now.

gtrimble

  • Community Member
  • Posts: 11
  • Hero Points: 1
Re: Files Tool Window - Path - can the displayed path be relative to project?
« Reply #8 on: November 19, 2015, 09:04:01 pm »
Hey Tim,

That works for me.
subst y: w:\bfc_work1\gtrimble\accu\INT_ProdRlsD31Ver600_gcc492\rbb_cm_ecos

Thanks!

gtrimble

  • Community Member
  • Posts: 11
  • Hero Points: 1
Re: Files Tool Window - Path - can the displayed path be relative to project?
« Reply #9 on: November 19, 2015, 09:06:20 pm »
Hey Dennis,

I would think that a relative path to the working directory would be the way to go. That way, I wouldn't have to "nail-up" lots of drive letters for paths to projects. I have many projects and that would soon exhaust the available free drive letters.

Thanks,

-Glenn

Tim Kemp

  • Senior Community Member
  • Posts: 514
  • Hero Points: 83
Re: Files Tool Window - Path - can the displayed path be relative to project?
« Reply #10 on: November 19, 2015, 09:30:20 pm »
Hey Glenn,

It's sort of old school, but you could make a batch file for each project to remap the drive letter. That way they could all use the same drive and you wouldn't run out of drive letters. It's, "subst w: /D" to unmap the substed drive.

gtrimble

  • Community Member
  • Posts: 11
  • Hero Points: 1
Re: Files Tool Window - Path - can the displayed path be relative to project?
« Reply #11 on: November 19, 2015, 10:11:05 pm »
That's a great suggestion, thanks Tim.