laike9m / Cyberbrain

Python debugging, redefined.
http://bit.ly/cyberbrain-features
MIT License
2.51k stars 159 forks source link

Can we freeze linenos and header position? #142

Open victorjzsun opened 2 years ago

victorjzsun commented 2 years ago

If the trace graph gets really large, having linenos and header frozen to left and top of window might help.

laike9m commented 2 years ago

Could you clarify what "freeze" means, I assume you mean like what IDEs do?

victorjzsun commented 2 years ago

Yeah like keep them always visible on the side/top

laike9m commented 2 years ago

I'm not against it, but does it mean we don't allow users to zoom in on a graph? If we can still keep all the capabilities then this feels like a good move.

I expect there will be some difficulties though: the line numbers are drawn using vis-network (as with all nodes), and thus is constrained by the library too.

victorjzsun commented 2 years ago

I’d expect the graph to still be able to zoom in, it’s just when I do now, i lose the line numbers off the side of the window. Yeah it might be tough but would be great if doable

laike9m commented 2 years ago

I see. You might want to put two screenshots in the main thread to show the issue.

victorjzsun commented 2 years ago

Something like this:

Before (zoomed out):

Screen Shot 2021-10-16 at 3 12 21 PM

zoomed in:

Screen Shot 2021-10-16 at 3 12 21 PM

After freezing change:

Screen Shot 2021-10-16 at 3 12 21 PM