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

Add multiselect support for sequence command #50

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

joshf26
Copy link
Contributor

@joshf26 joshf26 commented Sep 20, 2024

First off, thanks for making this extension. It's super helpful.

This change improves the multiselect support for the sequence command by making it more consistent with IntelliJ's String Manipulation plugin. I see the issue was already reported in #47.

This change adds a new multiselectData object that is passed to all number functions (although only sequence uses it currently) to allow data to be stored between calls. In this case, sequence uses it to keep track of the current number (offset) across selections. This allows the user to create a sequence of numbers in a column without affecting other numbers on each row. For example:

image

Becomes...

image

Let me know if you have any questions or feedback, thanks.

@marclipovsky marclipovsky merged commit 4697d1f into marclipovsky:master Sep 27, 2024
3 checks passed
@marclipovsky
Copy link
Owner

Published to marketplace.

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

Successfully merging this pull request may close these issues.

2 participants