Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need Help with Splitting the Selection into Lines #99

Open
cvladan opened this issue Mar 22, 2023 · 1 comment
Open

Need Help with Splitting the Selection into Lines #99

cvladan opened this issue Mar 22, 2023 · 1 comment

Comments

@cvladan
Copy link

cvladan commented Mar 22, 2023

Can someone please help me?
I need assistance with a script that would provide the same functionality as in Sublime Text or VSCode.

Specifically, the VSCode command "insertCursorAtEndOfEachLineSelected"
originally from Sublime Text: "Splitting the Selection into Lines", see here: Sublime Text Documentation

Simply put, I don't understand how to iterate through the lines of the current selection, regardless of whether it's a multi-edit or a classic single edit.

Thanks!

P.S. And let me not forget, thanks to the author for the useful plugin!

@dail8859
Copy link
Owner

You might be interested in my other plugin, BetterMultiSelection

If you have a rectangular selection (a normal selection won't work) you can use the keyboard navigation as expected, such as End, Home, Left/Right, Shift+... and it will create multiple cursors.

Just figured I'd point this out real quick...don't have access to try out any Lua code right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants