fix(intellij): set manual trigger default keymap to Ctrl+BackSlash to avoid conflict when new UI enabled. (#811)
parent
549dc97e58
commit
97f4989905
|
|
@ -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."
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue