Hi Don,
AB has focus.
Command(s) File->To Clipboard->Item Path(s),Names(s),Path/Names(s) work in AB.
But
Its corresponding Keyboard Shortcut does not work in AB.
(Both command and KS work in list and tree view.)
Bug: File-menu-command in AB works, but KS does not
Forum rules
You might want to read this if you're looking for priority service
Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).
Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.
How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
You might want to read this if you're looking for priority service
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
-
autocart
- Posts: 1422
- Joined: 26 Sep 2013 15:22
Bug: File-menu-command in AB works, but KS does not
[AHK] redirecting Windows Explorer to XY, [XYS] Mini Tree with open tabs (cur loc expanded, tab folders highlighted), [AHK] customInlineRenameKeys, [AHK] clipboardHelper_and_XYEscToList
-
admin
- Site Admin
- Posts: 67271
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Bug: File-menu-command in AB works, but KS does not
Not a bug but by design. KSs have a specific scope, menu commands have no scope (or global scope).
This KS only works in Tree and List.
This KS only works in Tree and List.
To see the attached files, you need to log into the forum.
FAQ | XY News RSS | XY X
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
Re: Bug: File-menu-command in AB works, but KS does not
You can work around this decision by using a User Command and a run script like so:which is just a heavily shortened version of:
This will focus the tree unless the list is already focused and then call File | To Clipboard | Item Path/Name(s).
Of course you might prefer it to default to the list in more cases, which you are free to do.
Code: Select all
Focus Get('FocusedControl') != 'L' ? 'T' : 'L';#101;Code: Select all
if (Get('FocusedControl') != 'L') {
Focus 'T';
}
#101; //File | To Clipboard | Item Path/Name(s)Of course you might prefer it to default to the list in more cases, which you are free to do.
-
autocart
- Posts: 1422
- Joined: 26 Sep 2013 15:22
Re: Bug: File-menu-command in AB works, but KS does not
Ohhhh, actually a cool feature, wow, thank you very much, Don. 8-)admin wrote:Not a bug but by design. KSs have a specific scope, menu commands have no scope (or global scope).
Thx also to u Qwerty.
[AHK] redirecting Windows Explorer to XY, [XYS] Mini Tree with open tabs (cur loc expanded, tab folders highlighted), [AHK] customInlineRenameKeys, [AHK] clipboardHelper_and_XYEscToList
-
autocart
- Posts: 1422
- Joined: 26 Sep 2013 15:22
Re: Bug: File-menu-command in AB works, but KS does not
Dang, I should really be more patient and look more before I write.
I thought that the scope could be customized, but ... obvioulsy it can not? This makes this feature only half cool anymore, of course.
And it makes Qwerty's comment more important. Anyway, thx for the info.
I thought that the scope could be customized, but ... obvioulsy it can not? This makes this feature only half cool anymore, of course.
And it makes Qwerty's comment more important. Anyway, thx for the info.
[AHK] redirecting Windows Explorer to XY, [XYS] Mini Tree with open tabs (cur loc expanded, tab folders highlighted), [AHK] customInlineRenameKeys, [AHK] clipboardHelper_and_XYEscToList
-
admin
- Site Admin
- Posts: 67271
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Bug: File-menu-command in AB works, but KS does not
What would you expect to happen if you pressed Ctrl+P while the focus is in AB?
FAQ | XY News RSS | XY X
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
Re: Bug: File-menu-command in AB works, but KS does not
The confusion comes from the fact that the menu command still works when the AB has focus.admin wrote:What would you expect to happen if you pressed Ctrl+P while the focus is in AB?
-
admin
- Site Admin
- Posts: 67271
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Bug: File-menu-command in AB works, but KS does not
That's why I'm asking. I think we all are conditioned to expect that KSs work on what's currently focused (and menu commands less so). I think most people would expect that Ctrl+P pressed in the AB would copy what is currently shown in the AB. But Ctrl+P does not do that. It copies the current tree folder path in that case.TheQwerty wrote:The confusion comes from the fact that the menu command still works when the AB has focus.admin wrote:What would you expect to happen if you pressed Ctrl+P while the focus is in AB?
So, everything is fine as it is I think. The least possible confusion.
FAQ | XY News RSS | XY X
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
Re: Bug: File-menu-command in AB works, but KS does not
EDIT: Just to share my expectations - not encourage change. /edit
My expectations are unique in that I really don't use the tree* so it is extremely rare for me to ever expect a command to operate on the tree.
I consider the tree to be showing folders/drives and the list to show items, so "Items" in a command typically leads me to expect it to operate on the list. Familiarity with XY has trained me to not see those as quite as absolutely. Thus, my expectation is that it would always copy information from the list regardless of menu item or keyboard shortcut.
Further, when I think about how I want to get the current path, I instinctively think to copy it from the address bar (Ctrl+L > Ctrl+C, here) rather than from the tree or via a menu command.
Granted, through the years here I've learned that my lack of enthusiasm for the tree puts me in the minority and the rare times I run into scope issues with this or similar commands are just slight speed bumps rather than closed roads.
(The argument could also be made that this command's scope should include the Catalog to copy item locations, but meh.)
*I've grown to use it more thanks to Mini Tree, but for the most part that just means I no longer keep it hidden.
My expectations are unique in that I really don't use the tree* so it is extremely rare for me to ever expect a command to operate on the tree.
I consider the tree to be showing folders/drives and the list to show items, so "Items" in a command typically leads me to expect it to operate on the list. Familiarity with XY has trained me to not see those as quite as absolutely. Thus, my expectation is that it would always copy information from the list regardless of menu item or keyboard shortcut.
Further, when I think about how I want to get the current path, I instinctively think to copy it from the address bar (Ctrl+L > Ctrl+C, here) rather than from the tree or via a menu command.
Granted, through the years here I've learned that my lack of enthusiasm for the tree puts me in the minority and the rare times I run into scope issues with this or similar commands are just slight speed bumps rather than closed roads.
(The argument could also be made that this command's scope should include the Catalog to copy item locations, but meh.)
*I've grown to use it more thanks to Mini Tree, but for the most part that just means I no longer keep it hidden.
-
admin
- Site Admin
- Posts: 67271
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Bug: File-menu-command in AB works, but KS does not
Thanks for sharing. 
I think the preference for copying the tree path (when neither tree nor list have focus) is historical. The P in Ctrl+P also hints to it.
Catalog: well, "meh", too.
I think the preference for copying the tree path (when neither tree nor list have focus) is historical. The P in Ctrl+P also hints to it.
Catalog: well, "meh", too.
FAQ | XY News RSS | XY X
XYplorer Beta Club