Skip to content

Comments

[Feature request] Copy Search results #224#596

Merged
dail8859 merged 4 commits intodail8859:masterfrom
pydavem:FR#224CopySearchResults
Jul 16, 2024
Merged

[Feature request] Copy Search results #224#596
dail8859 merged 4 commits intodail8859:masterfrom
pydavem:FR#224CopySearchResults

Conversation

@pydavem
Copy link
Contributor

@pydavem pydavem commented Jul 5, 2024

Adds a button to the Search Results dock to copy the contents to the clipboard

Adds a button to the Search Results dock to copy the contents to the clipboard
@pydavem pydavem marked this pull request as ready for review July 5, 2024 21:11
Copy link
Owner

@dail8859 dail8859 left a comment

Choose a reason for hiding this comment

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

Few minor changes for now. Haven't had a chance to compile/run/test these but it all seems relevant.

@dail8859
Copy link
Owner

dail8859 commented Jul 8, 2024

I'll be busy for the next week or so but will get back to this. Appreciate the PR!

button renamed in GUI, also changed from automatic connection to a connect.
@dail8859
Copy link
Owner

Visually the code changes look fine. Once I get a chance I'll compile the code and do some testing.

@dail8859
Copy link
Owner

I pushed some changes. I'm sure there's room for improvement, especially when compared to Notepad++'s implementation...but perfection is the enemy of progress.

I redid the button layout to make it a bit more extensible in the future if needed.

Also redid how it built the string...I believe that will minimize the number of QString allocations on the heap.

Also using \n didn't seem to have a negative impact so I'll leave it for now. I usually wait until there is an actual problem before assuming something needs fixed.

There's also one other small quirk I found with it but doubt anyone will ever find it...and the fix isn't obvious...so I'll leave it alone :)

If all looks good to you I'll merge this in.

@pydavem
Copy link
Contributor Author

pydavem commented Jul 16, 2024

Nice changes, looking good thanks!

@dail8859 dail8859 merged commit 9870e3f into dail8859:master Jul 16, 2024
@dail8859
Copy link
Owner

Thanks again for the PR!

matthewyang204 pushed a commit to matthewyang204/NotepadNext that referenced this pull request Dec 14, 2025
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.

2 participants