Hey Christian,
If you want to see the key of a registered command, here are 2 useful mappings for you:
#Map command-space to trigger a registered command
map "<Cmd- >", Commands.run_registered_command
Once you have pressed this shortcut type to match the following:
Show key of registered command
When you run this, it will prompt you with another filter list where you type in the name of the command that you want to run.
Once you hit enter when it filters to the command you want, an alert dialog will pop up displaying the command details. For the example you gave the key for the command is :window_move_to_center
At that point I can use that key in a mapping as follows (I just did this and it works no problem):
map "<Cmd-8>", Commands[:window_move_to_center]
You can map directly to commands, without needing to be in a block.
Let me know if this helps.
God Bless You,
JP
On 11/11, Christian Genco wrote:
> This (from the docs) doesn't work:
>
> map "<Ctrl-Shift-Cmd-J>", lambda{Commands[:'window_-_move_to_center']}
>
> neither does:
>
> map "<Ctrl-Shift-Cmd-J>", lambda{Commands['Window - Move to Center']}
>
> It looks like somewhere in the beta the syntax was switched from things
> that look like this:
>
> Commands.run_registered_command
>
> to this:
>
> trigger_item_with(Commands.items, RunRegisteredCommand.new)
>
> and from the docs, it looks like there are two classes, ShiftWindow
> <
http://updates.keymando.com/releases/current/doc/Accessibility/ShiftWindow.html>
> and MoveWindow
> <
http://updates.keymando.com/releases/current/doc/Accessibility/MoveWindow.html>,
> that have likely taken over for this functionality, but this doesn't work
> either:
>
> ShiftWindow.new(:x => 10,:y => 10,:width => 20,:height => -20).run
>
> (returns "uninitialized constant ShiftWindow")
>
> ---
>
> Keymando, if it can still move windows around, scratches an itch I've had
> for quite a long time. I was on the brink of rolling my own solution until
> I stumbled on it. If given a little sprucing up on the documentation side,
> it'd easily be one of the most powerful tools on OS X.
>
> If Keymando is written in Rubymotion, I'd love to help bring primary
> development forward to Yosemite. Shoot me an email if there's anything
> (even documentation) I can do to help! It'd be much easier to update
> Keymando than it would be to do my own thing.
>
> --
> You received this message because you are subscribed to the Google Groups "Keymando" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
keymando+u...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.