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

Template for prompt command / "$/%" prefix #1

Open
blueyed opened this issue Feb 29, 2020 · 1 comment · May be fixed by sphinx-contrib/sphinxcontrib-runcmd#1
Open

Template for prompt command / "$/%" prefix #1

blueyed opened this issue Feb 29, 2020 · 1 comment · May be fixed by sphinx-contrib/sphinxcontrib-runcmd#1

Comments

@blueyed
Copy link

blueyed commented Feb 29, 2020

I think it would be nice to include a "$ " or "% " prefix with commands.

I've even tried if it would just handle $ foo to run foo, but display "$ foo", which might be a nice way to do this automatically.

If not doing it automatically it should probably become a config setting so that you do not have to specify/give it every time.

It would also make sense to configure the default directives in a config setting, instead of adding this as a separate/standalone option.

See also https://pythonhosted.org/sphinxcontrib-programoutput/#confval-programoutput_prompt_template.

@fchorney
Copy link
Member

fchorney commented Mar 2, 2020

Thanks for posting this. I like the idea of having a prefix as an option in the configs rather than having to specify it for every block. I haven't worked on this project in quite a while, but when I get a chance I'll take a look at the PR :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants