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

[Feature Request] a way to easily run a range of lines #108

Open
benlubas opened this issue Sep 16, 2023 · 0 comments
Open

[Feature Request] a way to easily run a range of lines #108

benlubas opened this issue Sep 16, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@benlubas
Copy link

benlubas commented Sep 16, 2023

Currently the best way to run an arbitrary block of code is to select it with visual mode and then use :MagmaEvaluateVisual which is itself clunky b/c you have to delete the '<,'> at the front or exit visual mode before running the command.

Either way, this method messes with the visual selection which is not ideal for user defined functions that run blocks of code.

I'd like to expose a vim function :MagmaEvaluateRange which takes a start line and an end line and evaluates those lines in the buffer.

This would enable users to more easily define their own text objects to run code with as mentioned in #19

@benlubas benlubas added the enhancement New feature or request label Sep 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant