sublime-emacs/sublemacspro

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.

That is exactly what I want. In emacs when I press ctrl+space+space I can exit from selection.

=> In sublime text what should I do to exit the selection?

Example: Here I press ctrl+space+space it select from wherever the cursor is again.
Screen Shot 2020-01-29 at 10 09 41

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