1

Could the decisions in the Find/Replace dialog also be made with the keyboard bypassing all mouse actions? None of the buttons have a letter highlighted to make these decisions. To do this always with the mouse is quite annoying. Find-Replace dialog window

It looks like currently only the text-entry boxes for Find: and for Replace with: can be switched by keyboard action (Tab).

  • Would it be possible to manipulate the front end to make this possible?
  • By some modification of a *.tr-file?
  • Which one?
  • What type of change?

(This question relates to Version 12.3 on Linux-86 64 Bit, if that matters.)

Adalbert Hanßen
  • 2,808
  • 12
  • 26
  • On a mac, you can use Command+G and Shift+Command+G to move next and previous. Not sure if this is what you are looking for. – B flat Dec 19 '22 at 00:20
  • On my computer, neither Fn+G, Ctl+G, Super-G nor Alt-G are processed by the Find&Replace dialog. Probably one really has to tweak Mathematica's dialogs by proper frontend-actions. But I have no idea how to achieve it. – Adalbert Hanßen Dec 19 '22 at 11:09
  • How about these?
    FrontEndTokenExecute["FindExpression"]; FrontEndTokenExecute[FrontEndButtonNotebook[], "FindNextMatch"]; FrontEndTokenExecute[FrontEndButtonNotebook[], "FindPreviousMatch"];
    – B flat Dec 20 '22 at 12:19
  • B flat, when I execute your code, it just opens the Find&Replace dialog with the old history click-selectable dropdown list for Find and for Replace With. But it does not modify it or assigns keyboard shortcuts. Do you have more ideas in your direction? – Adalbert Hanßen Dec 21 '22 at 20:45
  • The first one seems to open the Find&Replace dialog. The second ad the third one seem be the functions related to Next or to Previous. How can I assign these two to keyboard shortcuts? – Adalbert Hanßen Dec 21 '22 at 20:54
  • There are lots of ways to do this. See here: https://mathematica.stackexchange.com/questions/16165/how-can-i-set-a-keyboard-shortcut-to-run-a-command?noredirect=1&lq=1 – B flat Dec 21 '22 at 22:14
  • I prefer the add menu commands (the first option). – B flat Dec 21 '22 at 22:15
  • Also, look up FindSettings in the Wolfram Cocumentation to dial in the rest of the settings. – B flat Dec 21 '22 at 22:52

0 Answers0