-
-
Notifications
You must be signed in to change notification settings - Fork 563
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
Ultracompact Mode for Inspector (was RfC: Ultracompact Mode) [stacked on #2357] #2319
base: main
Are you sure you want to change the base?
Conversation
a5ce1f2
to
e7159ed
Compare
@@ -1280,8 +1428,8 @@ mod tests { | |||
let no_preview = State::calc_preview_height( | |||
&settings_preview_auto, | |||
&results, | |||
0 as usize, | |||
0 as usize, | |||
0_usize, |
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.
Just noticing some of these came through from linting but are not related to the current PR - might be a rustfmt version/config difference, so shall I just revert in this PR?
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.
No, I think this is fine to include!
Fwiw just testing your changes but generally look good
Generally all good, thank you! Ultra-compact works nicely. However the inspector might need some adjusting. I run compact mode all the time (as do some others), and it will likely become the default in the future. In compact mode, the inspector looks like this regardless of size I think it would make sense to continue to show the stats/etc if the terminal is large enough, but I do really like the scrolling through history/session. Do you think you'd be able to split the inspector changes into a separate PR? Other than those commits, I'm happy to merge this as-is |
Yep, sure! Good point - thinking about your comment, I realise I haven't properly thought about that stylistically-compact vs limited-space difference, so could I suggest I do two new PRs, if that makes sense:
|
That sounds good to me! |
e7159ed
to
64869b3
Compare
I have split out #2357 as requested, which this PR is now stacked on. It has been updated to:
The intention (as above) would be to open a comment/forum-post to work out behaviour for a new PR for the inspector in (non-ultra-) compact mode, but this PR no longer has any change to the inspector except in ultracompact mode. |
64869b3
to
33c6f53
Compare
33c6f53
to
55f5da5
Compare
What does this PR do?
Adds an ultracompact mode for the inspector.
It also (see comments below):
compact
intocompactness
, an enum (to better standardize across inspector/interactive)TODO
Checks