@@ -26,6 +26,8 @@ public enum KeyHandlerGroup
26
26
History ,
27
27
/// <summary>Completion functions</summary>
28
28
Completion ,
29
+ /// <summary>Prediction functions</summary>
30
+ Prediction ,
29
31
/// <summary>Miscellaneous functions</summary>
30
32
Miscellaneous ,
31
33
/// <summary>Selection functions</summary>
@@ -89,6 +91,8 @@ public static string GetGroupingDescription(KeyHandlerGroup grouping)
89
91
return PSReadLineResources . HistoryGrouping ;
90
92
case KeyHandlerGroup . Completion :
91
93
return PSReadLineResources . CompletionGrouping ;
94
+ case KeyHandlerGroup . Prediction :
95
+ return PSReadLineResources . PredictionGrouping ;
92
96
case KeyHandlerGroup . Miscellaneous :
93
97
return PSReadLineResources . MiscellaneousGrouping ;
94
98
case KeyHandlerGroup . Selection :
@@ -545,6 +549,13 @@ public static KeyHandlerGroup GetDisplayGrouping(string function)
545
549
case nameof ( ViTabCompletePrevious ) :
546
550
return KeyHandlerGroup . Completion ;
547
551
552
+ case nameof ( AcceptSuggestion ) :
553
+ case nameof ( AcceptNextSuggestionWord ) :
554
+ case nameof ( NextSuggestion ) :
555
+ case nameof ( PreviousSuggestion ) :
556
+ case nameof ( SwitchPredictionView ) :
557
+ return KeyHandlerGroup . Prediction ;
558
+
548
559
case nameof ( CaptureScreen ) :
549
560
case nameof ( ClearScreen ) :
550
561
case nameof ( DigitArgument ) :
@@ -563,11 +574,6 @@ public static KeyHandlerGroup GetDisplayGrouping(string function)
563
574
case nameof ( ViExit ) :
564
575
case nameof ( ViInsertMode ) :
565
576
case nameof ( WhatIsKey ) :
566
- case nameof ( AcceptSuggestion ) :
567
- case nameof ( AcceptNextSuggestionWord ) :
568
- case nameof ( NextSuggestion ) :
569
- case nameof ( PreviousSuggestion ) :
570
- case nameof ( SwitchPredictionView ) :
571
577
case nameof ( ShowCommandHelp ) :
572
578
case nameof ( ShowParameterHelp ) :
573
579
return KeyHandlerGroup . Miscellaneous ;
0 commit comments