Displaying Bookmarks in the Godot UI

Godot Version

v4.6.2.stable.official [71f334935]

Question

Hi everyone, quickly just wanted to know is there a way in the Godot UI to show all the bookmarks in the currently edited file or is it only available from the editor menu.

If not would it be possible to display a list of bookmarks using a tool script somehow and navigate to them if clicked on. I have no idea how or where to start with such a @tool. So if possible a little guidance would be welcome.. Thanks

Bookmarks are stored in script’s CodeEdit control. You can get currently opened one via EditorInterface.get_script_editor().get_current_editor().get_base_editor()

From there, call CodeEdit::get_bookmarked_lines()