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

feat: Prepopulate search window input with current text selection #4178

Merged

Conversation

kornes
Copy link
Contributor

@kornes kornes commented Nov 21, 2022

Pull request checklist:

  • CHANGELOG.md was updated, if applicable

Description

When SearchPopup is created, currently selected text (in origin split only) will be inserted to search input. Convenience known from browsers and text editors.
selectAll() is added, so in case user opens search with unwanted selection, they can start typing target phrase with no extra steps.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

src/widgets/helper/SearchPopup.cpp Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@Felanbird Felanbird left a comment

Choose a reason for hiding this comment

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

Functionality works as intended 👍
image

Co-authored-by: Felanbird <[email protected]>
@Felanbird Felanbird enabled auto-merge (squash) December 3, 2022 17:53
@Felanbird Felanbird merged commit 4fa214a into Chatterino:master Dec 3, 2022
@kornes kornes deleted the feat_selected-text-in-search-input branch December 3, 2022 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants