Home Download Buy Blog Forum Support

Move command

Move command

Postby adirondackmoose on Tue Aug 28, 2012 2:07 pm

The documentation for the move command says that the cursor can be moved for a number of lines, pages or stops (what ever those are). I currently have a key binding to the ctrl+down and ctrl+up keys to advance or back up 15 lines using the scroll command

{ "keys": ["ctrl+up"], "command": "scroll_lines", "args": {"amount": 15} },
{ "keys": ["ctrl+down"], "command": "scroll_lines", "args": {"amount": -15.0} },

I'd rather move the cursor up or down 15 lines with the same key binding, but I haven't been able to use the "move by lines" with any success. Does anyone have and example on how to correctly use the "move by" command with lines or pages. It works with the ctrl+right/left and moving the cursor by wordboundaries, but I can not get the move by lines to work. Thanks for any suggestions.
adirondackmoose
 
Posts: 2
Joined: Fri Feb 03, 2012 8:21 pm

Re: Move command

Postby FichteFoll on Tue Aug 28, 2012 3:30 pm

According to http://sublime-text-unofficial-document ... s.html#id1 there is no parameter to define the amount of XXX (i.e. lines) being moved. You could write a small plugin for that but imo it should be supported natively.
FichteFoll
 
Posts: 408
Joined: Fri Mar 16, 2012 11:49 pm
Location: Germany


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 15 guests