mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2026-05-01 02:50:39 +02:00
Compare commits
2 Commits
customized
...
customized
| Author | SHA1 | Date | |
|---|---|---|---|
|
4d8d1e9d17
|
|||
|
590ffc7fe4
|
@@ -20,7 +20,7 @@ ideaVersion=2026.1
|
||||
# Values for type: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#intellij-extension-type
|
||||
ideaType=IU
|
||||
instrumentPluginCode=true
|
||||
version=chylex-57
|
||||
version=chylex-58
|
||||
javaVersion=21
|
||||
remoteRobotVersion=0.11.23
|
||||
antlrVersion=4.10.1
|
||||
|
||||
@@ -17,6 +17,7 @@ import com.intellij.openapi.editor.Editor
|
||||
import com.intellij.openapi.editor.EditorKind
|
||||
import com.intellij.openapi.editor.ex.util.EditorUtil
|
||||
import com.intellij.openapi.fileEditor.ex.FileEditorManagerEx
|
||||
import com.intellij.openapi.ui.popup.util.PopupUtil
|
||||
import com.intellij.util.ui.table.JBTableRowEditor
|
||||
import com.maddyhome.idea.vim.VimPlugin
|
||||
import com.maddyhome.idea.vim.api.StringListOptionValue
|
||||
@@ -74,7 +75,9 @@ internal val Editor.isIdeaVimDisabledHere: Boolean
|
||||
* Also, we support IdeaVim in diff viewers.
|
||||
*/
|
||||
private fun Editor.isNotFileEditorExceptAllowed(): Boolean {
|
||||
if (EditorHelper.getVirtualFile(this)?.name?.contains("Dummy.txt") == true) return false
|
||||
if (EditorHelper.getVirtualFile(this)?.name?.contains("Dummy.txt") == true) {
|
||||
return PopupUtil.getPopupContainerFor(component) != null
|
||||
}
|
||||
if (EditorHelper.isDiffEditor(this)) return false
|
||||
return !EditorHelper.isFileEditor(this)
|
||||
}
|
||||
|
||||
@@ -335,6 +335,12 @@ object VimListenerManager {
|
||||
injector.editorGroup.editorDeinit(editor.vim)
|
||||
}
|
||||
}
|
||||
|
||||
ApplicationManager.getApplication().invokeLater {
|
||||
if (vimDisabled(editor)) {
|
||||
remove(editor)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun remove(editor: Editor) {
|
||||
|
||||
Reference in New Issue
Block a user