Skip to content
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

Add support for scroll bar 'always' setting #14047

Merged
5 commits merged into from
Sep 21, 2022

Conversation

sotteson1
Copy link
Contributor

@sotteson1 sotteson1 commented Sep 20, 2022

This fixes #3454 by adding support for an "always" mode for the scroll bar.

This change uses a custom VisualStateManager to keep the scroll bar from collapsing if the profile is using the 'always' setting.

Validation Steps Performed

Tried updating settings.json directly and using the UI and making sure the scroll bar behaves as expected.

Closes #3454

@ghost ghost added Area-Settings Issues related to settings and customizability, for console or terminal Area-TerminalControl Issues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.) Issue-Task It's a feature request, but it doesn't really need a major design. Product-Terminal The new Windows Terminal. labels Sep 20, 2022
src/cascadia/TerminalControl/TermControl.cpp Outdated Show resolved Hide resolved
@DHowett
Copy link
Member

DHowett commented Sep 20, 2022

HECK yeah! I'm so excited to get into this.

Copy link
Member

@DHowett DHowett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, you made this look very straightforward. Seriously, thank you. Couldn't've asked for more. 😄

{
for (auto foundState : group.States())
{
if (foundState.Name() == L"ExpandedWithoutAnimation")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is for safety's sake, right? So GoToStateCore doesn't blow up if this state doesn't exist, and so we fall back to the default behavior in case of the same?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right.

src/cascadia/TerminalControl/TermControl.cpp Outdated Show resolved Hide resolved
@DHowett
Copy link
Member

DHowett commented Sep 20, 2022

@msftbot merge this in 24 hours

@ghost ghost added the AutoMerge Marked for automatic merge by the bot when requirements are met label Sep 20, 2022
@ghost
Copy link

ghost commented Sep 20, 2022

Hello @DHowett!

Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:

  • I won't merge this pull request until after the UTC date Wed, 21 Sep 2022 21:37:46 GMT, which is in 1 day

If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you".

@ghost ghost removed the AutoMerge Marked for automatic merge by the bot when requirements are met label Sep 20, 2022
@DHowett
Copy link
Member

DHowett commented Sep 20, 2022

@msftbot merge this in 5 minutes

@ghost ghost added the AutoMerge Marked for automatic merge by the bot when requirements are met label Sep 20, 2022
@ghost
Copy link

ghost commented Sep 20, 2022

Hello @DHowett!

Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:

  • I won't merge this pull request until after the UTC date Tue, 20 Sep 2022 21:59:34 GMT, which is in 5 minutes

If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you".

@ghost ghost merged commit b3c9f01 into microsoft:main Sep 21, 2022
@sotteson1 sotteson1 deleted the add-scrollbar-always branch September 21, 2022 18:45
@zadjii-msft zadjii-msft mentioned this pull request Nov 21, 2022
@volviq
Copy link

volviq commented Dec 13, 2022

I cannot see this feature in the release of https://github.com/microsoft/terminal/releases/tag/v1.15.2874.0 - I tried a Windows 10 Build - the "always" setting is not yet supported. How can I identify in which Release this change will be integrated? Somehow a PR which was merged after this is included in the Changelog of the Release.

@zadjii-msft
Copy link
Member

@volviq 1.15 is our current "stable" build, so we'll frequently backport changes to that release for bugfixes and reliability's sake.

This feature is going to be released in 1.17. A helpful msftbot will come through and post here when that release is available, and include the official version number.

@volviq
Copy link

volviq commented Dec 13, 2022

Thanks for the quick reply. Do you have nightly builds? #1738 indicates not. Any easy way to get this feature without building myself?

@zadjii-msft
Copy link
Member

Do you have nightly builds?

Nope. It's something we discussed as a team meeting just this week, but it'll require a while to set up. Gotta figure out hosting pipelines, etc. Probably not something that we'll get to before 1.17 comes out next month.

@ghost
Copy link

ghost commented Jan 24, 2023

🎉Windows Terminal Preview v1.17.1023 has been released which incorporates this pull request.:tada:

Handy links:

@ghost ghost mentioned this pull request Jan 24, 2023
@zadjii-msft zadjii-msft mentioned this pull request Mar 8, 2023
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Settings Issues related to settings and customizability, for console or terminal Area-TerminalControl Issues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.) AutoMerge Marked for automatic merge by the bot when requirements are met Issue-Task It's a feature request, but it doesn't really need a major design. Product-Terminal The new Windows Terminal.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scrollbar too slow to show, grab
5 participants