Helix still has no way to emulate Sublime's Ctrl + Click (placing multiple carets), nor Sublime's Ctrl + D (duplicating selections and creating a multiple caret for each)?
Helix still has no way to emulate Sublime's Ctrl + Click (placing multiple carets), nor Sublime's Ctrl + D (duplicating selections and creating a multiple caret for each)?
It has both? Granted, Ctrl+D requires manual construction from a sequence of commands, but click to place extra carets works as is
> requires manual construction from a sequence of commands
Right, I saw some people share some snippets here before. But none of them act like Sublime does. I can't double-click a token and Ctrl + D to select next instances of it in my file.
A-s = ["save_selection", "select_mode","search_selection","extend_search_next"]
you select a token, then pess alt+s to select the next instance and so on
That limits to only 2 selections. If I keep pressing Alt + S, it does not select multiple instances of the first selection.
Also, I can't immediately start typing like in Sublime to replace the content. For example:
"test/filenameA.c"
"test/filenameB.c"
"test/filenameC.c"
"test/filenameD.c"
If I select test/ with the cursor, then A-s, it won't select 3 and 4. If I do this, however:
C-d = ["search_selection", "extend_search_next"]
It does select test/, in all 4 lines, but I can't immediately type "blah" to change test to blah.
Cmd + click places multiple carets on macOS. Apparently – I never touch the mouse when I’m editing in Helix. I don’t know which modifier it is on other platforms.
I’m not sure if replicating Sublime’s Ctrl + D is possible or not, but there are other ways to achieve every use case for it I can immediately think of. e.g. I think I’d typically be doing `<space>h` to select every instance of the symbol under the cursor, or using `s`elect to reduce a selection to a match, possibly yanked and pasted.
Does not work on Linux. Also, double-clicking to expand selection like in Sublime does not work.
https://github.com/helix-editor/helix/discussions/10208
There might be a better way but this bind works well for me in normal and select modes.
It's very funny to me that some comments before someone wrote that helix has the best multiple cursor implementation.
I was curious about what could it be.
Then you mention it doesn't have two essential behaviours that I am used to, and I wonder if these people just know vim and cli editors and that's why they have such opinion. Because I am also a SublimeTexter.