Sublime Forum

Disable "Smart Home" behaviour

#1

While I can probably get used to it, it would be helpful to allow disabling the “smart home” behaviour for those upgrading to Sublime Text from a low-level editor like Notepad or Metapad.

Smart home is where you press the Home key to move the cursor to the first non-whitespace character in the line, rather than placing the cursor at column 1. Yesh, I know a second press of the Home key will then move the cursor to column 1, but my muscle-memory for a lot of common operations is going to be a tough habit to break. Hitting Home, then holding shift and arrow-key selecting whole lines is the first thing that comes to mind.

Disabling smart home should mean that pressing Home moves the cursor to column 1, and further pressing of the Home key will keep the cursor there, rather than toggling between column 1 and the first non-whitespace character.

Cheers!

0 Likes

#2

hey,

it already can be configured (you’ll need the latest beta) :smile:.

just a add the follwing line to your key binding (user key bindings)

<binding key="home" command="moveTo hardbol"/>
0 Likes

#3

This works. Thanks for the reply! :smile:

0 Likes

#4

You’ll probably want the full complement, to keep things consistent:

	<binding key="home" command="moveTo hardbol"/>
	<binding key="shift+home" command="moveTo hardbol extend"/>
	<binding key="end" command="moveTo hardeol"/>
	<binding key="shift+end" command="moveTo hardeol extend"/>

(hardeol is there because it has the same behaviour with respect to word wrapping that hardbol does)

0 Likes

#5

This is exactly what I need. Thanks again!

0 Likes