Skip to content

Example formats: Make it easier to copy paste examples  #1684

@RobbingDaHood

Description

@RobbingDaHood

Example taken from https://www.nushell.sh/book/pipelines.html#when-does-in-change-and-when-can-it-be-reused but are many places in the documentation:

  > ls / | get name; $in | describe
  nothing

Should be split in two and the prefixed > should be removed:

  ls / | get name; $in | describe
  nothing

Because many readers allow copying a code block and that is practical for pasting and executing: Like it does here in gitlab PR reader.

Now I have to manually select the code I want executed and that is tedious.

PS: It seems like the documentation is not consistent on this, some places it looks as I suggest.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions