Bug 438094

Summary: Search result doesn't use the space available
Product: [Applications] kate Reporter: ManickaP <mana.pichova>
Component: searchAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version First Reported In: 21.04.0   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Serach and Replace results

Description ManickaP 2021-06-04 20:57:25 UTC
Created attachment 139004 [details]
Serach and Replace results

SUMMARY
The search results hides information about the found line under ellipsis (...) even though there's plenty of space on the screen to show more.


STEPS TO REPRODUCE
1. Open a file with longish lines
2. Search for a term in "Search and Replace"

OBSERVED RESULT
The shown result lines use ellipsis and shorten the text too much.

EXPECTED RESULT
Use the space that's available on the screen.

The problem is captured in attached screen shot.
Comment 1 Bug Janitor Service 2022-01-10 14:53:18 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/kate/-/merge_requests/552
Comment 2 Christoph Cullmann 2022-01-10 21:24:52 UTC
Git commit f39ee9991a8ba86a3302c6db5db040b8390250b3 by Christoph Cullmann, on behalf of Waqar Ahmed.
Committed on 10/01/2022 at 21:20.
Pushed by cullmann into branch 'master'.

Search: Utilize context lengths more efficiently

Sometimes we have a lot of extra space available that we can use because
pre or post context length is small. In such cases, if one is smaller
increase the other.

M  +39   -0    addons/search/MatchModel.h
M  +2    -2    addons/search/SearchDiskFiles.cpp
M  +2    -2    addons/search/search_open_files.cpp

https://invent.kde.org/utilities/kate/commit/f39ee9991a8ba86a3302c6db5db040b8390250b3