Group Abstract Group Abstract

Message Boards Message Boards

4
|
28.7K 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
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 11 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

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**

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