mirror of
https://github.com/chylex/IntelliJ-AceJump.git
synced 2024-11-24 23:42:46 +01:00
Compare commits
3 Commits
5979579042
...
43dfec940e
Author | SHA1 | Date | |
---|---|---|---|
43dfec940e | |||
abe06ec7be | |||
3fc3cbc7f8 |
@ -8,7 +8,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group = "org.acejump"
|
group = "org.acejump"
|
||||||
version = "chylex-22"
|
version = "chylex-23"
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
@ -11,6 +11,7 @@ import com.intellij.ui.dsl.builder.columns
|
|||||||
import com.intellij.ui.dsl.builder.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.Dimension
|
||||||
import java.awt.Font
|
import java.awt.Font
|
||||||
import java.util.Hashtable
|
import java.util.Hashtable
|
||||||
import javax.swing.JCheckBox
|
import javax.swing.JCheckBox
|
||||||
@ -36,6 +37,7 @@ internal class AceSettingsPanel {
|
|||||||
paintTicks = true
|
paintTicks = true
|
||||||
minorTickSpacing = 1
|
minorTickSpacing = 1
|
||||||
majorTickSpacing = 1
|
majorTickSpacing = 1
|
||||||
|
minimumSize = Dimension(275, minimumSize.height)
|
||||||
}
|
}
|
||||||
private val jumpModeColorWheel = ColorPanel()
|
private val jumpModeColorWheel = ColorPanel()
|
||||||
private val tagForeground1ColorWheel = ColorPanel()
|
private val tagForeground1ColorWheel = ColorPanel()
|
||||||
|
@ -133,12 +133,11 @@ class Tagger(private val editors: List<Editor>, results: Map<Editor, IntList>) {
|
|||||||
return@Comparator if (aIsVisible) -1 else 1
|
return@Comparator if (aIsVisible) -1 else 1
|
||||||
}
|
}
|
||||||
|
|
||||||
val aPosition = aCaches.offsetToXY(aEditor, a.offset)
|
val firstEditor = editorPriority[0]
|
||||||
val bPosition = bCaches.offsetToXY(bEditor, b.offset)
|
val caretPosition = caches.getValue(firstEditor).offsetToXY(firstEditor, firstEditor.caretModel.offset)
|
||||||
|
|
||||||
val caretPosition = editorPriority[0].offsetToXY(editorPriority[0].caretModel.offset)
|
val aDistance = aCaches.offsetToXY(aEditor, a.offset).distanceSq(caretPosition)
|
||||||
val aDistance = aPosition.distanceSq(caretPosition)
|
val bDistance = bCaches.offsetToXY(bEditor, b.offset).distanceSq(caretPosition)
|
||||||
val bDistance = bPosition.distanceSq(caretPosition)
|
|
||||||
|
|
||||||
return@Comparator aDistance.compareTo(bDistance)
|
return@Comparator aDistance.compareTo(bDistance)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user