Results include the file name (as the name of the option suggests), or rather, more conveniently, the relative short path inside the /tm folder:
/auto/filename_good_to_see.tmx
-- This is a sample sentence.
-- Bla bla bla, blu blu blú.
.
Results include the full absolute file path from the root folder (i.e. /) of the operating system:
/home/pico/Sync/OmegaT/tickets/test-omt-projects/very/looooong/path/that/I/do/not/need/to/see/in/search/results/sample_project_omt/tm/auto/filename_good_to_see.tmx
-- This is a sample sentence.
-- Bla bla bla, blu blu blú.
.
The following screencast shows the problem: https://i.imgur.com/mrP5tRK.gif
The full absolute path is unnecessary (the user already knows where the project sits in the file structure) and it eats a lot of precious space.
If variables used in TM match display template apply here, probably this problem can be fixed easily replacing ${filePath} with ${fileShortPath}. Just a wild guess.
On the other hand, having ${fileNameOnly} would be inconvenient, because it's important for the translator to see where exactly inside the TM folder (from /tm/enforce, or /tm/auto, or /tm/penalty-XX, etc.) the match is coming from.
Does a patch attached give you an expected behavior?
It show me like
Last edit: Hiroshi Miura 2022-05-27
I can confirm patch attached to ticket 1098 fixes both issues (reported in tickets 1098 and 1099). Thanks a lot.
This looks like enhancement proposal rather than a defeat.
The fix is merged. [46b905]
Related
Commit: [46b905]
released
Here comes an update: this problem doesn't seem to happen (anymore) in file paths in search results (Search dialog) and in matches (Matches pane), however it still happens in the "Found in" dialog that appears to show location of hidden matches when they are identical to the one displayed. SHould this ticket be re-opened or shall I create a new one?
e.g.
