Home Download Buy Blog Forum Support

Keymap - More than one command in a shortcut?

Keymap - More than one command in a shortcut?

Postby highend on Tue Sep 04, 2012 8:24 am

Hi,

I'm trying to switch to ST2 completely (from gVim & HippoEdit on Windows).

I'm used to create new lines in gVim with shift+enter when I'm in command mode.

Is it possible to create shortcut commands, that contain more than one command to achieve this behavior in ST2?

Something like this:
Code: Select all
{ "keys": ["shift+enter"], "command": "enter_insert_mode", "command": "insert", "args": {"characters": "\n"}, "command": "exit_insert_mode" }


Or is there any better way to do this?

Tia,
Highend
highend
 
Posts: 94
Joined: Fri Jan 20, 2012 2:47 pm

Re: Keymap - More than one command in a shortcut?

Postby senzo on Tue Sep 04, 2012 9:24 am

Try "ctrl+enter" or "ctrl+shift+enter" (if you are on Windows). This should do what you want.
senzo
 
Posts: 106
Joined: Tue May 24, 2011 9:17 am

Re: Keymap - More than one command in a shortcut?

Postby highend on Tue Sep 04, 2012 9:41 am

Thanks senzo,

both shortcuts (yes, I'm on Windows) are working fine.

Regards,
Highend
highend
 
Posts: 94
Joined: Fri Jan 20, 2012 2:47 pm


Return to Technical Support

Who is online

Users browsing this forum: nonolly, Yahoo [Bot] and 31 guests