I just noticed that if I hold down a key in mac when typing, that I get some custom bar that let's me choose between accents.

I'm a mathematician, and I like writing unicode math symbols directly (like α). Is there a way that I can customise the toolbar that pops-up, so that I can put my own mathematical unicode symbols in this toolbar ?


1 Answer 1

  1. Navigate to /System/Library/Input Methods/PressAndHold.app/Contents/Resources/.

  2. Backup the Keyboard-en.plist file.

  3. Append the following to the Keyboard-en.plist file (before the closing </dict></plist>), changing the keycaps to be your desired space-delimited list of characters.

        <string>× ÷ √ π ∴ ∵ ≈ ≠ ∞</string>
        <string>× ÷ √ π ∴ ∵ ≈ ≠ ∞</string>

Feel free to change the Roman-Accent-t to any character you wish, providing it does not already have Press & Hold keys assigned. Also see shortening the Press & Hold time if you're using it regularly.

  • I'd add, that this file could be overwritten after OS update. So make also a copy of changed plist file. Sep 8, 2014 at 21:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .