How to access the Editor from the VimEditor #1032
Unanswered
Julien Phalip (jphalip)
asked this question in
Q&A
Replies: 3 comments 1 reply
|
Hi! Can you try using |
0 replies
|
Hi Alex Plãte (@AlexPl292) -- There doesn't seem to be an |
0 replies
|
Here's a workaround I've come up with: Window mostRecentFocusedWindow =
WindowManager.getInstance().getMostRecentFocusedWindow();
if (!(mostRecentFocusedWindow instanceof IdeFrame activeFrame)) return;
Editor editor = FileEditorManager.getInstance(activeFrame.getProject()).getSelectedTextEditor();It doesn't feel ideal though. It would be great if the |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I'm writing an extension for IdeaVim. My extension receives a
IJVimEditorobject which implements theVimEditorinterface. I'd like to access its linkedcom.intellij.openapi.editor.Editorobject. The issue is that, while theIJVimEditorclass has agetEditor()method, the class is annotated as internal and therefore I cannot use it directly. TheVimEditorinterface is public but it does not have agetEditor()method.Is there a workaround that I could use to access the
Editorobject?Thank you.
All reactions