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

eval:selected multi-cursor support #441

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

exelotl
Copy link

@exelotl exelotl commented May 31, 2024

This PR makes it so that if you run eval:selected while having multiple selections, it will evaluate and replace the contents of each, rather than replacing all selections with the first result.

Note: some previous functionality:

if no text is selected, eval the current line and insert the result in the next line with "= " prefix. (#177)

has been removed as it doesn't play nice with multiple selections. Now it behaves as if the whole line had been selected, and replaces the line. Maybe @Titousensei could confirm that this is ok / won't ruin your workflow?

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.

1 participant