Have XY consider the tree context when using Set/Go Home

Features wanted...
Post Reply
Mesh
Posts: 956
Joined: 24 Mar 2008 21:22

Have XY consider the tree context when using Set/Go Home

Post by Mesh »

If you have Home set as a folder inside your User folder, My Documents folder, etc..., but you originally set it while in one of the specialty tree items (i.e. when you have XY configured to show My Documents in the root of the tree, for example)... when you execute the Go Home command, it brings you to the correct folder - but it does so in the full tree.

I think it would be helpful if XY noted whether you were in the full tree when you set the home location, or in one of the specialty folders - and respected that when you executed Go Home. Now, if you subsequently disabled that specialty folder, it should then go to the full tree, of course.

But the way it is now, I sometimes work off of the specialty tree items because the full path is particularly convoluted to get to, and it makes a mess of things unnecessarily. When I do that with the Home feature, however, I lose the ability to keep everything neat the first time I use Go Home.

Having XY consider the context would be a nice feature for people working under similar conditions. Just my two cents. :)

tiago
Posts: 589
Joined: 14 Feb 2011 21:41

Re: Have XY consider the tree context when using Set/Go Home

Post by tiago »

+1 cent to the ballot.
Power-hungry user!!!

admin
Site Admin
Posts: 66366
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Have XY consider the tree context when using Set/Go Home

Post by admin »

I probably did not get it right, but when I set a home to "Desktop" then Go Home brings me to Desktop (as desired), not to C:\Dokumente und Einstellungen\Donald\Desktop\.

Mesh
Posts: 956
Joined: 24 Mar 2008 21:22

Re: Have XY consider the tree context when using Set/Go Home

Post by Mesh »

admin wrote:I probably did not get it right, but when I set a home to "Desktop" then Go Home brings me to Desktop (as desired), not to C:\Dokumente und Einstellungen\Donald\Desktop\.
Aha! That led me to discover the issue, then!

If I set Home via the UI, it works properly. But when I set it via a script that runs "tab("sethome", $CurrentPath);", *that's* when it doesn't do it properly.

Did I not code that command properly, or is this a bug with that scripting command?

admin
Site Admin
Posts: 66366
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Have XY consider the tree context when using Set/Go Home

Post by admin »

Mesh wrote:
admin wrote:I probably did not get it right, but when I set a home to "Desktop" then Go Home brings me to Desktop (as desired), not to C:\Dokumente und Einstellungen\Donald\Desktop\.
Aha! That led me to discover the issue, then!

If I set Home via the UI, it works properly. But when I set it via a script that runs "tab("sethome", $CurrentPath);", *that's* when it doesn't do it properly.

Did I not code that command properly, or is this a bug with that scripting command?
Well, where is $CurrentPath from? Its value is the one that counts...

Mesh
Posts: 956
Joined: 24 Mar 2008 21:22

Re: Have XY consider the tree context when using Set/Go Home

Post by Mesh »

admin wrote:
Well, where is $CurrentPath from? Its value is the one that counts...

I'm in the exact same place that we've been talking about - somewhere in the My Documents folder directly off the tree. It works fine when using the UI's Set Home command, but doesn't get set correctly when using the script command I mentioned.

admin
Site Admin
Posts: 66366
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Have XY consider the tree context when using Set/Go Home

Post by admin »

Mesh wrote:
admin wrote:
Well, where is $CurrentPath from? Its value is the one that counts...

I'm in the exact same place that we've been talking about - somewhere in the My Documents folder directly off the tree. It works fine when using the UI's Set Home command, but doesn't get set correctly when using the script command I mentioned.
Show the part of the script where $CurrentPath is set.

nas8e9
Posts: 2232
Joined: 21 Jun 2008 14:50

Re: Have XY consider the tree context when using Set/Go Home

Post by nas8e9 »

Could it be that your script sets $CurrentFolder to <curpath> instead of <curpath_s>? According to the help file, the former does indeed return the real current path, whereas the latter returns the special current path if applicable (e.g. Desktop\New Stuff); otherwise it returns the real current path.

Mesh
Posts: 956
Joined: 24 Mar 2008 21:22

Re: Have XY consider the tree context when using Set/Go Home

Post by Mesh »

That was it. I was using get("Path") (or something along those lines).

I changed that to <curpath_s>, and that fixed the issue. I originally found the path under the "get" command, and didn't see anything regarding special paths, so I used what was available.

Thanks for pointing that out to me, and I apologize for the unnecessary request. :)

Post Reply