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

Fix PowerShell window title + transient prompt #30

Open
1 task done
kergoth opened this issue Jan 22, 2025 · 0 comments
Open
1 task done

Fix PowerShell window title + transient prompt #30

kergoth opened this issue Jan 22, 2025 · 0 comments

Comments

@kergoth
Copy link
Owner

kergoth commented Jan 22, 2025

The Starship support for a transient prompt requires that we call Enable-TransientPrompt. This calls Set-PSReadLineKeyHandler for the Enter key. Unfortunately, I like to set my window title based on the running command, which requires that I set the Enter key handler myself. I can't have a single handler that provides both pieces of functionality today, as Starship requires that a $script:TransientPrompt variable be set, but we can't set a $script variable in the starship module from outside the module. If starship provided a Set-TransientPrompt function to wrap the set of that script-internal variable, then we could copy the key handler and extend it.

  • Submit an issue against the starship repository suggesting the addition of a Set-TransientPrompt function to allow for this.

This was submitted at starship/starship#6514, so this issue is currently blocked on that one.

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