Multiple Path Copy and Paste into Kate Replaces # with %23

Operating System: CachyOS Linux
KDE Plasma Version: 6.7.4
KDE Frameworks Version: 6.29.0
Qt Version: 6.11.2
Kernel Version: 7.2.0-1-cachyos (64-bit)
Graphics Platform: Wayland

Copying multiple paths in Dolphin and then pasting those paths into a text file currently causes # in path names to be replaced with %23.

I believe this is a bug.

Interestingly, it seems to be a problem only when pasting into Kate. If I try copy-pasting into my terminal (directly onto the shell prompt or into the Helix editor; on Konsole), it correctly shows hashes.

The actual clipboard content, per wl-paste:

text/uri-list
file:///home/bharadwaj/lab/hashtopercentcopyfilenames/File%20%232.txt
file:///home/bharadwaj/lab/hashtopercentcopyfilenames/File%20%231.txt



application/x-kde4-urilist
file:///home/bharadwaj/lab/hashtopercentcopyfilenames/File%20%232.txt
file:///home/bharadwaj/lab/hashtopercentcopyfilenames/File%20%231.txt


application/vnd.portal.filetransfer
AAsa7etsWfTKSbBt0C20zQ

application/x-kde-source-id
:1.4607

The same thing happens if I try other GUI textboxes (like the search bar in System Settings or the location bar in Dolphin).

Probably Konsole translates file:// URIs to unescaped file paths. But I can’t really say that not doing that is really incorrect behavior either…

@bharadwaj-raju yes, copying from Dolphin into Kate results in # being replaced with %23 but my white space is not replaced with %20. Also, pasting paths into krunner are pasted as one line without any white space separator between the paths.

My paste into Krunner ends up like this

file:///File %231.txtfile:///File %232.txt