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 search history hint #12967

Merged
merged 2 commits into from
Nov 13, 2023
Merged

Conversation

KR155E
Copy link
Contributor

@KR155E KR155E commented Oct 2, 2023

What it does

This PR aligns the Search and Replace textareas in the Search In Workspace widget with VSCode by adding the hint "(⇅ for history)" to the placeholder labels when the respective textarea has focus.

In addition, because the up and down arrows symbol would look off otherwise, this PR also adds a OS specific class to the body ("mac", "windows" or "linux") to set the --theia-ui-font-family variable accordingly. That behavior, as well as the CSS, was taken over from VSCode.

How to test

Open the Search In Workspace widget and click into the Search and Replace textareas. Make sure they're empty so you can see the dynamic placeholders.

Follow-ups

Review checklist

Reminder for reviewers

Signed-off-by: Christian Radke <[email protected]>
Signed-off-by: Christian Radke <[email protected]>
Copy link
Contributor

@tortmayr tortmayr left a comment

Choose a reason for hiding this comment

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

Change looks good to me.
Everything works as expected.
I can only test this under Linux and Windows. @JonasHelming Should someone confirm that the arrow icons works as expected under Mac or do we just merge this as is?

@JonasHelming
Copy link
Contributor

@tortmayr I asked Christian to have a look

@cdamus
Copy link
Contributor

cdamus commented Nov 13, 2023

@tortmayr @JonasHelming I can confirm that it looks as intended on MacOS.

@tortmayr tortmayr merged commit 7ad7f22 into eclipse-theia:master Nov 13, 2023
13 checks passed
@vince-fugnitto vince-fugnitto added this to the 1.44.0 milestone Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants