Page 1 of 1

Neat file/folder feature

Posted: 07 Apr 2022 03:21
by JLoftus
I had no idea this existed, but stumbled across this today and I find this very useful!

I pasted a full filename path into the address bar, thinking it was just the folder name, not realizing the string also contained the filename...

To my surprise, XY handled it spectacularly, navigating to the containing folder, and selecting the file!

This is awesome, what a great feature!

Re: Neat file/folder feature

Posted: 07 Apr 2022 09:17
by Horst
Thats a normal function for all file managers I know. :)

Re: Neat file/folder feature

Posted: 07 Apr 2022 09:52
by admin
Next beta will have a little improvement here:

Code: Select all

    + Address Bar: Now the toggle "Open Files from Address Bar" is also available in the 
      context menu of files in the Address Bar (right-click the file icon). Before, it was 
      only available in the context menu of folders, where it makes less sense.

Re: Neat file/folder feature

Posted: 07 Apr 2022 14:30
by JLoftus
Horst wrote: ↑07 Apr 2022 09:17 Thats a normal function for all file managers I know. :)
Not Windows Explorer, for sure. Try pasting something like ""D:\Temp\SomePhoto.jpg" into the address bar of Windows Explorer. For me, not only does it not open the containing folder, but instead tries to launch a browser tab.

Re: Neat file/folder feature

Posted: 07 Apr 2022 14:42
by JLoftus
admin wrote: ↑07 Apr 2022 09:52 Next beta will have a little improvement here:

Code: Select all

    + Address Bar: Now the toggle "Open Files from Address Bar" is also available in the 
      context menu of files in the Address Bar (right-click the file icon). Before, it was 
      only available in the context menu of folders, where it makes less sense.
I've enabled this context menu item, but still when I paste a text file in the address bar the original behavior remains, where XY navigates to the containing folder and selects the file. Even after restarting XY, the menu item is still checked, but I am not seeing this new behavior. Is there something else that must be done?

Re: Neat file/folder feature

Posted: 07 Apr 2022 14:55
by Horst
JLoftus wrote: ↑07 Apr 2022 14:30
Horst wrote: ↑07 Apr 2022 09:17 Thats a normal function for all file managers I know. :)
Not Windows Explorer, for sure. Try pasting something like ""D:\Temp\SomePhoto.jpg" into the address bar of Windows Explorer. For me, not only does it not open the containing folder, but instead tries to launch a browser tab.
We are talking about file managers, Windows Explorer isn't one for me and many others. :)

Re: Neat file/folder feature

Posted: 07 Apr 2022 15:10
by admin
JLoftus wrote: ↑07 Apr 2022 14:42
admin wrote: ↑07 Apr 2022 09:52 Next beta will have a little improvement here:

Code: Select all

    + Address Bar: Now the toggle "Open Files from Address Bar" is also available in the 
      context menu of files in the Address Bar (right-click the file icon). Before, it was 
      only available in the context menu of folders, where it makes less sense.
I've enabled this context menu item, but still when I paste a text file in the address bar the original behavior remains, where XY navigates to the containing folder and selects the file. Even after restarting XY, the menu item is still checked, but I am not seeing this new behavior. Is there something else that must be done?
Hm, works well here. :? The behavior should be the same as if you pressed ENTER on that file in the file list.

Re: Neat file/folder feature

Posted: 07 Apr 2022 15:22
by JLoftus
Right, the full path is quote encased, and I've also tried pressing enter in the address bar, still the file is not opened. I've also saved settings, exited XY, and confirmed the context menu item is still checked after restarting XY, but I am not able to see this new behavior. I did try also removing the wrapping quotes, that did not change anything either.

Re: Neat file/folder feature

Posted: 07 Apr 2022 15:40
by admin
Nobody said something about quotes. It should look like this, then you press ENTER in the address bar:

Re: Neat file/folder feature

Posted: 07 Apr 2022 15:41
by admin
Alternatively go via the right-click menu:

Re: Neat file/folder feature

Posted: 07 Apr 2022 15:44
by JLoftus
If I select a file and choose "Copy as path" from the context menu, that string is quote wrapped. Regardless of quotes present or not, pasting a fully qualified filename in the address bar does not open the file, rather it only selects the file in the list. This is the same whether quotes are present or are not present.
2022-04-07_08-47-18.png

Re: Neat file/folder feature

Posted: 07 Apr 2022 17:14
by admin
1) Copy as Path is a shell function for which you need the slow shell context menu. Why not use XY's own function Ctrl+P = File | To Clipboard | Item Path/Name(s)?

2) "This is the same whether quotes are present or are not present."
Sure? Try again without the quotes.

Re: Neat file/folder feature

Posted: 07 Apr 2022 19:13
by JLoftus
Right, Windows Explorer includes quotes, which explains why the context menu does also. Would be a nice tweak if XY could handle it with the quotes. I tried earlier without the quotes but it did not work, now I tried again without the quotes and it did work, not sure why. Maybe a tweak could ignore the quotes?

Re: Neat file/folder feature

Posted: 07 Apr 2022 19:27
by admin
Already made it work. Next beta...

Re: Neat file/folder feature

Posted: 07 Apr 2022 19:46
by JLoftus
awesome, thanks Don!