fix(intellij): set manual trigger default keymap to Ctrl+BackSlash to avoid conflict when new UI enabled. (#811)

release-fix-intellij-update-support-version-range
Zhiming Ma 2023-11-17 15:03:16 +08:00 committed by GitHub
parent 549dc97e58
commit 97f4989905
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 3 deletions

View File

@ -19,7 +19,7 @@ class ToggleInlineCompletionTriggerMode : AnAction() {
val settings = service<ApplicationSettingsState>()
if (settings.completionTriggerMode == ApplicationSettingsState.TriggerMode.AUTOMATIC) {
e.presentation.text = "Switch to Manual Mode"
e.presentation.description = "Manual trigger inline completion suggestions by pressing `Alt + \\`."
e.presentation.description = "Manual trigger inline completion suggestions by pressing `Ctrl + \\`."
} else {
e.presentation.text = "Switch to Automatic Mode"
e.presentation.description = "Show inline completion suggestions automatically."

View File

@ -151,7 +151,7 @@ class ApplicationSettingsPanel {
.addComponent(completionTriggerModeAutomaticRadioButton)
.addCopyableTooltip("Trigger automatically when you stop typing")
.addComponent(completionTriggerModeManualRadioButton)
.addCopyableTooltip("Trigger manually by pressing `Alt + \\`")
.addCopyableTooltip("Trigger manually by pressing `Ctrl + \\`")
.panel
private val isAnonymousUsageTrackingDisabledCheckBox = JBCheckBox("Disable anonymous usage tracking")

View File

@ -131,7 +131,7 @@ class StatusBarWidgetFactory : StatusBarEditorBasedWidgetFactory() {
ApplicationSettingsState.TriggerMode.MANUAL -> {
if (state.ongoingCompletion == null) {
icon = AllIcons.General.ChevronRight
tooltip = "Tabby: Standing by, press `Alt + \\` to trigger code completion."
tooltip = "Tabby: Standing by, press `Ctrl + \\` to trigger code completion."
} else {
icon = AnimatedIcon.Default()
tooltip = "Tabby: Generating code completions"

View File

@ -58,6 +58,7 @@
class="com.tabbyml.intellijtabby.actions.TriggerCompletion"
text="Show Inline Completion"
description="Show inline completion suggestions at the caret's position.">
<keyboard-shortcut first-keystroke="ctrl BACK_SLASH" keymap="$default"/>
<keyboard-shortcut first-keystroke="alt BACK_SLASH" keymap="$default"/>
</action>
<action id="Tabby.AcceptCompletion"