AkshaySG14 / haystack-public

7 stars 0 forks source link

Toggle between canvas and regular editing #59

Open nefrob opened 2 weeks ago

nefrob commented 2 weeks ago

If possible support toggling between regular vscode windowed editing and the haystack canvas mode.

Regular editing navigation (ex. on definition inspection) feels depth-based whereas canvases are flat. Being able to toggle modes lets developers think about their "code space" differently when performing different actions.

For example, when writing code in "normal" editor mode, the developer wants to see the code graph for a given function. The canvas mode could be toggled and the dev can see the code nodes that call the function as canvas elements to the left and things that function calls to the right (and so on).

This integrates the best of both editor styles.

AkshaySG14 commented 2 weeks ago

This is somewhat tough to do right, but I think the idea is correct. I was thinking of making pinned editors behave like normal windowed editing e.g. go to definition either reuses the same definition or creates a new pinned editor/tab.