mirror of
https://github.com/chylex/IntelliJ-AceJump.git
synced 2025-05-18 19:34:02 +02:00
Update for IDEA 2024.2
This commit is contained in:
parent
59fbd4e19c
commit
a3a86cf447
@ -15,12 +15,15 @@ repositories {
|
|||||||
}
|
}
|
||||||
|
|
||||||
intellij {
|
intellij {
|
||||||
version.set("2024.1.4")
|
version.set("2024.2")
|
||||||
updateSinceUntilBuild.set(false)
|
updateSinceUntilBuild.set(false)
|
||||||
plugins.add("IdeaVIM:chylex-37")
|
|
||||||
|
plugins.add("IdeaVIM:chylex-40")
|
||||||
|
plugins.add("com.intellij.classic.ui:242.20224.159")
|
||||||
|
|
||||||
pluginsRepositories {
|
pluginsRepositories {
|
||||||
custom("https://intellij.chylex.com")
|
custom("https://intellij.chylex.com")
|
||||||
|
marketplace()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -33,7 +36,7 @@ dependencies {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tasks.patchPluginXml {
|
tasks.patchPluginXml {
|
||||||
sinceBuild.set("241")
|
sinceBuild.set("242")
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.buildSearchableOptions {
|
tasks.buildSearchableOptions {
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package org.acejump.action
|
package org.acejump.action
|
||||||
|
|
||||||
|
import com.intellij.openapi.actionSystem.ActionUpdateThread
|
||||||
import com.intellij.openapi.actionSystem.AnActionEvent
|
import com.intellij.openapi.actionSystem.AnActionEvent
|
||||||
import com.intellij.openapi.actionSystem.CommonDataKeys
|
import com.intellij.openapi.actionSystem.CommonDataKeys
|
||||||
import com.intellij.openapi.application.ApplicationManager
|
import com.intellij.openapi.application.ApplicationManager
|
||||||
@ -167,6 +168,10 @@ sealed class AceVimAction : DumbAwareAction() {
|
|||||||
action.presentation.isEnabled = action.getData(CommonDataKeys.EDITOR) != null
|
action.presentation.isEnabled = action.getData(CommonDataKeys.EDITOR) != null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun getActionUpdateThread(): ActionUpdateThread {
|
||||||
|
return ActionUpdateThread.BGT
|
||||||
|
}
|
||||||
|
|
||||||
override fun actionPerformed(e: AnActionEvent) {
|
override fun actionPerformed(e: AnActionEvent) {
|
||||||
val editor = e.getData(CommonDataKeys.EDITOR) ?: return
|
val editor = e.getData(CommonDataKeys.EDITOR) ?: return
|
||||||
val session = SessionManager.start(editor, AceVimMode.JumpAllEditors.getJumpEditors(editor))
|
val session = SessionManager.start(editor, AceVimMode.JumpAllEditors.getJumpEditors(editor))
|
||||||
|
@ -5,16 +5,15 @@ import com.intellij.ui.ColorPanel
|
|||||||
import com.intellij.ui.components.JBSlider
|
import com.intellij.ui.components.JBSlider
|
||||||
import com.intellij.ui.components.JBTextArea
|
import com.intellij.ui.components.JBTextArea
|
||||||
import com.intellij.ui.components.JBTextField
|
import com.intellij.ui.components.JBTextField
|
||||||
import com.intellij.ui.layout.Cell
|
import com.intellij.ui.dsl.builder.COLUMNS_LARGE
|
||||||
import com.intellij.ui.layout.GrowPolicy.MEDIUM_TEXT
|
import com.intellij.ui.dsl.builder.COLUMNS_SHORT
|
||||||
import com.intellij.ui.layout.GrowPolicy.SHORT_TEXT
|
import com.intellij.ui.dsl.builder.columns
|
||||||
import com.intellij.ui.layout.panel
|
import com.intellij.ui.dsl.builder.panel
|
||||||
import org.acejump.input.KeyLayout
|
import org.acejump.input.KeyLayout
|
||||||
import java.awt.Color
|
import java.awt.Color
|
||||||
import java.awt.Font
|
import java.awt.Font
|
||||||
import java.util.Hashtable
|
import java.util.Hashtable
|
||||||
import javax.swing.JCheckBox
|
import javax.swing.JCheckBox
|
||||||
import javax.swing.JComponent
|
|
||||||
import javax.swing.JLabel
|
import javax.swing.JLabel
|
||||||
import javax.swing.JPanel
|
import javax.swing.JPanel
|
||||||
import javax.swing.JSlider
|
import javax.swing.JSlider
|
||||||
@ -52,39 +51,30 @@ internal class AceSettingsPanel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
internal val rootPanel: JPanel = panel {
|
internal val rootPanel: JPanel = panel {
|
||||||
fun Cell.short(component: JComponent) = component(growPolicy = SHORT_TEXT)
|
group("Characters and Layout") {
|
||||||
fun Cell.medium(component: JComponent) = component(growPolicy = MEDIUM_TEXT)
|
row("Allowed characters in tags:") { cell(tagAllowedCharsField).columns(COLUMNS_LARGE) }
|
||||||
|
row("Allowed prefix characters in tags:") { cell(tagPrefixCharsField).columns(COLUMNS_MEDIUM) }
|
||||||
titledRow("Characters and Layout") {
|
row("Keyboard layout:") { cell(keyboardLayoutCombo).columns(COLUMNS_SHORT) }
|
||||||
row("Allowed characters in tags:") { medium(tagAllowedCharsField) }
|
row("Keyboard design:") { cell(keyboardLayoutArea).columns(COLUMNS_SHORT) }
|
||||||
row("Allowed prefix characters in tags:") { medium(tagPrefixCharsField) }
|
|
||||||
row("Keyboard layout:") { short(keyboardLayoutCombo) }
|
|
||||||
row("Keyboard design:") { short(keyboardLayoutArea) }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
titledRow("Behavior") {
|
group("Behavior") {
|
||||||
row("Minimum typed characters (1-10):") { short(minQueryLengthField) }
|
row("Minimum typed characters (1-10):") { cell(minQueryLengthField).columns(COLUMNS_SHORT) }
|
||||||
}
|
}
|
||||||
|
|
||||||
titledRow("Colors") {
|
group("Colors") {
|
||||||
row("Caret background:") {
|
row("Caret background:") {
|
||||||
cell {
|
cell(jumpModeColorWheel)
|
||||||
component(jumpModeColorWheel)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
row("Tag foreground:") {
|
row("Tag foreground:") {
|
||||||
cell {
|
cell(tagForeground1ColorWheel)
|
||||||
component(tagForeground1ColorWheel)
|
cell(tagForeground2ColorWheel)
|
||||||
component(tagForeground2ColorWheel)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
row("Search highlight:") {
|
row("Search highlight:") {
|
||||||
cell {
|
cell(searchHighlightColorWheel)
|
||||||
component(searchHighlightColorWheel)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
row("Editor fade opacity (%):") {
|
row("Editor fade opacity (%):") {
|
||||||
medium(editorFadeOpacitySlider)
|
cell(editorFadeOpacitySlider)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -123,7 +113,7 @@ internal class AceSettingsPanel {
|
|||||||
|
|
||||||
// Removal pending support for https://youtrack.jetbrains.com/issue/KT-8575
|
// Removal pending support for https://youtrack.jetbrains.com/issue/KT-8575
|
||||||
|
|
||||||
private operator fun JTextComponent.getValue(a: AceSettingsPanel, p: KProperty<*>) = text.toLowerCase()
|
private operator fun JTextComponent.getValue(a: AceSettingsPanel, p: KProperty<*>) = text.lowercase()
|
||||||
private operator fun JTextComponent.setValue(a: AceSettingsPanel, p: KProperty<*>, s: String) = setText(s)
|
private operator fun JTextComponent.setValue(a: AceSettingsPanel, p: KProperty<*>, s: String) = setText(s)
|
||||||
|
|
||||||
private operator fun ColorPanel.getValue(a: AceSettingsPanel, p: KProperty<*>) = selectedColor
|
private operator fun ColorPanel.getValue(a: AceSettingsPanel, p: KProperty<*>) = selectedColor
|
||||||
|
Loading…
Reference in New Issue
Block a user