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
Feature Request - Text Filtering #1191
Comments
For such (minor) usage, I prefer creating a script rather than adding a new feature to CotEditor itself. |
Select the document and then under the Find menu select I am doing it right now for some files |
I think the previous suggestion was probably the right way to go with this.
The documentation for scripting plugins was not super clear to me at first.
Since I can use python, it is easy to pull the document text into a buffer,
popup a search window, search the buffer, and replace the document text
with matching lines. Then when I close out, the original buffer is restored
to the document.
…On Wed, Nov 17, 2021 at 8:05 PM lolbat ***@***.***> wrote:
Select the document and then under the Find menu select Select All Find
Matches
I am doing it right now for some files
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1191 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUESHLCWPGIPKF5XGRGZ7SLUMRNQNANCNFSM47XITHFQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
TextMate has solved this by allowing users to just |
@foss- CotEditor already has the “Select All Matches” in the Find menu. The command has no keyboard shortcut by default, but you can assign any key combination in Key Bindings settings. |
Hm, this seems to behave differently than TextMate. In a log after pressing Were you refering to menubar > Find > Select all Find Matches? When I do that, all matches are selected in CotEditor. But as expected only that term is copied when I copy that to a new file, so that is not helpful. Is there a way to copy all lines with a matching search term? |
@foss-
And now I understand what you suggest. I miss the words "the search results". And, I think it's not a bad idea. Let me think if I can easily implement it. |
Should this be in Version 4.6.0-beta.3 (585) already? |
Not yet. I'll release the stable version of 4.6.0 next week. |
Verified in Version 4.6.0-rc (587) |
@foss- It's my pleasure. Thank you for your quick check and feedback. |
One of my primary uses for a text editor is viewing logs. Often I'll need to correlate non-consecutive lines based on something like a transaction ID. I'd like to be able to completely hide any lines that do not match a given string. This is ALMOST implemented when I do a search and FIND ALL, but the lines in that little window are truncated.
The text was updated successfully, but these errors were encountered: