Home Download Buy Blog Forum Support

swapLines doesn't work

swapLines doesn't work

Postby kow on Sun Apr 01, 2012 3:30 pm

Hello,

Should this work? Because it doesn't:
Code: Select all
[
   { "keys": ["ctrl+g"], "command": "swapLines down" }
]

I put this in my Key bindings user conf file.

I'm using build 2181
kow
 
Posts: 4
Joined: Sun Apr 01, 2012 3:28 pm

Re: swapLines doesn't work

Postby kow on Sun Apr 01, 2012 3:35 pm

What is the command for delete a line? ( CTRL-X isn't good enough )
I'm looking at this as a reference:
http://www.sublimetext.com/docs/commands
kow
 
Posts: 4
Joined: Sun Apr 01, 2012 3:28 pm

Re: swapLines doesn't work

Postby C0D312 on Sun Apr 01, 2012 3:35 pm

Commands can't have spaces. The correct command is "swap_line_down." So it should be
Code: Select all
[
   { "keys": ["ctrl+g"], "command": "swap_line_down" }
]
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: swapLines doesn't work

Postby C0D312 on Sun Apr 01, 2012 3:54 pm

You're looking at the wrong docs...
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: swapLines doesn't work

Postby kow on Sun Apr 01, 2012 4:06 pm

Thanks it works now. Are there new, detailed docs? Can you help me with the line delete command?
This didn't help me:
http://www.sublimetext.com/docs/2/
kow
 
Posts: 4
Joined: Sun Apr 01, 2012 3:28 pm

Re: swapLines doesn't work

Postby C0D312 on Sun Apr 01, 2012 4:18 pm

Use these docs: http://docs.sublimetext.info/

Also, to delete a line: use this:
Code: Select all
{ "keys": ["ctrl+shift+k"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} }
Just change the keys to whatever.
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: swapLines doesn't work

Postby kow on Sun Apr 01, 2012 4:22 pm

Thank you very much. I'll dig myself into the docs.
kow
 
Posts: 4
Joined: Sun Apr 01, 2012 3:28 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot], Soulsbane and 55 guests