PSReadLine icon indicating copy to clipboard operation
PSReadLine copied to clipboard

Surface sensitive pattern as a configurable option

Open kilasuit opened this issue 1 year ago • 0 comments

Prerequisites

  • [X] Write a descriptive title.

Description of the new feature/enhancement

we currently have this regex pattern hardcoded & this could be useful for further extensibility going forward.

https://github.com/PowerShell/PSReadLine/blob/e9122d38e932614393ff61faf57d6518990d7226/PSReadLine/History.cs#L116-L118

Therefore it would be great to surface extensibility of this via either

  1. fully configurable option with this pattern as the default setting
  2. setable property for addtional patterns to match

2 I feel is a better & more secureminded implementation going forward & would enable users to manage asks like #4077 (which we perhaps could pull into the default's as part of this enhancement

Proposed technical implementation details (optional)

No response

kilasuit avatar Sep 29 '24 05:09 kilasuit