[OS X TeX] TeXShop key bindings
Richard Koch
koch at uoregon.edu
Tue Feb 23 22:15:35 CET 2021
Murray,
The really difficult matter is figuring out what keystroke you want to use for the new command, and I take no stand on that. Suppose you just want to implement one more command, namely "go forward to just past the next $". Then just add one more key-string
pair
<key> your choice here </key>
<string>moveForwardTo$:</string>
Dick Koch
> On Feb 23, 2021, at 12: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
>
>
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
> List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
> https://email.esm.psu.edu/pipermail/macosx-tex/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex
----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex
More information about the macostex-archives
mailing list.