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

Add option to pre-populate user prompts with custom text #6002

Open
ekorchmar opened this issue Aug 21, 2024 · 1 comment
Open

Add option to pre-populate user prompts with custom text #6002

ekorchmar opened this issue Aug 21, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@ekorchmar
Copy link
Contributor

Is your feature request related to a problem? Please describe.
I would love an option to specify "default" text for wezterm.action.PromptInputLine, for example when using it to rename the active tab. For this case, that could be the tab name or a shared prefix for manually named tabs (e.g. M: )

Describe the solution you'd like
Add another parameter default to function wezterm.action.PromptInputLine that would define a text string to place in prompt for user to edit, rather than starting with an empty input.

Describe alternatives you've considered
Hooking up a SendText callback with the desired text, but it is not immediately obvious how to do it after spawning the prompt.

Additional context
A callback parameter to conditionally style the text while it is being entered would be good, too, but it is a lot of overhead for little use-case.

@sumeetgadagkar
Copy link

Would love to have this as well

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

Successfully merging a pull request may close this issue.

2 participants