Bug 438094 - Search result doesn't use the space available
Summary: Search result doesn't use the space available
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: search (show other bugs)
Version: 21.04.0
Platform: Manjaro Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-04 20:57 UTC by ManickaP
Modified: 2022-01-10 21:24 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Serach and Replace results (114.39 KB, image/png)
2021-06-04 20:57 UTC, ManickaP
Details

Note You need to log in before you can comment on or make changes to this bug.
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