Bug 333401

Summary: Bookmark information gets lost when another line is moved across bookmarked line
Product: [Frameworks and Libraries] frameworks-ktexteditor Reporter: Thomas Murach <asiasuppenesser>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: christoph, pify
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Thomas Murach 2014-04-14 08:53:42 UTC
If you have a bookmarked line (say, line 2) and try to move the next line (line 3) to line 2 using keyboard shortcuts (default: ctrl+shift+up), the previously bookmarked line (now line 3) looses it's highlighting.

I actually thought about fixing this myself, but found that a js file would have to be adapted, and the js API doesn't provide access to bookmark information as far as I can see...

Reproducible: Always
Comment 1 Dominik Haumann 2014-04-14 19:39:45 UTC
Right, it's not properly possible right now from js...

There are two ways fixing this: Implement this feature in C++ and call from a script, or expose the bookmark API to the scripting interface.
Comment 2 Thomas Murach 2014-04-14 23:46:14 UTC
I thought about these options as well, but at least for me this is out of scope, because I don't know anything about the scripting interface or calling c++ functionality from js or js as such. Sorry.
Comment 3 pify 2021-02-16 20:14:17 UTC
This problem is still present (Kate 20.12.2, KDE Frameworks 5.78.0).

(Does the status of the ticket have to be set to CONFIRMED?)
Comment 4 Christoph Cullmann 2021-02-16 20:17:33 UTC
We can set it to confirmed.
But at the moment nobody is working on this I am afraid, independent on this setting.