intellij-file-preview icon indicating copy to clipboard operation
intellij-file-preview copied to clipboard

Double-click preview tab to make it permanent

Open winstliu opened this issue 5 years ago • 4 comments

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!

winstliu avatar Apr 22 '20 03:04 winstliu

If you double click on the file, it already make it permanent. Double click on the tab close Project tab.

Malkom avatar Apr 23 '20 08:04 Malkom

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.

winstliu avatar Apr 24 '20 04:04 winstliu

@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.

SeeSharpSoft avatar Apr 26 '20 15:04 SeeSharpSoft

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).

johnmee avatar Oct 01 '21 01:10 johnmee