Home Download Buy Blog Forum Support

no tab indent on new line (shortcut)

no tab indent on new line (shortcut)

Postby atomi on Fri Apr 22, 2011 6:15 am

Before I make a plugin for this, can anyone say whether it's possible to have a key binding (ie: alt+enter) execute a new line but not tab indent immediately after. I'd like the cursor to be at the start of the line on CR when alt+enter is pressed.
atomi
 
Posts: 342
Joined: Thu Jan 20, 2011 5:06 pm
Location: Los Angeles CA US

Re: no tab indent on new line (shortcut)

Postby guillermooo on Fri Apr 22, 2011 6:20 am

It seems simpler to define a macro:
Code: Select all
[
    {"command": "move_to", "args": {"to": "hardeol"}},
    {"command": "insert", "args": {"characters": "\n"}},
    {"command": "move", "args": {"by": "lines", "forward": true}},
    {"command": "move_to", "args": {"to": "hardbol"}}
]
guillermooo
 
Posts: 729
Joined: Thu Jul 23, 2009 9:06 am

Re: no tab indent on new line (shortcut)

Postby atomi on Sun Apr 24, 2011 8:11 pm

Kind of silly I completely forgot about macros when I posted.
Thanks!
atomi
 
Posts: 342
Joined: Thu Jan 20, 2011 5:06 pm
Location: Los Angeles CA US


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Yahoo [Bot] and 26 guests