mike-lischke / vscode-antlr4

ANTLR4 language support for Visual Studio Code
http://www.soft-gems.net
MIT License
422 stars 58 forks source link

Feature Request: Add better parse tree zoom support for pen tablets #309

Open johnholliday opened 1 week ago

johnholliday commented 1 week ago

The extension currently supports the ability to zoom the parse tree in and out using the mouse wheel, but this doesn't work if you're using a pen tablet or a stylus that do not have a mouse wheel equivalent. Using Ctrl+ or Ctrl- only zooms the window, not the diagram (see attached .mp4).

https://github.com/user-attachments/assets/45c26d9a-207e-45fa-bb04-fc9a2e3caa40

mike-lischke commented 1 week ago

I'm not sure this is possible, since VS Code always handles key commands first. And working with graphical content without a mouse being present is probably not going to work well. You cannot expand/collapse items, you cannot move the graph or zoom, and you cannot switch display options). Using only the keyboard is very difficult in this scenario.

johnholliday commented 1 week ago

I was thinking more along the lines of adding buttons at the top, like "- Zoom +" (similar to Node Size) that could be used instead of the wheel.