Skip to content

feature request: configurability of copyability #52

@kratsg

Description

@kratsg

from scikit-hep/pyhf#721

a simple way is to add a configuration to allow for the last line to be copied or skipped. This should handle both cases. Additionally, could add a configuration indicating if the project wants to use >>> and ... so then you can just not copy lines that don't start with that.

In order to be a bit more flexible about how code snippets can be copied, it is true that there is no enforced consistency so that as of right now, the entire code-block is copied. This issue requests two separate things:

  1. The ability to toggle on/off whether the last line in a code-block should be copied (this doesn't necessarily assume a language)
  2. The ability to toggle on/off whether lines without >>> or ... should be copied (note: this one assumes python)
  3. Perhaps in the future, similar to above, the ability to toggle whether lines without > or $ should be copied

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions