Message Boards Message Boards

4
|
24091 Views
|
11 Replies
|
11 Total Likes
View groups...
Share
Share this post:

How can I modify the shortcut CTRL + = to enter an Entity?

Posted 11 years ago

Hello,

this question is related to this one here. I have a German keyboard and there is no "=" key, so I can't use the shortcut "CTRL" + "=" to enter an Entity[]. How can I replace this shortcut with e.g. "CTRL" + "0", which is the closest to "CTRL" + "=", as "=" equals "SHIFT" + "0"? Is there any option in the preferences?

Thanks!

(it's related to Mathematica 10)

11 Replies

Yes, many thanks Ilian for your answer! I used this approach many times. To my surprise, in Mathematica V14.1 there are quite a lot different folders – and many other "MenuSetup.tr" files. For my purposes, with Windows 11 environment, I had to find the right one first. The upper directory tree (here: C:\Program Files\Wolfram Research\Wolfram\14.1\SystemFiles\Components\Mathematica\FrontEnd\TextResources) divides into at least three almost identical sub-directories: "Mac", "Windows" and "X" and a few more.

In my case, the actual "MenuSetup.tr" file is contained in

SystemOpen[
 FileNameJoin[{$InstallationDirectory, "SystemFiles", "Components", 
   "Mathematica", "FrontEnd", "TextResources", 
   Switch[$OperatingSystem, "Windows", "Windows", "MacOSX", 
    "Macintosh", "Unix", "X"]}]]

But then everything works fine. I use "F8" as Andreas suggested.

POSTED BY: Armin Vollmer
Posted 2 months ago

Thank you Armin, I was getting annoyed because my modifications to MenuSetup.tr would not work as they did in 14.0. Also it seems that the file at this new location cannot be copied to \ $UserBaseDirectory anymore. It can be copied of course, but Mathematica will not use it, it will continue to use the one in \$InstallationDirectory.

I am not sure why the file at /SystemFiles/FrontEnd/TextResources/...OS.../MenuSetup.tr is still there, it does not seem to have any purpose now.

POSTED BY: Stefan Popien

The short cut has been changed in the meanwhile to ctrl + * I have a German keyboard and Version 13.2 running.

I guess nothing beats a keyboard with a US layout for programming. :)

I tried plenty of AutoHotKey scripts to enter Ctrl+= — but to no avail. Maybe someone has a nice AutoHotKey snippet for me that will do the trick?

I have the same problem with Mathematica v.12.0 running on Windows 10. The only solution I found is to **Insert** -> **Insert Free-form Input**

The Portuguese keyboard has the same layout problem (CTRL + SHIFT + 0).

I can confirm that this key combination doesn't work on Mathematica, and that my windows is not using the CTRL + SHIFT combination to switch input languages or keyboard (it doesn't seem to be using it for anything).

With the above in consideration, and considering that:

  • 2 versions later the inline natural input is more and more of relevance on the entity framework,
  • the web interface seems to suffer from the same problem...

...I believe that a better solution should be implemented as alternative to asking (many) international users to reconfigure the menu configuration file just after first install, update, etc... (don't even know how to do that on the cloud interface..., and the documentation doesn't seem to mention inline free-form input on the shortcuts page)

POSTED BY: Pedro Fonseca

Thanks a lot to Andreas for putting forward this problem and to Ilian for solving it. I had the same problem with a Norwegian keyboard and accepted it didn't work in the previous versions. But now it has become a more important feature in version 10 and short cuts for free-form input should be available on all key boards. The quick fix is registered and appreciated, but a real fix is needed next time.

POSTED BY: Arne Eide

Hi Ilian, thanks for hint! I have found the file and modified it, but CTRL + 0 is already used:

MenuItem["End &Inline Cell", "MoveNextCell", MenuKey["0", Modifiers->{"Control"}]]

So I modified it using "F8" instead. It works as expected. Thanks!

MenuItem["Inline Free-form Input",
       KernelExecute[AlphaIntegration`LinguisticAssistant[InputNotebook[]]], 
       MenuKey["F8", Modifiers->{}], MenuEvaluator -> "Local"]

insert menu

The shortcut can be changed by modifying the file

 FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", "TextResources", 
      Switch[$OperatingSystem, "Windows", "Windows", "MacOSX", "Macintosh", "Unix", "X"], "MenuSetup.tr"}]

Specifically, look for

MenuItem["Inline Free-form Input",
         KernelExecute[AlphaIntegration`LinguisticAssistant[InputNotebook[]]], 
         MenuKey["=", Modifiers->{"Control"}], MenuEvaluator -> "Local"]
POSTED BY: Ilian Gachevski

CTRL-SHIFT-0 should work. On Windows, CTRL-SHIFT is sometimes used to switch input languages or keyboard layouts, so this may need to be changed in the OS preferences.

POSTED BY: Ilian Gachevski

Hi, CTRL + SHIFT + 0 doesn't work; this was my first try. Any other ideas?

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract