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 codio support #26

Closed
vinayak-mehta opened this issue Aug 26, 2020 · 2 comments · Fixed by #20
Closed

Add codio support #26

vinayak-mehta opened this issue Aug 26, 2020 · 2 comments · Fixed by #20
Labels
enhancement New feature or request

Comments

@vinayak-mehta
Copy link
Owner

vinayak-mehta commented Aug 26, 2020

#20 implements this, opening this issue for some discussion.

Demo:

Peek 2020-08-22 06-15

Color:

Peek 2020-08-23 17-45

Progress bar:

codio

@vinayak-mehta vinayak-mehta added the enhancement New feature or request label Aug 26, 2020
@vinayak-mehta
Copy link
Owner Author

vinayak-mehta commented Aug 26, 2020

Right now, you can specify a codio in a yaml file as a list of prompt, input and output pairs, where the input is printed one letter at a time, and the output all at once. For example:

speed: 2
steps:
- prompt: $
  in: smol-git push origin master
  out: ''

Is this a good way to write a codio? I guess the best way would be to build a helper tool present-record which can record a terminal session when launched, and produce a codio file which present can use. But if you were to specify the codio by hand for now, would the above yaml (a file separate from your slides.md) be a good interface to do that? Or would something that you can specify inside your slides would be better? (like below)

prompt=$ input='smol-git push origin master' output=''

One problem with this format and the current implementation is that progress bars have to be specified as an input (so that they get printed one letter at a time), which is kinda wrong as progress bars are usually a part of the output.

speed: 2
- prompt: ''
  in: ████████████████████████
  out: ''

@vinayak-mehta vinayak-mehta pinned this issue Aug 27, 2020
@vinayak-mehta
Copy link
Owner Author

vinayak-mehta commented Aug 27, 2020

I think that for now, an API (where a progress bar is a separate entity) similar to termynal would be a good way to go. In the future, a utility to convert terminalizer or asciinema outputs might be another way. Or maybe a utility which records and outputs in present format.

@vinayak-mehta vinayak-mehta unpinned this issue Aug 29, 2020
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

Successfully merging a pull request may close this issue.

1 participant