From a38c670bedc35d24c9d9b851c5820abdde9de532 Mon Sep 17 00:00:00 2001 From: breandan Date: Thu, 19 Nov 2020 18:31:20 -0500 Subject: [PATCH] add TODOs for #327, #340 --- README.md | 2 +- src/main/kotlin/org/acejump/control/AceAction.kt | 5 ++++- src/main/kotlin/org/acejump/label/Pattern.kt | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 930bac23..5ef3d1c9 100755 --- a/README.md +++ b/README.md @@ -107,7 +107,7 @@ If you would like to [contribute](https://github.com/acejump/AceJump/pulls), her * [Fold text between matches](https://github.com/acejump/AceJump/issues/255) * [Multi-platform support](https://github.com/acejump/AceJump/issues/229) -To start [IntelliJ IDEA CE](https://github.com/JetBrains/intellij-community) with AceJump installed, run `./gradlew runIde -PluginDev`. +To start [IntelliJ IDEA CE](https://github.com/JetBrains/intellij-community) with AceJump installed, run `./gradlew runIde -PluginDev [-x test]`. To just run [the tests](src/test/kotlin/AceTest.kt), execute `./gradlew test` - this is usually much faster than starting an IDE. diff --git a/src/main/kotlin/org/acejump/control/AceAction.kt b/src/main/kotlin/org/acejump/control/AceAction.kt index 0d3ed651..eb16bcb9 100755 --- a/src/main/kotlin/org/acejump/control/AceAction.kt +++ b/src/main/kotlin/org/acejump/control/AceAction.kt @@ -44,8 +44,11 @@ class AceTargetAction: AceAction() { override fun customize() = Jumper.toggleTargetMode() } -/** +/* * When line mode is activated, we will tag the beginning and end of each line. + * + * TODO: https://github.com/acejump/AceJump/issues/327 + * TODO: https://github.com/acejump/AceJump/issues/340 */ class AceLineAction: AceAction() { diff --git a/src/main/kotlin/org/acejump/label/Pattern.kt b/src/main/kotlin/org/acejump/label/Pattern.kt index 11073b26..a5b4622c 100644 --- a/src/main/kotlin/org/acejump/label/Pattern.kt +++ b/src/main/kotlin/org/acejump/label/Pattern.kt @@ -10,6 +10,8 @@ enum class Pattern(val string: String) { END_OF_LINE("\\n|\\Z"), START_OF_LINE("^.|^\\n"), CODE_INDENTS("[^\\s].*|^\\n"), +// START_OF_LINE("^[^\\n]{2,}|^\\n"), +// CODE_INDENTS("[^\\s][^\\n]{2,}|^\\n"), LINE_MARK(END_OF_LINE.string + "|" + START_OF_LINE.string + "|" + CODE_INDENTS.string),