Sublime Forum

swapLines doesn't work

#1

Hello,

Should this work? Because it doesn’t:

	{ "keys": "ctrl+g"], "command": "swapLines down" }
]

I put this in my Key bindings user conf file.

I’m using build 2181

0 Likes

#2

What is the command for delete a line? ( CTRL-X isn’t good enough )
I’m looking at this as a reference:
sublimetext.com/docs/commands

0 Likes

#3

Commands can’t have spaces. The correct command is “swap_line_down.” So it should be { "keys": "ctrl+g"], "command": "swap_line_down" } ]

0 Likes

#4

You’re looking at the wrong docs…

0 Likes

#5

Thanks it works now. Are there new, detailed docs? Can you help me with the line delete command?
This didn’t help me:
sublimetext.com/docs/2/

0 Likes

#6

Use these docs: docs.sublimetext.info/

Also, to delete a line: use this: { "keys": "ctrl+shift+k"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} } Just change the keys to whatever.

0 Likes

#7

Thank you very much. I’ll dig myself into the docs.

0 Likes