I'd enabled keyboard shortcut display in menus (KSinMenu ini key).
Wish the same could be done with cmdIDs.
And a trailing wish: possible to attach command ID lookalikes to config options? so that ::#<settingid>; opens config and yellow-hilites associated setting. Or maybe toggle togglable settings.
Confusion with command IDs may be avoided as: #-11=setting ID | #11=cmd ID
I think it can be rather easy. Some kind of association is already implemented as the "jump" button.
Command IDs in menu and for settings
-
bdeshi
- Posts: 4256
- Joined: 12 Mar 2014 17:27
- Location: Asteroid B-612
- Contact:
Command IDs in menu and for settings
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
admin
- Site Admin
- Posts: 66619
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Command IDs in menu and for settings
a)only as a tweak Hey, #703 was free so I just added it to the menu. Nice and useful.
b) what is <settingid>?
b) what is <settingid>?
FAQ | XY News RSS | XY X
-
bdeshi
- Posts: 4256
- Joined: 12 Mar 2014 17:27
- Location: Asteroid B-612
- Contact:
Re: Command IDs in menu and for settings
a) thanks! b) #<settingid> is just a template where <settingid> is an integer.
[edit] explanation: say you associate #-1 (for example) to the first config option: Config->Tree and List -> Show desktop folders.
Now, ::#-1; will open config window and highlight that option, the same that is done with "jump to setting".
[edit] explanation: say you associate #-1 (for example) to the first config option: Config->Tree and List -> Show desktop folders.
Now, ::#-1; will open config window and highlight that option, the same that is done with "jump to setting".
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
Re: Command IDs in menu and for settings
I like the idea of being able to do a Jump to from a script (though I'm not sure it's ultimately that useful.
).
However, I dislike that syntax.
I was going to propose something like:Where dialog could allow this to be used for Configuration, CKS, Toolbar-Available, Toolbar-Current, etc.
Query is used to pre-populate the filter.
Flags:
1 = If query has only one match, automatically do default action. (This really only makes sense jumping within Configuration)
Then if there were IDs for specific items within those dialogs they could be used instead of the query string by using '#<id>' or something similar.
The roadblock I hit was dealing with translations - since most scripts would probably use English queries and that may not translate well.
In any event I like the idea, but I think it should be a named command not a new take on #<cid>;.
However, I dislike that syntax.
I was going to propose something like:
Code: Select all
JumpTo dialog, query, [flags=0];Query is used to pre-populate the filter.
Flags:
1 = If query has only one match, automatically do default action. (This really only makes sense jumping within Configuration)
Then if there were IDs for specific items within those dialogs they could be used instead of the query string by using '#<id>' or something similar.
The roadblock I hit was dealing with translations - since most scripts would probably use English queries and that may not translate well.
In any event I like the idea, but I think it should be a named command not a new take on #<cid>;.
-
bdeshi
- Posts: 4256
- Joined: 12 Mar 2014 17:27
- Location: Asteroid B-612
- Contact:
Re: Command IDs in menu and for settings
Oh, I hope I'd clearly expressed myself. To be clear, I wished for this:SammaySarkar wrote:I'd enabled keyboard shortcut display in menus (KSinMenu ini key).
Wish the same could be done with cmdIDs.admin wrote:a)only as a tweakHey, #703 was free so I just added it to the menu. Nice and useful.
To see the attached files, you need to log into the forum.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
admin
- Site Admin
- Posts: 66619
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Command IDs in menu and for settings
Sure, man.SammaySarkar wrote:Oh, I hope I'd clearly expressed myself. To be clear, I wished for this:SammaySarkar wrote:I'd enabled keyboard shortcut display in menus (KSinMenu ini key).
Wish the same could be done with cmdIDs.admin wrote:a)only as a tweakHey, #703 was free so I just added it to the menu. Nice and useful.
FAQ | XY News RSS | XY X
-
admin
- Site Admin
- Posts: 66619
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Command IDs in menu and for settings
But the b) wish... no, I don't see how this could work. And JumpTo ... no, and I don't really see the use in it.
FAQ | XY News RSS | XY X
-
admin
- Site Admin
- Posts: 66619
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Command IDs in menu and for settings
PS: Just after uploading I saw that it does not work well with changing the interface language yet. Fix tomorrow...
FAQ | XY News RSS | XY X
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
Re: Command IDs in menu and for settings
It breaks separators in the User menus, but it's technically correct since that's a hack that wastes a CID.admin wrote:PS: Just after uploading I saw that it does not work well with changing the interface language yet. Fix tomorrow...
It's also ugly, but I don't think there's much that can be done to fix that without creating custom menu controls.
EDIT: It's still useful - just not something I'd want to leave enabled. /edit
Not sure there's any reason to show the option when the entire Scripting feature is disabled either (presumably that means it shows up in the Free edition).
-
admin
- Site Admin
- Posts: 66619
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
XYplorer Beta Club