-
-
Notifications
You must be signed in to change notification settings - Fork 580
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) #2319
base: main
Are you sure you want to change the base?
Conversation
a5ce1f2
to
e7159ed
Compare
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
…is constructed as expected
229d5e9
to
d5cf9aa
Compare
Updated with a test - this turned out to be the hardest bit of the whole process, as the only sensible way I could see of testing a layout switch like this was to compare the output with However, this forced me to take the PR beyond the The downside is that I needed to add a new in-built theme called There is not much to put in the docs, but I have updated that PR too, so marking this ready-for-test. |
As a side-note, to make boldness a property the theming can control, it also adds |
This pull request has been mentioned on Atuin Community. There might be relevant details there: https://forum.atuin.sh/t/feedback-playing-with-inspector/218/6 |
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)(none)
theme to the theming to enable output testing without stylingadditional tests, although keen for input on how best to do theseone functional test, as a starting pointdocumentationminor doc changes only, as I am not sure there is much to sayWas stacked on #2357, which is now in
main
Checks