[OS X TeX] TeXShop key bindings

Herbert Schulz herbs at wideopenwest.com
Tue Feb 23 16:11:03 EST 2021



> On Feb 23, 2021, at 2:59 PM, Murray Eisenberg <murrayeisenberg at gmail.com> wrote:
> 
> TeXShop 4.59 Changes.pdf discusses using the following file to access new math mode key bindings:
> 
> /* ~/Library/KeyBindings/DefaultKeyBinding.dict */
>      {
>          /* Sample Math Mode bindings */
>          "~f" = "moveForwardTo$:";
>          "~b" = "moveBackwardTo$:";
>          "^f" = "moveForwardTo$$:";
>          "^b" = "moveBackwardTo$$:";
> }
> 
> But I already have a ~/Library/KeyBindings/DefaultKeyBinding.dict file, as shown in its entirety below.
> 
> How can the preceding code from the TeXShop docs be changed, manually or automatically, in the proper form to add to the XML code below?
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
> <plist version="1.0">
> <dict>
> 	<key>^U</key>
> 	<string>uppercaseWord:</string>
> 	<key>^u</key>
> 	<string>capitalizeWord:</string>
> 	<key>^x</key>
> 	<dict>
> 		<key> </key>
> 		<string>setMark:</string>
> 		<key>^m</key>
> 		<string>selectToMark:</string>
> 		<key>^x</key>
> 		<array>
> 			<string>swapWithMark:</string>
> 			<string>centerSelectionInVisibleArea:</string>
> 		</array>
> 	</dict>
> 	<key>~^u</key>
> 	<string>lowercaseWord:</string>
> 	<key>~v</key>
> 	<string>pageUp:</string>
> </dict>
> </plist>
> ---
> Murray Eisenberg			murrayeisenberg at gmail.com
> 503 King Farm Blvd #101	
> Rockville, MD 20850-6667	Mobile (413)-427-5334

Howdy,

E.g., for

"~f" = "moveForwardTo$:";

use

<key>~f/key>
<string>moveForwardTo$:</string>

and place the lines just before the 

</dict>

line. To make it pretty indent the lines to line up with the lines before the </dict>.

BUT... I don't recommend using those key bindings since some of them are already bound to other things by default. Note ^=Ctl and ~=Opt.

Good Luck,

Herb Schulz
herbs at wideopenwest.com




More information about the MacOSX-TeX mailing list