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