How should I create click to jump to parts of a file in the scrollbar. I have limited space, so I would like to overlay this with the scrollbar.
I was thinking of something like
download bmml source – Wireframes created with Balsamiq Mockups
It would go in a code editor for relative beginners. The sections are parts of the code. For instance:
E.flagClicked: # section start
L.think("ladida")
...
E.keyPressed("space"): # section start
M.move(10)
L.say("Hi")
...
EDIT: I know how to implement, I want to know if my mockup makes sense UX wise and how I could improve the UX to make it easier for new users to learn that they can click and jump.