Home Download Buy Blog Forum Support

cmd+left arrow on Mac behaviour

cmd+left arrow on Mac behaviour

Postby fnurl on Sun Jan 08, 2012 12:49 pm

Hi, I am running build 2160 on Mac OS X 10.7.2.

I am experiencing non-standard behavior for cmd+left arrow for long word wrapped lines.

When press cmd+left arrow I am expecting the cursor to jump to the beginning of the perceived line, i.e. go to the virtual column number 1. Instead, the cursor jumps to the last column of the previous virtual line. I can understand why (there does not seem to exist a virtual column number 1 - the first stop for the cursor is *after* the first character on the virtual line).

Is this intentional? Can I configure Sublime Text 2 to behave the way e.g. Apples TextEdit or TextMate behaves?

btw, I really like Sublime Text and it has replaced TextMate as my default text editor.
fnurl
 
Posts: 7
Joined: Sun Jan 08, 2012 12:18 pm

Re: cmd+left arrow on Mac behaviour

Postby jps on Mon Jan 09, 2012 1:44 am

This used to work as expected, but fell off the wagon at some point. Will fix for the next build.
jps
Site Admin
 
Posts: 3058
Joined: Wed Mar 19, 2008 12:33 pm

Re: cmd+left arrow on Mac behaviour

Postby fnurl on Mon Jan 09, 2012 9:18 am

jps wrote:This used to work as expected, but fell off the wagon at some point. Will fix for the next build.


Great, thanks!
fnurl
 
Posts: 7
Joined: Sun Jan 08, 2012 12:18 pm

Re: cmd+left arrow on Mac behaviour

Postby sobstel on Fri Feb 03, 2012 10:08 am

This used to work as expected, but fell off the wagon at some point. Will fix for the next build.


It still does not seem to work (and it's very annoying). Any plan to really fix this?
sobstel
 
Posts: 1
Joined: Fri Feb 03, 2012 10:06 am

Re: cmd+left arrow on Mac behaviour

Postby johnnybenson on Tue Feb 28, 2012 7:51 pm

Just wanted to follow up with this thread.

Still no support for [cmd+left-arrow] or [cmd+right-arrow] to jump to the beginning / end of a line.

Would kill to have it :D heh

Thanks!
johnnybenson
 
Posts: 3
Joined: Tue Nov 01, 2011 3:50 pm

Re: cmd+left arrow on Mac behaviour

Postby jps on Wed Feb 29, 2012 12:52 am

By default, cmd+left and command+right will move the caret to the beginning and end of line respectively.
jps
Site Admin
 
Posts: 3058
Joined: Wed Mar 19, 2008 12:33 pm

Re: cmd+left arrow on Mac behaviour

Postby jabyuk on Wed Feb 29, 2012 6:27 pm

I have the same issue. Perhaps a plugin is the culprit but I am also unable to use [cmd+left-arrow] or [cmd+right-arrow] to jump to the beginning / end of a line.

I too would really like this as I (would), for example, use this to jump forward after completing variable data within quotes. Other wise I have to use the mouse to click on the end of the line. That is unless I am missing some other way of jumping outside quotes to the end of a line?
jabyuk
 
Posts: 4
Joined: Tue Feb 14, 2012 10:36 pm

Re: cmd+left arrow on Mac behaviour

Postby jps on Thu Mar 01, 2012 3:25 am

Please enter these lines in the console:

Code: Select all
sublime.log_commands(True)
sublime.log_input(True)


And let me know what's output to the console when you press command+left or command+right (either via the forum or to support@sublimetext.com)
jps
Site Admin
 
Posts: 3058
Joined: Wed Mar 19, 2008 12:33 pm

Re: cmd+left arrow on Mac behaviour

Postby growlzor on Thu Mar 01, 2012 7:35 pm

I got this in on the output console:
Code: Select all
key evt: super+left
command: goto_css_declaration {"goto": "prev"}

Commenting out the code in goto-css-declaration.sublime-keymap got cmd+left-arrow and cmd+right-arrow working again.
growlzor
 
Posts: 1
Joined: Thu Mar 01, 2012 7:13 pm

Re: cmd+left arrow on Mac behaviour

Postby jabyuk on Mon Mar 05, 2012 10:04 am

I also did this and got the same result:

command: goto_css_declaration {"goto": "next"}

I will follow your advise - I am looking forward to getting cmd-left and cmd-right back!
jabyuk
 
Posts: 4
Joined: Tue Feb 14, 2012 10:36 pm

Next

Return to Technical Support

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 24 guests

cron