Skip to content

Potential for integration with PSReadLine's ViEditVisually function #53

@mklement0

Description

@mklement0

I think Show-PSEditor has great potential for integration with PSReadLine's ViEditVisually function; the latter allows invocation of an editor as a richer alternative to direct command-line editing, and Show-PSEditor's features make it ideally suited to that.

However, for this to be possible:

  • PSReadLine would have to be enhanced to allow specifying a PowerShell command via $env:VISUAL or $env:EDITOR - currently, only an external program may be specified.

  • Show-PSEditor's current behavior too could be enhanced to support that:


See PowerShell/PowerShell#21525 (comment) for a proof-of-concept that allows you to set $env:VISUAL or $env:EDITOR to 'psedit' or 'Show-PSEditor' to experiment with what such an integration could look like.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions