How could I set a mark with keybinding `Ctrl+space` on Sublime Text`?
avatar-lavventura opened this issue · 11 comments
On emacs
by default Ctrl+space
sets a mark and later when I press up/down arrow the selection expands.
I am using emacs
keybindings on Sublime Text
.
But on Sublime Text
, I need to do Ctrl+space+space
in order to set a mark. First space
puts a dot next the line and the seconds space actually selects it.
[Q] How could I set a mark with keybinding Ctrl+space
on Sublime Text`?
Typing Ctrl+Space does set the mark, and the little dot next to the line is an indicator.
If you want the region to be highlighted, you type Ctrl+space twice, which I think you figured out.
However, if you want to just type it once, there is a setting:
"sbp_active_mark_mode" : true,
I recently switched to that myself and am trying to train myself to type ctrl+space just once.
I hope this is what you want.
Thanks @canoeberry ctrl-g
go back to where the setted mark location instead of the cursor's location but does the job.
On emacs, lets say I have set the mark and move around and press ctrl-g
, the selection is cleared and cursor remain as it is. Also ctrl-space
clears the selection as well.
On sublime when I did the same approach, after ctrl-g
selection also is cleared but cursor goes back the whereever the initial mark position is.
Start is not always to the "left" of "end" either. Start is where you started the selection, end is where you currently are, regardless of relative position in the buffer.
Hope this helps.
{"keys": ["ctrl+g"], "command": "sbp_quit", "args": {"favor_side": "end"}}
solves it, good catch, thanks @canoeberry