Page 1 of 1

Bug: File-menu-command in AB works, but KS does not

Posted: 31 Mar 2016 08:05
by autocart
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.)

Re: Bug: File-menu-command in AB works, but KS does not

Posted: 05 Apr 2016 13:57
by admin
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.

Re: Bug: File-menu-command in AB works, but KS does not

Posted: 05 Apr 2016 14:16
by TheQwerty
You can work around this decision by using a User Command and a run script like so:

Code: Select all

Focus Get('FocusedControl') != 'L' ? 'T' : 'L';#101;
which is just a heavily shortened version of:

Code: Select all

if (Get('FocusedControl') != 'L') {
  Focus 'T';
}
#101; //File | To Clipboard | Item Path/Name(s)
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. ;)

Re: Bug: File-menu-command in AB works, but KS does not

Posted: 05 Apr 2016 14:19
by autocart
admin wrote:Not a bug but by design. KSs have a specific scope, menu commands have no scope (or global scope).
Ohhhh, actually a cool feature, wow, thank you very much, Don. 8-)

Thx also to u Qwerty.

Re: Bug: File-menu-command in AB works, but KS does not

Posted: 05 Apr 2016 14:27
by autocart
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.

Re: Bug: File-menu-command in AB works, but KS does not

Posted: 05 Apr 2016 14:46
by admin
What would you expect to happen if you pressed Ctrl+P while the focus is in AB?

Re: Bug: File-menu-command in AB works, but KS does not

Posted: 05 Apr 2016 14:58
by TheQwerty
admin wrote:What would you expect to happen if you pressed Ctrl+P while the focus is in AB?
The confusion comes from the fact that the menu command still works when the AB has focus.

Re: Bug: File-menu-command in AB works, but KS does not

Posted: 05 Apr 2016 15:29
by admin
TheQwerty wrote:
admin wrote:What would you expect to happen if you pressed Ctrl+P while the focus is in AB?
The confusion comes from the fact that the menu command still works when the AB has focus.
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.

So, everything is fine as it is I think. The least possible confusion.

Re: Bug: File-menu-command in AB works, but KS does not

Posted: 05 Apr 2016 15:55
by TheQwerty
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. ;)

Re: Bug: File-menu-command in AB works, but KS does not

Posted: 05 Apr 2016 17:23
by admin
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.