intellij-file-preview
intellij-file-preview copied to clipboard
File not open in preview when using Navigate > File
If I select a file using the mouse, from the project sidebar, the file is opened in preview mode as expected.
If I use a keyboard shortcut for Navigate > File, type the name of the file, and press Enter to select it, it is not opened in preview mode.
I've looked into the config settings and couldn't see anything that would be causing this?
Any help appreciated 👍
Short answer: Currently the preview is only supported for selected files in the project view.
Longer answer: I am currently overhauling the coding how the preview is handled to be able to support previewing files opened from other contexts than project view.
However, there are several challenges and restrictions as well as somewhat contradicting concepts and requirements. Opening the result of a concrete search as a preview is one of the requests I consider critical and not suitable for mostly all use cases, especially without having a proper way of making the preview tab a default tab (which is done in e.g. VSCode by double-clicking the tab title - but this interaction is already used differently by IntelliJ).