Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Key bindings?
Date: Wed, 1 Jul 2009 20:48:01 +0000 (UTC)
Organization: TACT Computer Systems Ltd
Lines: 21
Message-ID: <h2gi21$lup$1@fred.mathworks.com>
References: <379e5650-0a7c-49a9-b7a0-0e21fd725e8f@i29g2000prf.googlegroups.com>  <73d497d1-873a-4e36-82f0-a978d2508471@i3g2000hsf.googlegroups.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1246481281 22489 172.30.248.35 (1 Jul 2009 20:48:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 1 Jul 2009 20:48:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 642467
Xref: news.mathworks.com comp.soft-sys.matlab:552190

Ishmael <stahl.karl@gmail.com> wrote...
> 
> Ah, perfect!  I missed that, even though it was right there in front
> of me - arrgh!  Control-F3 works (on Unix too).  Now if there were
> just a way to change the shortcut mappings...


For anyone interested, I have now uploaded to the File Exchange a utility called EditorMacro, which enables assigning keyboard macros in the Matlab editor: http://www.mathworks.com/matlabcentral/fileexchange/24615

A technical description of the solution underlying this utility can be found here: http://UndocumentedMatlab.com/blog/EditorMacro/

While this utility [still] does not override the default editor key bindings - it acts independently so both the default action and the user macro will execute. However, it does enable setting static and dynamic user-defined editor macros and to bind these macros to keyboard shortcuts.

Note that this utility, although tested for Matlab versions 6.0 (R12) through 7.7 (R2008b), relies on undocumented and unsupported Matlab functionality which may break in future Matlab releases.

Feedback is most welcome
enjoy :-)

Yair Altman
http://UndocumentedMatlab.com