-
Notifications
You must be signed in to change notification settings - Fork 244
Conversation
…omplete up from bottom of screen
Would be nice to get some kind of "loading" spinner or progress bar after I submit a prompt. Currently there's no feedback after the user response to an input request for a while which makes me feel like it's hanging on something. This is mainly for when we have a really large context that takes a while to process. |
Oh yeah probably since I don't have those. Any idea on how to fix those?
We never render code blocks that aren't code edits; it would definitely be a nice feature though. I'll look into it; the only problem I can think of right now is that we're streaming the response, so it might behave weirdly (like it starts out streaming and you see the ```tsx up until it finishes the block, and then it finally renders everything). I'll test it out but I think I agree that it'll be better than what it currently is. |
I think you're right and I'll look into it; my textual is always full screen though; why is yours not? Is it because you're using tmux? Either way I'll try and figure this out. |
@waydegg https://textual.textualize.io/FAQ/#why-doesnt-textual-look-good-on-macos |
|
Yeah full screen looks great, and yup using Tmux so it looks a bit off. It looks like there might be a way to do this with Rich: https://rich.readthedocs.io/en/stable/syntax.html?highlight=terminal%20theme#background-color The creator of Textual just opened an issue a couple days ago talking about this actually: Textualize/textual#4119 |
A couple users mentioned wanting this in the Discord server too. Worth adding later imo |
Just finished looking into all of your comments;
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me! I think the following would be nice but not necessary to ship:
- x buttons in context pane to remove files.
- A microphone emoji in the entry box to trigger
/talk
- The ability to change theme midsession with
/config
. The UX here is strange because presumably users will almost never switch back and forth. I wonder if there should be a sticky/config
that saves it to the config or if some settings should be sticky and others not. - This pr breaks reverse search. It'd be nice to get that back.
I'll keep using it this morning and let you know if I notice anything.
Also not working for me on mac - tried lots of combinations, can't select/copy. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few small comments. My wish list would be:
- Loading Bar issue
- Copiable text
- Dark theme (wasn't working out-of-the-box for me but maybe I'm missing sth?)
position: int = 0 | ||
|
||
|
||
class PatchedDropdown(Dropdown): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small feature request - take it or leave it - I always forget that 'Tab' selects sth from the dropdown. Maybe the bottom line of the widget could say "(Press 'tab' to select)" or something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can't change the text size (since we're working in a terminal), so I don't think this would end up looking very good. Maybe a different key would be better than tab?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could it be Tab | Enter
?
This would be pretty difficult to do; I don't even know if it's possible. Right now I use the Tree textual widget and I looked at the docs and couldn't find anything that would do this. I'll make an issue though and I can look into it later, because I really do like this idea.
Would probably be easier, but I also think it would be good in another PR since I'm not entirely sure yet how I would do it. I'll put this in the same issue as the x buttons.
This would be pretty nice; the reason I disabled mid session change is because then we need something watching the config to see when it changes and alert the terminal app (not because it's actually difficult to switch the theme midsession). A sticky config would be nice but then the question is where we put the stored config; we have like 3 different config files. Not sure how to address this, but I'll make another issue for it.
I don't think this is the biggest deal and it would be very difficult to add (would have to program in our own reverse search).
I can't really test this without a mac; if somebody else could try to figure this out and fix it that would be great. Thanks! |
What problems were you having with it? Did you change a config file or run with --theme dark? |
Ah ya I used |
Adds textual
Pull Request Checklist