Thank you for reporting this issue. However, this appears to be a misunderstanding of how the Comments pane works rather than a bug with the search functionality.
The Facts:
The "Key:" field you see in the Comments pane is automatically populated from the entry ID, not from an actual comment
Actual comments are displayed with the prefix "Comment: " when they exist
When there is no comment (NULL value), no "Comment:" field is shown, which means what you're seeing as "Key: test_string =" is the entry ID, not a comment
Why "In comments" search doesn't match:
The search function is working correctly. It searches for text within actual comment content, not within the automatically generated Key/ID fields. Since "test_string" appears in the Key field (which is metadata) and not in an actual comment, the "In comments" search correctly returns no results.
Resolution:
This is working as intended. The Comments pane displays various metadata fields (ID, Path, Translation) along with actual comments when present. The search "In comments" functionality specifically targets comment content, not metadata fields.
Milestone:
Moving to 6.1 for potential UI improvement to make the distinction between metadata and actual comments clearer to users.
Recommendation:
Consider adding clearer visual separation or labeling in the Comments pane to help users distinguish between auto-generated metadata fields and actual comment content.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It is not a misunderstanding on how the comments pane works but a mislabelling of the pane. If it contains metadata that is not "comments" it should not be called "comments".
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Would you mind telling me how to find that information myself so that I don’t depend on you for it?
Thank you for the log reference. Ok so we have a UI label that’s not been relevant for 14 years... 😅
That’s obviously an issue. We can’t label the "Comment" pane that way if it also contains stuff that’s not comment. But we can’t have a "Search in comments" if comments are not properly identified and made available.
So, it’s not the pane label that is a problem, but the pane contents. We need to think about that.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you for reporting this issue. However, this appears to be a misunderstanding of how the Comments pane works rather than a bug with the search functionality.
The Facts:
Why "In comments" search doesn't match:
The search function is working correctly. It searches for text within actual comment content, not within the automatically generated Key/ID fields. Since "test_string" appears in the Key field (which is metadata) and not in an actual comment, the "In comments" search correctly returns no results.
Resolution:
This is working as intended. The Comments pane displays various metadata fields (ID, Path, Translation) along with actual comments when present. The search "In comments" functionality specifically targets comment content, not metadata fields.
Milestone:
Moving to 6.1 for potential UI improvement to make the distinction between metadata and actual comments clearer to users.
Recommendation:
Consider adding clearer visual separation or labeling in the Comments pane to help users distinguish between auto-generated metadata fields and actual comment content.
It is not a misunderstanding on how the
commentspane works but a mislabelling of the pane. If it contains metadata that is not "comments" it should not be called "comments".You get good another view from UI/UX.
You're welcome to contribute this improvement! Please feel free to:
This would be a valuable contribution to improve the user interface clarity. Looking forward to your PR!
Do you agree with my position ?
Another solution would be to not put things that are not comments in the pane.
Did the pane contain metadata that was not comments from the beginning? I am surprised.
(I know how to create a PR. I’ll do that when we reach a conclusion.)
Alex Buloichik had changed the comments pane to show id and path in addition to comment in 12/10/2011 8:55PM 14 years ago.
A commit was "Full entry info(id,path,comment) in the comment pane"
Here is a quote from the version 2.5.0 Update 5 release changes.
Thank you Hiroshi.
That’s obviously an issue. We can’t label the "Comment" pane that way if it also contains stuff that’s not comment. But we can’t have a "Search in comments" if comments are not properly identified and made available.
So, it’s not the pane label that is a problem, but the pane contents. We need to think about that.
Current OmegaT version 6.0 shows ID in Segment Properties pane.
The Segment Properties pane had been added by Aaron in 2016, and released as version 4.0.0
https://sourceforge.net/p/omegat/feature-requests/1198/
https://github.com/omegat-org/omegat/commit/a1075f7bd9070514c2355476c1305c8020ef8e12
Before that, in version 3.x age, ID and Path are only on Comments pane.
I think we can remove the feature that Comments pane shows ID and Path.
Good idea. But we can’t remove a feature, so we need to also have the Path in Segment properties.
Does the segment properties pane have a bug not to show Path?
org.omegat.gui.properties.SegmentPropertiesArea.java#334 looks like"FILE", "ID", "PATH" seems a default entry in the pane.
There are no problems. I misunderstood what you wrote above.
Ticket moved from /p/omegat/bugs/1044/
In search side,
o.o.c.s.Searcher#checkEntryhas a signatureThat does not have a
SourceTextEntry.key, that is shown as "Key:" in comment pane.We have an option to add more checkbox "in source ID" in search window and extend the method to search
SourceTextEntry#getKey()values.Is this related or same as https://sourceforge.net/p/omegat/bugs/1018/ ?
Is this issue related or same as here? https://sourceforge.net/p/omegat/bugs/968/
yes. It does looks like related issues.