asciidoctor-intellij-plugin icon indicating copy to clipboard operation
asciidoctor-intellij-plugin copied to clipboard

Separate window (floating mode support) Preview pane

Open ge0ffrey opened this issue 7 years ago • 4 comments

I 'd like to see my asciidoc raw text on my left screen and my preview on my right screen. Currently everything is on 1 screen and there's simply not enough horizontal space to have these 2 panes comfortably next to each other.

The solution is to optionally allow floating the asciidoc preview pane.

The Preview pane should maybe be in a proper (nested?) dock, so it has all the features of normal IntelliJ docks, such as Floating Mode, Docked Mode, Windowed Mode, ...

ge0ffrey avatar Nov 30 '16 14:11 ge0ffrey

Nice idea! I wonder if you know an IntelliJ plugin that already does this?

I could then have at look that plugin's code to find about the APIs to use.

ahus1 avatar Dec 02 '16 14:12 ahus1

the android screen plugin does this, but I don't know of a simpler plugin that does it: http://4.bp.blogspot.com/-OA7USNhTawM/Uj8X_eoNHUI/AAAAAAAAANE/04KQPf-sVic/s1600/Screen+Shot+2013-09-22+at+16.57.49.png

ge0ffrey avatar Dec 02 '16 16:12 ge0ffrey

The option to have the preview in a separate window hasn't been implemented yet, there are now two other options around to help with this:

  • there is a horizontal preview split (available in the plugin's options)
  • the preview can be opened in a browser from the IDE (but it doesn't refresh automatically at the moment, only on user interaction)

Still, I leave this issue open so it can be revisited.

ahus1 avatar Oct 06 '19 19:10 ahus1

I revisited it again; I found that there is the option "Move Tab to New Window..." (there is even a hot-key for this).

The user can then move this to a second screen and switch it to preview-only. When editing in the original editor window, the preview will refresh. Still, this doesn't provide the full "dock-mode" feeling. One of the plugin that provides a full dock-mode is the plantuml plugin; I'll have a look at that.

image

ahus1 avatar Dec 31 '20 16:12 ahus1