Bug 403464

Summary: Keditbookmarks convert URL field
Product: [Applications] keditbookmarks Reporter: Peter <ergonomic.code>
Component: generalAssignee: Konqueror Bugs <konqueror-bugs-null>
Status: REPORTED ---    
Severity: wishlist CC: ergonomic.code
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Peter 2019-01-21 15:04:18 UTC
SUMMARY
Hi guys!
I use KDE Neon with the keditbookmarks 5.0 and konsole 12.18.1 packages installed.

And I have a little problem. Konsole allows you to save bookmarks using the keditbookmarks package. It was assumed that tabs only will be saved there. But you can also save commands, conveniently turning to them every time.

When creating and saving bookmarks in the keditbookmarks package via konsole, my commands are escaped.



STEPS TO REPRODUCE
I will give an example from the file ~/.local/share/konsole/bookmarks.xml:
- if you save a bookmark with a string (URL field)
    awk 'NR>=7&&NR<=12' ~/.bash_history | cat -n
- after saving, get
    <bookmark href="awk 'NR%3E=7&amp;&amp;NR%3C=12' ~/.bash_history %7C cat -n">
- at the same time, the description field remains readable if you access it through the bookmark editing package
    <desc>awk 'NR>=7&amp;&amp;NR&lt;=12' ~/.bash_history | cat -n</desc>



OBSERVED RESULT
The bash command is converted to a non-executable form. Because of the encoding of the string in the URL format.




EXPECTED RESULT
Keditbookmarks does not convert the URL field and works with it as a string.



SOFTWARE/OS VERSIONS
Windows: -
MacOS: -
Linux/KDE Plasma: KDE Neon 5.14
(available in About System)
KDE Plasma Version: 5.14.5
KDE Frameworks Version: 5.54.0
Qt Version: 5.11.2



ADDITIONAL INFORMATION
Can it be done so that the text entered in <bookmark href = ""> can be restored to its original form? Maybe you can tell me how to disable char escaping?

I understand that keditbookmarks was not designed for such tasks, but it would be very convenient.

Thanks for attention!



P.S. I apologize, the translation into English prepared through translate.google.