When a file opened in kate is modified externally, kate allows to generate a diff of the change, and this works very well, the problem is that the diffs are displayed in the list of recently opened files.
Now imagine doing this several times a day, the history is polluted with many unnecessary files that don't even exist anymore.
STEPS TO REPRODUCE
1. Open or create a file in kate
2. Modify it externally
3. Go back to kate and create a diff of the modification
The temporary file will now be in the history.
If this file were permanent, it would make sense to have it in that list, but it seems to me that as soon as the tab in which it is open is closed, the file is deleted. So it makes no sense to list it in the history and create an unnecessary distraction.
Operating System: Arch Linux
KDE Plasma Version: 5.21.4
KDE Frameworks Version: 5.81.0
Qt Version: 5.15.2
Kernel Version: 5.11.16-zen1-1-zen
OS Type: 64-bit
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-4440 CPU @ 3.10GHz
Memory: 4 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 4600
IIRC this is up to kate to mark them accordingly.
I do reproduce it, you end up with *.diff files in your recent files menu.
Those diff files seem to be written to ~, I would expect them to be in /tmp .
Relevant commit :
A possibly relevant merge request was started @ https://invent.kde.org/utilities/kate/-/merge_requests/395
wow, that was fast.
thank you so much!
Git commit edefa27760adc151d400c932ed88d5d942571080 by Christoph Cullmann, on behalf of Méven Car.
Committed on 13/05/2021 at 11:42.
Pushed by cullmann into branch 'master'.
Prevent storing diff files in recent files history
M +3 -0 kate/katemainwindow.cpp
M +1 -5 kate/katemwmodonhddialog.cpp
M +3 -0 kate/katemwmodonhddialog.h
M +7 -4 kate/kateviewmanager.cpp