asciidoctor-intellij-plugin
asciidoctor-intellij-plugin copied to clipboard
Allow zoom change per-file tab
Why the new feature should be added
I use many split windows spread over 3 monitors with different resolution/dpi (native macbook pro, external big 4K monitor, external smaller 1080p monitor)
I'm editing a main document part, but like to have other parts visible, maybe with a smaller zoom factor so I can fit a couple of vertical splits.
Instead of having a global Zoom factor in the plugin's preferences, it would be preferable that each tab has its own zoom factor (maybe when first opening the file, the value can be taken from the global one).
At least there could be a couple of +/- zoom buttons that work in 10% increments to quickly change.
IntelliJ supports different zoom (font sizes) for each editor tab and it's nice to have that flexibility, especially when working on large screens with many splits.
How the new feature should work
If I click on the + button, the zoom factor will increase by x amount. Similarly for the - button but decreasing zoom factor.
Of course, it should work flawlessly and with no surprises from a UX standpoint :-)
There is a feature for the preview.
- place your mouse over the preview
- press Ctrl and the roll the mouse wheel to zoom
Please let me know if this solves your situation.
Interesting.. it kinda works, but:
- it works on some tabs and not others (which just scroll). It seems that for the ones that weren't working, if I go to another window and come back, it works again.
- I'm on a mac, and Ctrl-scroll was mapped to "full screen zoom" (operating system zoom for accessibility). I had to disable the feature in order to try what you suggested.
I tried to look in the IDEA preferences if the JCEF Browser zoom could be mapped to anything else but couldn't find a keymap entry for it (or don't know what to look for). Can it be remapped to a different gesture?
At the moment there is no hot-key, and the gesture can't be changed.
When you want to see the behavior on a browser on Mac OS, what gesture would you use to zoom in? If there is a different gesture on Mac and Windows, I might need to teach it another gesture.
Regarding the hot key: do you have a keyboard shortcut in mind?
When I'm on a normal browser and want to increase/decrease the zoom level I use Cmd+= and Cmd+- (substitute Ctrl for Cmd in Windows/Linux). This has been more or less standard on English keyboards for at least 15 years.
When I'm on IntelliJ IDEA, I have those same keystrokes mapped to the editor font size (I don't remember if it's standard or default keymapping).
When I'm using the AsciiDoc plugin with split view (JFCE browser view on the left, text editor on the right), those shortcuts work only for the editor part.
One school of thought would say that you could zoom both (view + editor) together, but I'm not too sure about that. I think I usually zoom the editor font size if I'm closer or farther to the screen (I don't have too great of an eyesight) but would like the JFCE view to remain unchanged (just as a general view of how the document is coming along)
So, your trick of Ctrl-mousewheel works almost well enough, except I had to remap the macOS gesture (the one that does full-screen zooming in for people with accessibility problems). I changed the global macOS gesture to Opt+wheel and that's it. I don't really use it that often.
So I say that for my particular case I have "solved" my needs. But still it would be cool to have something more explicit and/or configurable.
Just to clarify a little more. When I change font/zoom sizes of editor windows, it's not just because I'm shortsighted and want to see better. I tend to use lots of screens and windows layed out in specific ways, where the relative sizes of windows, often side by side, is important to me to keep a mental map of what I'm doing. In the case of asciidoc editing I may be editing a particular file, and the most important thing is the raw text itself, but I want to keep the rendered view on the side plus one or two other editing windows from which I'm reading, comparing, copying etc. but I don't need/want them to all be at the same zoom level.
It's my very particular way of working and your mileage may vary
I hope I explained this well :-)