Home Download Buy Blog Forum Support

Ctrl + Arrow behavior.

Ctrl + Arrow behavior.

Postby dnunes on Sun May 27, 2012 4:29 am

. . Hi there, everybody. I've been using the Sublime Text 2 for one full day now and I'm really impressed with it. I was a longe time SciTE user and I'm happy to see that Sublime have pratically all the things I like in SciTE and none of the things I disliked. The thing is, whenever you stay too long using something you get used to it and it's hard to change habits you got. One thing I'm having difficult to get used to is the Ctrl+Arrow behavior. In SciTE it behaves like the "w" key in VI, but Sublime behaves like a default "ctrl+arrow". The difference is that vi and SciTE stop and the beginning of the next word, but Sublime goes right to the end of it.
. . Is there any way I can configure this behavior? I tried messing with the "word delimiters" configuration but got nowhere.
dnunes
 
Posts: 1
Joined: Sun May 27, 2012 2:17 am

Re: Ctrl + Arrow behavior.

Postby xeno.by on Sun May 27, 2012 9:39 am

If I were you, I'd: 1) write my own command that implements the behavior you want, 2) rebind Ctrl+Arrow to that command.
xeno.by
 
Posts: 104
Joined: Mon Jan 30, 2012 10:03 am
Location: Lausanne, Switzerland

Re: Ctrl + Arrow behavior.

Postby prmaple on Sun May 27, 2012 4:00 pm

dnunes wrote:. . Hi there, everybody. I've been using the Sublime Text 2 for one full day now and I'm really impressed with it. I was a longe time SciTE user and I'm happy to see that Sublime have pratically all the things I like in SciTE and none of the things I disliked. The thing is, whenever you stay too long using something you get used to it and it's hard to change habits you got. One thing I'm having difficult to get used to is the Ctrl+Arrow behavior. In SciTE it behaves like the "w" key in VI, but Sublime behaves like a default "ctrl+arrow". The difference is that vi and SciTE stop and the beginning of the next word, but Sublime goes right to the end of it.
. . Is there any way I can configure this behavior? I tried messing with the "word delimiters" configuration but got nowhere.


vintage mode. use it like vim
Find me
HTML5 Games: SNAKE! Tetris!
prmaple
 
Posts: 76
Joined: Sun Dec 25, 2011 11:06 am
Location: Melbourne

Re: Ctrl + Arrow behavior.

Postby elifiner on Wed Nov 21, 2012 4:14 pm

I've encountered the same problem for the same reason, coming from a long use of SciTE.

It looks like a small change in the key binding configuration solves the problem:

Code: Select all
{ "keys": ["ctrl+left"], "command": "move", "args": {"by": "words", "forward": false} },
{ "keys": ["ctrl+right"], "command": "move", "args": {"by": "words", "forward": true} },
{ "keys": ["ctrl+shift+left"], "command": "move", "args": {"by": "words", "forward": false, "extend": true} },
{ "keys": ["ctrl+shift+right"], "command": "move", "args": {"by": "words", "forward": true, "extend": true} }


I changed ctrl+left and ctrl+shift+left from by word_ends to by words.
elifiner
 
Posts: 1
Joined: Wed Nov 21, 2012 4:11 pm

Re: Ctrl + Arrow behavior.

Postby qgates on Thu Nov 22, 2012 4:41 am

Thanks for the last post. This was really starting to annoy me too. Now I'd like delete_word forward to behave this way too :)

S
qgates
 
Posts: 188
Joined: Mon Nov 05, 2012 4:33 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 20 guests