-
-
Notifications
You must be signed in to change notification settings - Fork 110
fix(tui): fixed shell completion widget not rendering, add poc for fish #588
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(tui): fixed shell completion widget not rendering, add poc for fish #588
Conversation
|
waiting for #589 |
3537f4c to
ae3477d
Compare
|
@alexpasmantier please have a look, makes the shell_integration usable with a partial height EDIT: unfortunately we have to make this dance because crossterm Inline is a second class citizen, perhaps it will improve in the future. |
fb42495 to
f60b492
Compare
ae3477d to
17c21f0
Compare
a4a8186 to
02ae59c
Compare
6736e47 to
cbf50dd
Compare
|
@lalvarezt Found a working solution cbf50dd Side note: Also figured that updating this makes the UX a bit nicer for zsh. Would you mind giving this a try and telling me if it works as expected on your machine? |
cbf50dd to
e98c375
Compare
|
oh nice 👏, but I'm seeing this weird new line again (in fish), specifically when right at the bottom of the screen And this in zsh |
|
made the resizing a much simpler implementation, yes we lose the context from the shell previous commands but being honest while resizing it's not a big deal, IMO |
separation of UI and output using stderr and stdout
5d1bcd1 to
4aec703
Compare
make inline and fixed start x position consistent
4aec703 to
201b98b
Compare
|
For the cursor position error: Are you sure you're recompiling the release binary ? Because that's what's being used by the shell script. |
|
Regarding resizing: Was the actual implementation broken? I don't feel we gain that much simplicity by dropping the feature so might as well keep it if it's working as intended. |
I patched the zsh file to use the actual implementation, yes Edit: as you can see I don't use zsh anymore so this just the plain installation with nothing else in it Edit 2: there's also the thing of the passthrough escape code. For some reason is not being processed |
Yes I'm seeing virtual artifacts. Not sure if that's visible with asciinema. You can try on your side to replicate, open a new terminal session with the screen cleared (the term emulator not in full-screen), open tv --height 20, then horizontally expand. The lines above the prompt get mangled. If you expand vertically (expand) works ok from what I've seen. Edit: I'm using Wezterm nightly |
|
There's also a bug in the zsh script where leaving tv without selecting anything still introduces an empty completion item |
interesting, for in zsh, I don't get the neither the newlines (not even close to the bottom edge) nor the empty selection television.mp4 |
|
Ah okay, same here, nevermind might have gotten mixed up 👍🏻 So in the current state of things I believe everything is working as intended right? The only minor thing left to do being to figure out how to keep the current prompt when using |
|
@alexpasmantier pushed some tweaks, seem to work on my side in all conditions, can you please check |
|
@lalvarezt works perfectly on my side 🎉 (except for the fact that tv overwrites the prompt which isn't the best UX) Screencast.From.2025-07-06.16-03-02.mp4 |
Ah, yes. Since I use a two line prompt I didn't think too much about it. I'll have a look later |
|
Let's merge this then, good job that was a tough one 👍🏻 |


solves #586