Make search result text selectable and copyable#1072
Open
saberoueslati wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Closes #825
This PR makes text inside Search Results rows selectable and copyable without changing the existing copy-all behavior. Individual result text can now be selected with the mouse and copied as plain text via
Ctrl+C,Edit > Copy, or the right-click context menu. The toolbar copy button still copies all search results.Changes
src/docks/SearchResultsDock.cppQTextEditfor individual search result rows so result text can be selected directly.CopyandCopy Selected Line.Copy Selected Lineto the tree row context menu so right-clicking the line-number cell also supports copying the full result line.src/docks/SearchResultsDock.hcopySelectedResultText()so the main window copy action can copy selected Search Results text when appropriate.src/dialogs/MainWindow.cppEdit > Copyto first copy selected Search Results text when a result-text selection exists, then fall back to the current editor copy behavior.Manual Testing
Ctrl+Ccopies only the selected result text as plain text.Edit > Copycopies selected result text even after opening the Edit menu.Copycopies selected text.Copy Selected Linecopies the full result line from the result text context menu.Copy Selected Lineis also available when right-clicking the line-number cell.Video of basic manual test below:
Screencast.from.2026-06-08.23-04-01.webm