wezterm
wezterm copied to clipboard
Auto-completion for text values appearing in the buffer
Is your feature request related to a problem? Please describe.
When I am typing a command, sometimes I usetext values that come from previous commands I've executed.
Describe the solution you'd like
When I am typing a command at the shell prompt (PowerShell), I'd like to use a keyboard shortcut to auto-complete text that appears in the buffer. iTerm2 on MacOS already does this really well, but I'm using Wezterm on Windows 11, installed using the Scoop package manager.
For example, I'd like to auto-complete the Kubernetes "context" names from this screenshot:
Take a look at Quick Select Mode; press CTRL-SHIFT-SPACE
to activate it to highlight text from the terminal buffer.
You can configure the patterns used by the default quick select, or set up key assignments to trigger specific matches using QuickSelectArgs
Looks potentially useful. I'll have to figure out how to have it detect words and other elements. The default behavior is pretty cool though.
Try clink's AutoSuggest function, which works just as well as ZSH's autoSuggest @pcgeek86
I'll have to figure out how to have it detect words and other elements.
This will add a regex that matches word characters and -
that seems like it would match the output in your screenshot:
return {
quick_select_patterns = {
"[\\w-]+"
}
}
That is great idea I would also like to see in WezTerm ;) I found something like this for tmux here https://tmux.reconquest.io/ but it would be nice to have it natively in the terminal itself <3