1
0
mirror of https://github.com/chylex/IntelliJ-AceJump.git synced 2025-04-09 17:15:43 +02:00

only check for on-screen matches

This commit is contained in:
breandan.considine 2017-07-22 22:39:48 -04:00
parent 431f58b688
commit 55e3c9c076
2 changed files with 5 additions and 4 deletions
gradle/wrapper
src/main/kotlin/com/johnlindquist/acejump/search

View File

@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://repo.gradle.org/gradle/dist-snapshots/gradle-kotlin-dsl-4.1-20170707032407+0000-all.zip
distributionUrl=https\://repo.gradle.org/gradle/dist-snapshots/gradle-kotlin-dsl-4.1-20170712173431+0000-all.zip

View File

@ -93,13 +93,14 @@ object Finder {
private fun collectJumpLocations(): Collection<Marker> {
unseen2grams = LinkedHashSet(allBigrams())
textMatches = findMatchingSites().toList()
if (!applyTagsFully && textMatches.size > settings.allowedChars.size)
val matchesInView = textMatches.filter { it in editor.getView() }
if (!applyTagsFully && matchesInView.size > settings.allowedChars.size)
return textMatches.map { Marker(query, null, it) }
digraphs = makeMap(editorText, textMatches.filter { it in editor.getView() })
digraphs = makeMap(editorText, matchesInView)
return mapDigraphs(digraphs)
.let { compact(it) }