-
Notifications
You must be signed in to change notification settings - Fork 11
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 selection #7
Comments
@lopho to eval a block, you can also use That being said, being able to make a selection and run it with |
Yes, evaling a Evaluating the inner block, evaluates the outer as well: do
d1 $ s "hh*8"
do -- can't let you eval that do block alone, mane
d2 $ s "sd*2" Do I understand you correctly, that indented lines, like in the example in the issue description, should also eval with |
So I deconvoluted my workspace scrapbook a bit, and tried executing indented multiline statements using -- evals correctly with ctrl-enter:
d1 $ s "hh*8"
# up "1 2 3 4" -- caret is here
-- evals entire do block, not just indented multi line:
do
d2 $ s "bd*2"
d1 $ s "hh*8"
# up "1 2 3 4" -- caret is here, ctrl-enter, evals entire do block :( Well, I guess this is all is workable |
Ahhh, I see. Thanks for the PR I will pull down and test as soon as I can! |
Nice! I commented on the PR regarding |
Implemented multi-line and single-line statement evaluation with selection. |
Not sure if this happens to you, but it's like the extension key bindings are not language specific to *.tidal files, but all instead. If I'm editing a Python file, and try to insert a new line below (Ctrl+Enter) it triggers tidal's eval command. |
This also breaks committing changes in the git view, as the keybinding is defined to be global. Setting it's |
I've set both keybindings to have "editorTextFocus && resourceExtname == '.tidal'" for its when expression and it works perfectly. Is this something that should be made default by the extension? |
Selecting multiple lines and evaluating them with
shift-enter
works as intended with atom tidal.On vscode it only executes the line on which the caret resides.
I'm not sure if this is intended or a bug, but it makes working with tidal in vscode more or less unfeasible for me. Or I am a bit blind and just don't get how it's supposed to work :/
Not evaluatable without executing the entire block with
shift-enter
ctrl-enter
:(Related to this, but not sure if a separate issue (not sure if atom handled this) are nested
do
blocks.Running multiline eval with
shift-enter
ctrl-enter
on an nesteddo
block executes the entiredo
stack, excluding the root scope.)The text was updated successfully, but these errors were encountered: