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

Only copy lines with .gp class #218

Open
nineteendo opened this issue Sep 3, 2024 · 0 comments
Open

Only copy lines with .gp class #218

nineteendo opened this issue Sep 3, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@nineteendo
Copy link

Context

I would like to exclude the traceback from being copied:

>>> 1 / 0
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ZeroDivisionError: division by zero

But that's difficult because the class of "division by zero" is .n, and hard coding the prompts is prone to error.

Proposal

If a code block contains .gp, allow to exclude .gp from lines and only copy these lines. >>> becomes an empty line.
Or alternatively convert the other lines to empty lines.

Tasks and updates

No response

@nineteendo nineteendo added the enhancement New feature or request label Sep 3, 2024
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

1 participant