{ "keys": ["home"], "command": "move_to", "args": {"to": "bol"} }, | |
{ "keys": ["end"], "command": "move_to", "args": {"to": "eol"} } |
This comment has been minimized.
This comment has been minimized.
Dayjo
commented
Jul 13, 2012
Legend. This will save me so much time in the long run! Any thoughts on how to get it to work with Shift for highlighting an entire line? |
This comment has been minimized.
This comment has been minimized.
Dayjo
commented
Jul 17, 2012
Scrap that... figured it out and added the following lines;
|
This comment has been minimized.
This comment has been minimized.
tsmith512
commented
Nov 19, 2012
My hero! Thank you for this! |
This comment has been minimized.
This comment has been minimized.
appel
commented
Nov 28, 2012
There's a way to get this behaviour in all OS X apps. |
This comment has been minimized.
This comment has been minimized.
engleae
commented
Dec 3, 2012
Huge thanks. The home and end keys are back to being useful again. |
This comment has been minimized.
This comment has been minimized.
dhollenbeck
commented
Jan 18, 2013
+1 Thank you so much. |
This comment has been minimized.
This comment has been minimized.
nmccready
commented
Jan 28, 2013
Gracias +1 |
This comment has been minimized.
This comment has been minimized.
a-c-m
commented
Feb 7, 2013
+1 from me here too. HATE how mac thinks home/end should work. |
This comment has been minimized.
This comment has been minimized.
kylebradshaw
commented
Mar 8, 2013
this was the best gist ever! |
This comment has been minimized.
This comment has been minimized.
wilhelser
commented
Mar 11, 2013
+1 Awesome, thank you! Long time Linux user just bought my first Mac 2 days ago and this was driving me insane! |
This comment has been minimized.
This comment has been minimized.
Scotchester
commented
Mar 12, 2013
Thank you so much! |
This comment has been minimized.
This comment has been minimized.
rfsbsb
commented
Mar 16, 2013
Hey man, that's very, very helpful! Thank you for sharing it! |
This comment has been minimized.
This comment has been minimized.
mnme
commented
Mar 25, 2013
very nice, also looseroots for the selection thingy I added also support for the command key: https://gist.github.com/mnme/5235936 |
This comment has been minimized.
This comment has been minimized.
Scotchester
commented
Jul 5, 2013
If you'd like to add support for using Cmd+ to go to the beginning/end of the file, it's pretty easy! Just add these lines: { "keys": ["super+home"], "command": "move_to", "args": {"to": "bof"} },
{ "keys": ["super+end"], "command": "move_to", "args": {"to": "eof"} },
{ "keys": ["super+shift+home"], "command": "move_to", "args": {"to": "bof", "extend": true} },
{ "keys": ["super+shift+end"], "command": "move_to", "args": {"to": "eof", "extend": true} } |
This comment has been minimized.
This comment has been minimized.
djonatanb
commented
Aug 15, 2013
Thank you, pressed it several times to celebrate. |
This comment has been minimized.
This comment has been minimized.
waylonrobert
commented
Aug 22, 2013
Amazing - always frustrated me how "Home/End" keys didn't work properly in OS X. |
This comment has been minimized.
This comment has been minimized.
demisx
commented
Sep 18, 2013
Very nice! The life is a joy again. |
This comment has been minimized.
This comment has been minimized.
ghost
commented
Jan 14, 2014
Thanks for this! Just an FYI - this works totally fine in Sublime Text 3 on OSX! |
This comment has been minimized.
This comment has been minimized.
YA2O
commented
Apr 10, 2014
+1 you made my day |
This comment has been minimized.
This comment has been minimized.
damurdock
commented
Jun 5, 2014
Kind of late, but thank you for this! It still works in Sublime Text 3 too! |
This comment has been minimized.
This comment has been minimized.
kingwrcy
commented
Jul 18, 2014
nice,huge thanks. |
This comment has been minimized.
This comment has been minimized.
adarhef
commented
Jul 24, 2014
Thanks, it's been driving me crazy. |
This comment has been minimized.
This comment has been minimized.
rodmhgl
commented
Sep 8, 2014
And just like that, I was 50% more productive. Thanks! |
This comment has been minimized.
This comment has been minimized.
gcamargo1
commented
Nov 17, 2014
Thanks!! |
This comment has been minimized.
This comment has been minimized.
bicepjai
commented
Dec 16, 2014
i believe in GOD now ! |
This comment has been minimized.
This comment has been minimized.
jessegilbride
commented
Apr 7, 2015
much thanks. |
This comment has been minimized.
This comment has been minimized.
jeffwindsor
commented
Apr 11, 2015
many many thanks, this a great frustration relief. |
This comment has been minimized.
This comment has been minimized.
Krellan
commented
Oct 5, 2015
Wow, great! This is the #1 hit on Google for "sublime text home end", for good reason. These tips have unfscked my Home and End keys! Much appreciation. Here's all of the suggested edits on this page so far, all edited together, for your convenience:
Whitespace added for readability. Simply cut and paste into your keymap file (Sublime Text 2 / Preferences / Key Bindings - User). Takes effect immediately, as soon as that file is saved! Josh |
This comment has been minimized.
This comment has been minimized.
Cb-James
commented
Oct 16, 2015
You da man Josh! And kudos OP's for this life-enhancement. |
This comment has been minimized.
This comment has been minimized.
GrayedFox
commented
Oct 27, 2015
Thank. God. Cheers! |
This comment has been minimized.
This comment has been minimized.
hitchcott
commented
Nov 1, 2015
This has made my day. |
This comment has been minimized.
This comment has been minimized.
cdsaenz
commented
Feb 10, 2016
A life saver, thanks guys, I'm moving from Windows to OSX and this was driving me insane in every editor, I might actually decide to buy Sublime after this great fix. Thanks a lot everyone. |
This comment has been minimized.
This comment has been minimized.
dustinevan
commented
Mar 7, 2016
Oh thank you so much. |
This comment has been minimized.
This comment has been minimized.
jebees
commented
Mar 10, 2016
for the love of all that is holy, THIS IS WONDERFUL. Thank you Krellan!! |
This comment has been minimized.
This comment has been minimized.
hzxie
commented
Mar 22, 2016
It works. Thanks a lot! |
This comment has been minimized.
This comment has been minimized.
raveren
commented
Apr 27, 2016
@kellan, godly @ everyone else: you need this comment. |
This comment has been minimized.
This comment has been minimized.
victor-ono
commented
May 5, 2016
Incredible. |
This comment has been minimized.
This comment has been minimized.
doomsbuster
commented
May 5, 2016
@Dayjo Thank you very much. This saves the day. |
This comment has been minimized.
This comment has been minimized.
racl101
commented
May 18, 2016
Wunderbar! Thanks for sharing this guys. This makes me happy. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
jthomp
commented
Jun 3, 2016
Exactly what I was looking for. Thanks! |
This comment has been minimized.
This comment has been minimized.
mikedowd
commented
Aug 18, 2016
Yes! Thanks! |
This comment has been minimized.
coldnebo commentedFeb 3, 2012
yes, I know, "Command-Left/Right" moves the cursor the way I want. But what is the use of the home/end keys? They move the view but not the cursor? That's pretty useless if you ask me, so I made them more functional and I don't have to do vulcan neck pinches to get it. (yes, there's always CTRL+a/e bash conventions, but sometimes the old wiring for HOME/END kicks in and it is very annoying to try to refind what I was editing-- VERY ANNOYING!). There's another solution that is more invasive, but this works fine for me.