-
Notifications
You must be signed in to change notification settings - Fork 56
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 executable blocks #17
Conversation
ddda001
to
a6c9bff
Compare
I'm curious actually how do you expect this to work if the output overflows the screen. I'd like to avoid implementing scrolling if possible, so I guess the alternatives are a) let it overflow and b) truncate and get the last N lines. Thoughts? |
a6c9bff
to
0d51307
Compare
0d51307
to
e450589
Compare
@baduhai I'm merging this because I want to change other stuff and I'll start having conflicts. Let me know if something's off |
You merged just as I was testing :) I'm getting a failed test when compiling, currently:
Gonna try to skip tests to see how it runs. |
Interesting, I think I did something wrong on my end before. It works wonderfully, thank you so much for this feature! |
Phew you scared me. Awesome, let me know if you find any issues/need any features! |
This adds code execution for shell blocks (e.g.
bash
,sh,
shell, etc) when pressing control+e. For this to work you need to annotate the code block with
+exec(e.g.
bash +exec`) so that you agree to allow presenterm to run the code.I also made this so that you can still change slides as the code is being rendered. Not sure if that's necessary but I think it was simpler to do it this way.
@baduhai would you like to test this and let me know if it works for you? Thanks!
Closes #4