Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you do the "therefore" (∴) symbol on a Mac or in Textmate?

Is there a way to write the ∴ therefore symbol with keyboard shortcuts in Textmate or just on a mac?

like image 383
Lance Avatar asked Sep 10 '10 13:09

Lance


2 Answers

From System Preferences, turn on the "Show Keyboard & Character Viewer in menu bar" setting.

Then, the "Character Viewer" menu will pop up a tool that will let you search for any unicode character (by name) and insert it ∴ you're all set.

like image 118
David Gelhar Avatar answered Nov 04 '22 16:11

David Gelhar


If you want to do this often, you can create a keybindings file in your Library to map it to a key combination.

In ~/Library create a directory named KeyBindings. Create a file named DefaultKeyBinding.dict inside the directory. You can add key bindings in this format:

{
    "x" = (insertText:, "\U23CF");
    "y" = (insertText:, "hi"); /* warning: this will change 'y' to 'hi'! */
}

The LHS is the key combination you'll hit to enter the character. You can use the following characters to indicate command keys:

@ - Command

~ - Option

^ - Control

You'll need to look up the unicode for your character (in this case, ∴ is \U2234). So to type this character whenever you typed Control-M, you'd use

"^m" = (insertText:, "\U2234");

You can find more information here: http://www.hcs.harvard.edu/~jrus/site/cocoa-text.html

like image 22
Kevin Griffin Avatar answered Nov 04 '22 16:11

Kevin Griffin