1
0
mirror of https://github.com/chylex/IntelliJ-AceJump.git synced 2024-11-24 15:42:44 +01:00

Compare commits

...

3 Commits

Author SHA1 Message Date
43dfec940e
Set version to chylex-23 2024-09-04 11:40:16 +02:00
abe06ec7be
Increase width of editor fade opacity slider 2024-09-04 11:39:59 +02:00
3fc3cbc7f8
Optimize tagging 2024-09-04 11:33:26 +02:00
3 changed files with 7 additions and 6 deletions

View File

@ -8,7 +8,7 @@ plugins {
}
group = "org.acejump"
version = "chylex-22"
version = "chylex-23"
repositories {
mavenCentral()

View File

@ -11,6 +11,7 @@ import com.intellij.ui.dsl.builder.columns
import com.intellij.ui.dsl.builder.panel
import org.acejump.input.KeyLayout
import java.awt.Color
import java.awt.Dimension
import java.awt.Font
import java.util.Hashtable
import javax.swing.JCheckBox
@ -36,6 +37,7 @@ internal class AceSettingsPanel {
paintTicks = true
minorTickSpacing = 1
majorTickSpacing = 1
minimumSize = Dimension(275, minimumSize.height)
}
private val jumpModeColorWheel = ColorPanel()
private val tagForeground1ColorWheel = ColorPanel()

View File

@ -133,12 +133,11 @@ class Tagger(private val editors: List<Editor>, results: Map<Editor, IntList>) {
return@Comparator if (aIsVisible) -1 else 1
}
val aPosition = aCaches.offsetToXY(aEditor, a.offset)
val bPosition = bCaches.offsetToXY(bEditor, b.offset)
val firstEditor = editorPriority[0]
val caretPosition = caches.getValue(firstEditor).offsetToXY(firstEditor, firstEditor.caretModel.offset)
val caretPosition = editorPriority[0].offsetToXY(editorPriority[0].caretModel.offset)
val aDistance = aPosition.distanceSq(caretPosition)
val bDistance = bPosition.distanceSq(caretPosition)
val aDistance = aCaches.offsetToXY(aEditor, a.offset).distanceSq(caretPosition)
val bDistance = bCaches.offsetToXY(bEditor, b.offset).distanceSq(caretPosition)
return@Comparator aDistance.compareTo(bDistance)
}