Search and replace help
Alexander Neundorf
neundorf at kde.org
Tue May 25 23:05:47 BST 2021
On Dienstag, 25. Mai 2021 21:12:15 CEST Kåre Särs wrote:
> Hello Spiro,
>
> On tisdag 25 maj 2021 kl. 12:50:38 EEST S T wrote:
> > Hi,
> >
> > I have been looking through forums and mailing lists but couldn't find a
> > solution, so I am trying here. When using "search and replace" plugin it
> > used to output found files (text) with paths relative to projects folder.
> > Now, after a computer reboot it shows paths as absolute. It used to be:
> > 6.439 matches (6.439 checked) found in project Ticket_3080
> > (C:/Users/spiro/OneDrive - spiro/Ticket_handling/JIRAs/Ticket_3080/)
> > /Ticket_3080/Ticket_3080.txt: 34
> > /Ticket_3080/Ticket_3080.txt.bak: 34
> > /Ticket_3080/blade_00/main/configurationViewer/Overview.txt: 90
> > /Ticket_3080/blade_00/main/managedObject/mom-dump.txt: 90
> > ...
> > And now it looks like this:
> > 6.439 matches (6.439 checked) found in project Ticket_3080
> > (C:/Users/spiro/OneDrive - spiro/Ticket_handling/JIRAs/Ticket_3080/)
> > /C:/Users/spiro/OneDrive -
> > spiro/Ticket_handling/JIRAs/Ticket_3080/Ticket_3080.txt: 34
> > /C:/Users/spiro/OneDrive -
> > spiro/Ticket_handling/JIRAs/Ticket_3080/Ticket_3080.txt.bak: 34
> > /C:/Users/spiro/OneDrive -
> > spiro/Ticket_handling/JIRAs/Ticket_3080/blade_00/main/configurationViewer/
> > O
> > verview.txt: 90 /C:/Users/spiro/OneDrive -
> > spiro/Ticket_handling/JIRAs/Ticket_3080/blade_00/main/managedObject/mom-du
> > m
> > p.txt: 90 ...
> > In order to view the results, I need to stretch search and replace sidebar
> > to half the screen. It is the same for "project" search as well as "open
> > files", "current file" search.
>
> For Kate 21.04 the search plugin went through a reworking of how the results
> are gathered and displayed together with the speed optimization.
>
> The file path has indeed changed from relative to the project/search folder
> to absolute... I don't remember this being intentional, but I would like to
> hear opinions from the team: Should we go back to removing the common path?
Not quite sure, maybe it was me who removed the common part of the path from
the results a few years ago, to save horizontal space and avoid repeating the
same parent dir in every line.
So, unsurprisingly, I still prefer the shorter version.
Alex
More information about the KWrite-Devel
mailing list