intellij-file-preview
intellij-file-preview copied to clipboard
Double-click preview tab to make it permanent
Thank you for this! Has made my life much more pleasant because I'm just so used to opening up preview tabs in other editors.
My only suggestion thus far is adding a feature to double-click the preview tab to make it permanent. Atom & VSCode (the two other editors I use the most frequently) both have this feature, and I often find myself trying to do the same thing here :).
Thanks again!
If you double click on the file, it already make it permanent. Double click on the tab close Project tab.
I'm aware of that, but sometimes I don't know when I'm opening the file for the first time whether I want it to be permanent or not. That's when double-clicking the tab itself comes in handy.
@50Wliu Thanks for the feedback.
Unfortunately double-click on editor-tab is already associated with some kind of "fullscreen" in IntelliJ. I need to investigate what it needs to override this behavior, or how to implement any kind of editor-tab interaction handler.
It really is a hassle having to go back into the Project pane to find it and reopen 'properly' :-/
I keep opening the context menu, by right-click on the tab filename at top, and hoping to find an 'open' option which makes it permanent. Can you add to that context menu?
Another option: can you sustain the highlighted state of the file in the Project pane even when the cursor focus is in the editor pane?
Typically I click into the editor pane of the previewed file, or look at another tab and come back, thus losing sight of where the file was in the folder structure. Thus I have to mentally engage to find it again, just so I can click on it to 'open' the file which I already have 'open' (er, previewed).