Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potential for integration with PSReadLine's ViEditVisually function #53

Open
mklement0 opened this issue Apr 25, 2024 · 0 comments
Open

Comments

@mklement0
Copy link

mklement0 commented Apr 25, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant