diff --git a/PSReadLine/KeyBindings.cs b/PSReadLine/KeyBindings.cs index 1b857141..e1b64d9e 100644 --- a/PSReadLine/KeyBindings.cs +++ b/PSReadLine/KeyBindings.cs @@ -26,6 +26,8 @@ public enum KeyHandlerGroup History, /// Completion functions Completion, + /// Prediction functions + Prediction, /// Miscellaneous functions Miscellaneous, /// Selection functions @@ -89,6 +91,8 @@ public static string GetGroupingDescription(KeyHandlerGroup grouping) return PSReadLineResources.HistoryGrouping; case KeyHandlerGroup.Completion: return PSReadLineResources.CompletionGrouping; + case KeyHandlerGroup.Prediction: + return PSReadLineResources.PredictionGrouping; case KeyHandlerGroup.Miscellaneous: return PSReadLineResources.MiscellaneousGrouping; case KeyHandlerGroup.Selection: @@ -545,6 +549,13 @@ public static KeyHandlerGroup GetDisplayGrouping(string function) case nameof(ViTabCompletePrevious): return KeyHandlerGroup.Completion; + case nameof(AcceptSuggestion): + case nameof(AcceptNextSuggestionWord): + case nameof(NextSuggestion): + case nameof(PreviousSuggestion): + case nameof(SwitchPredictionView): + return KeyHandlerGroup.Prediction; + case nameof(CaptureScreen): case nameof(ClearScreen): case nameof(DigitArgument): @@ -563,11 +574,6 @@ public static KeyHandlerGroup GetDisplayGrouping(string function) case nameof(ViExit): case nameof(ViInsertMode): case nameof(WhatIsKey): - case nameof(AcceptSuggestion): - case nameof(AcceptNextSuggestionWord): - case nameof(NextSuggestion): - case nameof(PreviousSuggestion): - case nameof(SwitchPredictionView): case nameof(ShowCommandHelp): case nameof(ShowParameterHelp): return KeyHandlerGroup.Miscellaneous; diff --git a/PSReadLine/PSReadLineResources.Designer.cs b/PSReadLine/PSReadLineResources.Designer.cs index e5397e82..d302c211 100644 --- a/PSReadLine/PSReadLineResources.Designer.cs +++ b/PSReadLine/PSReadLineResources.Designer.cs @@ -320,7 +320,18 @@ internal class PSReadLineResources { return ResourceManager.GetString("CompletionGrouping", resourceCulture); } } - + + /// + /// Looks up a localized string similar to Prediction functions. + /// + internal static string PredictionGrouping + { + get + { + return ResourceManager.GetString("PredictionGrouping", resourceCulture); + } + } + /// /// Looks up a localized string similar to Copy selected region to the system clipboard. If no region is selected, copy the whole line. /// diff --git a/PSReadLine/PSReadLineResources.resx b/PSReadLine/PSReadLineResources.resx index 7f65537f..fb75af65 100644 --- a/PSReadLine/PSReadLineResources.resx +++ b/PSReadLine/PSReadLineResources.resx @@ -790,6 +790,9 @@ Or not saving history with: Completion functions + + Prediction functions + Miscellaneous functions