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 code by sending it via stdin (Pipe) #16

Open
tionis opened this issue Mar 31, 2022 · 2 comments
Open

Eval code by sending it via stdin (Pipe) #16

tionis opened this issue Mar 31, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@tionis
Copy link

tionis commented Mar 31, 2022

I am currently experiencing issues that I believe come from my use of quotes in the source, I would propose the following changes so that complex quote handling won't be needed:

  • Allow specifying that a command reads the {{src}} from stdin (like it's solved in https://github.com/gpanders/vim-medieval).
  • As this is exactly how scripts are interpreted normally most tools should support it, and it completely forgoes most issues regarding quoting
@cristianvasquez cristianvasquez added the enhancement New feature or request label Apr 21, 2022
@cristianvasquez cristianvasquez changed the title Eval code by sending it via stdin Eval code by sending it via stdin (Pipe) Apr 21, 2022
@cristianvasquez
Copy link
Owner

I don't have time to implement that, but definitely, it makes sense.

@zcysxy
Copy link

zcysxy commented Apr 28, 2022

I have this problem too. I found it easily solved using heredoc. For example

"template": "/opt/homebrew/bin/lua <<EOF\n{{src}}\nEOF"

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

3 participants