Sublime Forum

Hardbol behavior changed for wrapped lines on macOS?

#1

On my mac I want command-left-arrow to go to the very beginning of the current line (including initial whitespace), thus making it an exact analog for command-right-arrow and making it work like every other mac editor I’ve used.

I have this in my key bindings and I think it used to work fine:
{ “keys”: [“super+left”], “command”: “move_to”, “args”: { “to”: “hardbol” } },

Unfortunately now I find that when a line has been wrapped command-left moves to the very beginning of the wrapped line, not the current line. I think this is a change (but I don’t edit documents with wrapped lines often enough to be confident of that, nor of when it might have changed).

Any ideas? Is there something like “hardbol” that means what I want? It seems reasonable to offer names for “beginning of current line” and “beginning of wrapped line” (not that I personally want a key binding for the latter).

0 Likes

#2

As far as I’m aware, hardbol has always meant what you describe above. If you want to jump to the “logical” start of the line (i.e. always jump to column 1 on the current line even if the line is wrapped) then I think you want bol instead.

0 Likes

#3

It may have been a bug in the version i was using. The problem seems to have gone away.

0 Likes