Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: change keyboard mapping in Stata 12 for Mac
From
Donald Spady <[email protected]>
To
[email protected]
Subject
Re: st: change keyboard mapping in Stata 12 for Mac
Date
Mon, 6 Feb 2012 09:27:53 -0700
Phil
Thanks for the very detailed answer. I had done more or less what you suggested, and then did exactly what you suggested. But, unfortunately it doesn't work. I still get a menu asking me to pick a do-file.
Any other suggestions. I know that one option is to use an external editor, such as Text Wrangler, or Ultra Edit, but I think that is overkill for what should be a simple problem.
Don
On Feb6 2012, at 08:36, Phil Schumm wrote:
> On Feb 5, 2012, at 4:56 PM, Donald Spady wrote:
>> Is it possible to remap the keyboard in Stata12 for Mac. I use the do-file editor a fair bit and it is mapped a bit like Wordstar (for those of you old enough to remember Wordstar, it had amongst the best mapping for a keyboard around; NO dependence on any mouse, just your fingers).
>> I think the Mac editor probably takes the default from the key-mappings set up in my Apple preferences, but I don't know.
>>
>> THE PROBLEM IS that one key mapping does not work. If I press Ctrl-D, the menu pops up to allow me to pick a do-file. I do not want this. I want the cursor to move over to the right one character. Is it possible to configure Stata to do that, and to pick some other key-combination to open the menu that lists my do-files?
>
>
> You may change the mapping of the menu command File -> Do via System Preferences. Specifically:
>
> 1) System Preferences -> Keyboard -> Keyboard Shortcuts
> 2) Click on Application Shortcuts
> 3) Add a new shortcut for Stata:
> a) Application -> Other -> Select StataSE.app (or equivalent)
> b) Menu Title: "Do..."
> c) Finally, specify the keyboard shortcut you want
>
> Now, according to the standard Cocoa text system, ctrl-D is bound to forward delete rather than move right. If you want to change this, you simply add the following to ~/Library/KeyBindings/DefaultKeyBinding.dict (create the file if it doesn't already exist):
>
> {
> "^d" = "moveRight:";
> }
>
> This will change the default for all applications that use the Cocoa text system.
>
>
> -- Phil
>
>
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
>
Donald Spady
--
[email protected]
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/