Skip to content

Only copy lines with .gp class #218

Description

@nineteendo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions