I’d like to sort open editor tabs. Which API options do I have for creating splits and moving open editor tabs between splits?
I am afraid we do not have such a public API at the moment. You could create a YT issue and request that we promote com.intellij.openapi.fileEditor.impl.SplitterService
API but it will take a while.
For reference: https://youtrack.jetbrains.com/issue/IJPL-200433/Make-SplitterService-available-for-plugins
Hello! Actually, we have an API for opening files in particular split windows and creating new splits.
Please check the example of moving the file to the new split window: com.intellij.ide.actions.SplitAction
APIs:
com.intellij.openapi.fileEditor.impl.EditorWindow
- the container for files (editor tabs)
com.intellij.openapi.fileEditor.impl.EditorsSplitters
- the container for Editor Windows (splits)
com.intellij.openapi.fileEditor.ex.FileEditorManagerEx
- service where you can get the currently selected EditorSplitters
and do many other things.