On 15 February 2010 15:25, Sean DeNigris wrote:
>
>>  does anybody know of any full-screen programs that do not disable
>> Spotlight?
>
> I guess this is standard Mac behavior because I just checked iTunes
> and it does the same thing.
>
> This being the case, I don't think that the change should be
> implemented in MacVim directly, but would be a helpful mapping.  The
> only problem is that mapping <D-Space> seems to have no effect.   Is
> this an issue with MacVim, or the OS?

I would say the OS: it can be extremely hard to get access to keys
that the OS reserves for other purposes.  Trying to hijack Cmd+Space
will most likely be very difficult, not to mention the fact that it
may be reassigned in the System Preferences and how one should deal
with this I do not know.  I'm not saying that it is definitely
impossible, but it is certainly not something I'd like to try.

If you can figure out a way to bring up the Spotlight search box
programmatically (perhaps by calling some Apple Script with the
"osascript" command), you should be able to set up another mapping
that minimizes full-screen and brings up Spotlight and then use an
autocommand (see ":h focusgained") to check whether to re-enable
full-screen when MacVim gets the focus again.  But you would have to
use another mapping than Cmd+Space (perhaps Alt+Space, which is close
enough).  I leave it as an exercise to figure out the details on how
to accomplish this (sorry...if I had the answer I would give it to
you, but I'm not sure how this would be done). :-)

Björn

-- 
You received this message from the "vim_mac" maillist.
For more information, visit http://www.vim.org/maillist.php

Reply via email to