[OS X TeX] TexShop parens enclosure

"M. Tamer Özsu" ozsut at mac.com
Mon Jun 13 09:59:15 EDT 2016


Thanks Herb. I just deleted the Keyboard file, and recreated it and entered the binding. As I noted earlier, I do get (-> (), but when I select a piece of text and then type (, I don't get (text), the text is replaced by (). Are you able to do the latter? It used to work, but stopped working.

==Tamer

> On Jun 13, 2016, at 9:43 AM, Herbert Schulz <herbs at wideopenwest.com> wrote:
> 
>> On Jun 13, 2016, at 8:22 AM, M. Tamer Özsu <ozsut at mac.com> wrote:
>> 
>> Sorry, I meant Library->TeXShop->Keyboard->autocompletion.plist.
>> 
>> I also just checked with the Key Bindings Editor and ( is bound to (#SEL##INS#). To be clear, when I type (, I do get () with the cursor inside the parens. What I don't get is when I select a word and then type (, it doesn't enclose the text in (....); it replaces the text with (). Is there a separate binding for that?
>> 
>> ==Tamer
> 
> Howdy,
> 
> I just created the binding (->(#SEL##INS#) in the Key Bindings Editor, saved it and tested it and it seems to work fine.
> 
> If you haven't added too many items to the list you can Quit TeXShop, remove the ~/Library/TeXShop/Keyboard folder and restart TeXShop. That should create a clean autocompletion.plist file. Then go into the Key Bindings Editor and add your personal bindings.
> 
> By the way, I don't have a key binding for [->[#SEL##INS#] or (->(#SEL##INS#) (I removed the one I created after testing it) because there seem to be too many times where I prefer a single ( or [ matched with something else in math mode. I do have {->{#SEL##INS#} because it's a general grouping delimiter and using it in math requires that it be ``escaped'' as \{ and Key Bindings is smart enough to NOT expand the keystroke if it's being ``escaped''.
> 
> Personal choice of course.
> 
> Good Luck,
> 
> Herb Schulz
> (herbs at wideopenwest dot com)
> 
> 
> 
> 
> 
> 
> 
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: https://www.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 MacOSX-TeX mailing list