guillermooo / sublime-undocs

Sublime Text Unofficial Documentation
http://docs.sublimetext.info
Other
605 stars 332 forks source link

Disambiguate moving to beginning of line. #236

Closed peterkagey closed 7 years ago

peterkagey commented 7 years ago

On my machine (Sublime Text 3, macOS 10.12.3) ^ + A and ⌘ + Left have slightly different behaviors.

This might be better described as, "Move to the first non-whitespace character to the left of the cursor, or the beginning of the line if all characters to the left of the cursor are whitespace", but I was trying for something pithier.

FichteFoll commented 7 years ago

Unfortunatly, I can't seem to find a binding for ^+A in Default/Default (OSX).sublime-keymap, which is surprising to me since it has been listed in this doc page. Maybe it has been removed in ST3?

@peterokagey, can you confirm this behavior with all packages disabled?

@OdatNurd, can you confirm this behavior? (I just know that you're using OSX. 😉 )

peterkagey commented 7 years ago

Ah! ^+A may just be a macOS default then.

@FichteFoll, I've confirmed that the behavior is the same even after disabling all packages and commenting out custom key bindings and preferences.

OdatNurd commented 7 years ago

Indeed, I can confirm this on MacOS 10.10.5 with nothing but the default packages enabled.

As far as I'm aware, this is one of the default key bindings that the OS provides, which seems to be borne out by this list from the Apple support site: https://support.apple.com/en-ca/HT201236

Surprisingly (to me) even though the key is seemingly handled by the OS, Sublime still sees it as a key when input logging is turned on. In fact it appear to be logged twice for every key press. Possibly Sublime has some platform specific internals to provide a consistent experience across platforms or something?

FichteFoll commented 7 years ago

Interesting. I'll merge this for now, since it's obviously better than what we have currently. I honestly never used these cheat sheets so I have no idea how details we should be with them, but we'll revisit them at some point anyway.