generated from JetBrains/intellij-platform-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
14 changed files
with
158 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...or/settings/KursorSettingsConfigurable.kt → ...pkin/kursor/KursorSettingsConfigurable.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/main/kotlin/com/github/siropkin/kursor/TextIndicatorVerticalPositions.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.github.siropkin.kursor | ||
|
||
object TextIndicatorVerticalPositions { | ||
const val TOP = "top" | ||
const val MIDDLE = "middle" | ||
const val BOTTOM = "bottom" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
src/main/kotlin/com/github/siropkin/kursor/keyboard/KeyboardLayout.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.github.siropkin.kursor.keyboard | ||
|
||
|
||
data class KeyboardLayout(val language: String, val country: String, val variant: String, val asciiMode: Boolean = false) { | ||
fun isEmpty(): Boolean = language.isEmpty() && country.isEmpty() && variant.isEmpty() | ||
|
||
override fun toString(): String = listOf(variant, country, language).firstOrNull { it.isNotEmpty() } ?: "" | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/kotlin/com/github/siropkin/kursor/keyboard/LinuxConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.github.siropkin.kursor.keyboard | ||
|
||
class LinuxConfig { | ||
var distribution: String = System.getenv("DESKTOP_SESSION")?.lowercase() ?: "" | ||
var desktopGroup: String = System.getenv("XDG_SESSION_TYPE")?.lowercase() ?: "" | ||
var availableKeyboardLayouts: List<String> = emptyList() | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/kotlin/com/github/siropkin/kursor/keyboard/MacKeyboardVariants.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.github.siropkin.kursor.keyboard | ||
|
||
|
||
// Standard Layouts | ||
// https://github.com/acidanthera/OpenCorePkg/blob/master/Utilities/AppleKeyboardLayouts/AppleKeyboardLayouts.txt | ||
val MacStandardKeyboardVariants = mapOf( | ||
"19458" to "RU", // Russian - PC | ||
"-23205" to "UK", // Ukrainian-QWERTY | ||
"-2354" to "UK", // Ukrainian | ||
) | ||
|
||
// Sogou Pinyin Layouts https://pinyin.sogou.com/mac | ||
val MacSogouPinyinVariants = mapOf( | ||
"com.sogou.inputmethod.pinyin" to "ZH" | ||
) | ||
|
||
// Rime Squirrel Layouts https://rime.im | ||
val MacRimeSquirrelVariants = mapOf( | ||
"im.rime.inputmethod.Squirrel.Hans" to "ZH", // Simplified | ||
"im.rime.inputmethod.Squirrel.Hant" to "ZH" // Traditional | ||
) |
Oops, something went wrong.