Skip to content

Document -Delimiter parameter for Get-Clipboard #12406

@MartinGC94

Description

@MartinGC94

Prerequisites

  • Existing Issue: Search the existing issues for this repository. If there is an issue that fits your needs do not file a new one. Subscribe, react, or comment on that issue instead.
  • Descriptive Title: Write the title for this issue as a short synopsis. If possible, provide context. For example, "Document new Get-Foo cmdlet" instead of "New cmdlet."

Summary

The linked PR adds a new parameter for Get-Clipboard that allows users to customize the delimiters used to split the clipboard content into an array. For example a user could use:

Get-Clipboard -Delimiter "`r`n", "`n"

to handle both Windows and Linux line endings. Or add a custom separator to handle custom string formats: Get-Clipboard -Delimiter "|"

It might also be worth adding a note that users can add this to their profile to ensure it always uses the Linux and Windows line endings:

$PSDefaultParameterValues.Add("Get-Clipboard:Delimiter",("`r`n", "`n"))

Details

No response

Articles

No response

Related Source Pull Requests

Related Source Issues

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