feat(text): add Line Filter tool#74
Open
punch-github wants to merge 2 commits into
Open
Conversation
Adds a new Text tool that filters lines from arbitrary input using one of three modes: plain text, whitespace-separated keywords (any-of match), or .NET regular expressions. Toggles for case sensitivity and inverted match (exclude matching lines). Live preview of filtered output, summary of matched/total line counts, and yellow highlights of matched occurrences within the input pane. Configuration row stays pinned at the top so the pattern remains visible while the output is extended.
Author
|
This PR addresses the issue DevToys-app/DevToys#1676 |
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.
Summary
Adds a new Line Filter tool to the Text group. Given a block of text, it keeps (or excludes) lines that match a pattern — useful for grep-style filtering of logs, CSVs, configs, etc.
Features
Matched X of Y linesScreenshot
Files added
src/DevToys.Tools/Tools/Text/LineFilter/LineFilterGuiTool.cssrc/DevToys.Tools/Tools/Text/LineFilter/LineFilter.resxsrc/DevToys.Tools/Tools/Text/LineFilter/LineFilter.Designer.csdocs/screenshots/line-filter-keywords.pngNotes for reviewers
.resxis included; happy to follow up with the locale resx fan-out (or rely on the existing Crowdin pipeline) — please advise.FluentSystemIconsglyph\uF211. Happy to swap for a customDevToys-Tools-Iconsglyph if preferred.DevToys.Tools.csproj; only pre-existing warnings remain (none from new files).Testing
DevToys.Tools.dll: