graphviz.it icon indicating copy to clipboard operation
graphviz.it copied to clipboard

Center the viewport on a vertex of interest

Open sjackman opened this issue 9 years ago • 3 comments
trafficstars

I'm looking at a graph with 642 vertices. ⌘F highlights a vertex by name. Could it also center the viewport on that vertex? See for example http://graphviz.it/#/dcunTyOQ/2 and find vertex 447+.

sjackman avatar Mar 30 '16 20:03 sjackman

@sjackman It would not be possible when you search for abra and you have two nodes abracadabra and abracadibra. I would prefer adding key shortcut to navigate from code token to graph. It should minimize ambiguity.

mstefaniuk avatar Mar 31 '16 11:03 mstefaniuk

When you have multiple hits in a word processing document, the GUI displays the number of matches and two arrows to cycle through the matches.

sjackman avatar Mar 31 '16 15:03 sjackman

Shortcut ⌘F makes simple search on dot source and let it be like that. Navigation from source to graph is another thing. You can find source token by text (with ⌘F) or you can move cursor to it. Diagram focus should be another shortcut like in OO IDE navigation to interface definition or showing doc bubble. It should only work when text is a node or relation but not on attribute with color name.

mstefaniuk avatar Mar 31 '16 19:03 mstefaniuk