Customize Context Menus
-
tealduck
- Posts: 10
- Joined: 11 Sep 2014 16:35
Customize Context Menus
I would like to know how we can customize the context menus that appear in the File List window. I was able to remove a number of items that were not wanted but a few list items remain that I wish to remove. Specifically:
* Open
* Pin to Start
* Open MobaXterm terminal here (thought this would have been removed with checking "Hide shell extensions from shell context menu"
It would also be nice to remove the let margin where icons would appear, anyone know how to do this?
I would also be interested in renaming "Open With..." to "Custom..." since a lot of the options in the list perform actions other than opening the actual file/folder.
Thanks for any and all help,
Keith
* Open
* Pin to Start
* Open MobaXterm terminal here (thought this would have been removed with checking "Hide shell extensions from shell context menu"
It would also be nice to remove the let margin where icons would appear, anyone know how to do this?
I would also be interested in renaming "Open With..." to "Custom..." since a lot of the options in the list perform actions other than opening the actual file/folder.
Thanks for any and all help,
Keith
-
bdeshi
- Posts: 4256
- Joined: 12 Mar 2014 17:27
- Location: Asteroid B-612
- Contact:
Re: Customize Context Menus
Not possible in XY.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
Stef123
Re: Customize Context Menus
tealduck wrote:I would also be interested in renaming "Open With..." to "Custom..." since a lot of the options in the list perform actions other than opening the actual file/folder.
I also "abuse" this feature to get a fake custom context menu on the second click. A name change would much better reflect the capabilities of OpenWith - especially with its new separator features.
-
Nighted
- Posts: 463
- Joined: 21 Jan 2007 01:58
- Location: Gitmo Nation North, Win 7/10/Linux/(x64)
Re: Customize Context Menus
+1Stef123 wrote:+1
I also "abuse" this feature to get a fake custom context menu on the second click. A name change would much better reflect the capabilities of OpenWith - especially with its new separator features.
I want XY to serve soft ice cream. Please Don, make XY serve soft ice cream.
-
Stef123
Re: Customize Context Menus
Maybe as an ini-tweak "OpenWithCaption=" that accepts a custom string
-
bdeshi
- Posts: 4256
- Joined: 12 Mar 2014 17:27
- Location: Asteroid B-612
- Contact:
Re: Customize Context Menus
Or customize the English language file.
[Help > Select Local Language File... , pick downloaded lngfile]
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 ]
-
Stef123
Re: Customize Context Menus
A bit more work than the sticky ini-alternative, considering that all updates require replacing the language file again.
Let me ask you this, Sammay: Is it safe to run an unattended Replace All on all "open with" occurences?
-
Stef123
Re: Customize Context Menus
I wonder if an outdated English language file can be responsible for interface glitches that are very hard to track down.
Such as missing color swatches:
http://www.xyplorer.com/xyfc/viewtopic. ... it=missing
The problem above seems to disappear when I replace the custom language with a newer version. And that raises the question how to move my custom entries over to the newer language file?
Such as missing color swatches:
http://www.xyplorer.com/xyfc/viewtopic. ... it=missing
The problem above seems to disappear when I replace the custom language with a newer version. And that raises the question how to move my custom entries over to the newer language file?
-
bdeshi
- Posts: 4256
- Joined: 12 Mar 2014 17:27
- Location: Asteroid B-612
- Contact:
Re: Customize Context Menus
[I had made a reply to your previous post, but must've gotten ~disconnected. sorry!]
Well, when you reported the missing color swatches, I wasn't using any custom language file.
And back to propagating those changes.
1. No you can't just blindly replace all "open with" with "<you_custom_caption>", because the source strings come as &open with, open &with, and even as part of a phrase in another context (such as "Open with arguments")
2. The language file is actually a ini file in disguise. So you can just make a script with a barrage of mainly SC setkeys to move those replacements to any other English lng file version (because the string names/ini key names are static)
As an XYScript exercise for you, (
) her are the keynames you need to replace.
(The header keys are optional, they just help identify the lng file as custom, as opposed to a stock English.)A [core] key is structured like this:
by the way, instead of plain blind-but-now-with-a-replacing-stick replacement, you might build the translated string by regexreplacing "&?open &?with" in the original string.
Well, when you reported the missing color swatches, I wasn't using any custom language file.
And back to propagating those changes.
1. No you can't just blindly replace all "open with" with "<you_custom_caption>", because the source strings come as &open with, open &with, and even as part of a phrase in another context (such as "Open with arguments")
2. The language file is actually a ini file in disguise. So you can just make a script with a barrage of mainly SC setkeys to move those replacements to any other English lng file version (because the string names/ini key names are static)
As an XYScript exercise for you, (
Code: Select all
[header]
Language=English [Open With => <you_custom_caption>]
Comments=Default language file. "Open With" caption replaced with "<you_custom_caption>"Code: Select all
[core]
co.0018=
tb.0019=
01.0386=
01.0612=
ms.0064=
ms.1450=
ms.1451=
ms.1827=
ms.2559=
Code: Select all
keyname=[flags:]state|original string/template|--|translated string/template
;state: 00=not translated, 01=translatedIcon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
Stef123
Re: Customize Context Menus
Thank you Sammay,
you're right, the language file is not the culprit - the color label glitches are back. Drives me nuts, it's random and very persistent, makes me stop using labels altogether.
But nevertheless, I think it's a good idea to upgrade, unless - maybe - XY also updates custom language files, the way it does update custom ini files? Newer menu items don't seem to be missing, even though I never added them manually.
Thanks. Very much appreciated.
Still hoping for the OT suggestion of enabling the rename via ini, though. This seems the smoothest way.
Actually, I am not just asking on behalf of the open-with caption. A long time ago, I changed other stuff, such as info-texts, to have my own customized quick-help texts (that was before the ahk-context help came out).
you're right, the language file is not the culprit - the color label glitches are back. Drives me nuts, it's random and very persistent, makes me stop using labels altogether.
But nevertheless, I think it's a good idea to upgrade, unless - maybe - XY also updates custom language files, the way it does update custom ini files? Newer menu items don't seem to be missing, even though I never added them manually.
SammaySarkar wrote:As an XYScript exercise for you, () her are the keynames you need to replace.
...
by the way, instead of plain blind-but-now-with-a-replacing-stick replacement, you might build the translated string by regexreplacing "&?open &?with" in the original string.
Still hoping for the OT suggestion of enabling the rename via ini, though. This seems the smoothest way.
Actually, I am not just asking on behalf of the open-with caption. A long time ago, I changed other stuff, such as info-texts, to have my own customized quick-help texts (that was before the ahk-context help came out).
-
bdeshi
- Posts: 4256
- Joined: 12 Mar 2014 17:27
- Location: Asteroid B-612
- Contact:
Re: Customize Context Menus
you don't see anything missing because you're using the English language. Any holes in the custom language is filled by XYplorer's default "string bank", which is also in English.Stef123 wrote:I think it's a good idea to upgrade, unless - maybe - XY also updates custom language files, the way it does update custom ini files? Newer menu items don't seem to be missing, even though I never added them manually.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
Stef123
Re: Customize Context Menus
Good to know. In that case I just keep my custom language file.
The only drawback is probably that I won't be able to rename newer items since they're not in the file to start with. But other than that ... I don't suppose startup or performance suffers from this auto-fill-up?
The only drawback is probably that I won't be able to rename newer items since they're not in the file to start with. But other than that ... I don't suppose startup or performance suffers from this auto-fill-up?
-
bdeshi
- Posts: 4256
- Joined: 12 Mar 2014 17:27
- Location: Asteroid B-612
- Contact:
Re: Customize Context Menus
Help > Interface Translation Tool > File > Upgrade Language file (download). This should add newer entries to your lng file.The only drawback is probably that I won't be able to rename newer items since they're not in the file to start with.
Then View > not yet translated. This should list those newer items, so you can edit any new instances of Open With.
btw, I made a small update to the [core] key template.
None practically.I don't suppose startup or performance suffers from this auto-fill-up?
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
Stef123
Re: Customize Context Menus
Thank you Sammay,
also for the core-key template. With all the customizing I almost lost sight of the real purpose of this thing, to cater to translators. And I definetly need to streamline my stuff. Too many language file versions, ATM I am comparing them with WinMerge.
also for the core-key template. With all the customizing I almost lost sight of the real purpose of this thing, to cater to translators. And I definetly need to streamline my stuff. Too many language file versions, ATM I am comparing them with WinMerge.
XYplorer Beta Club