@@ -26,6 +26,8 @@ public enum KeyHandlerGroup
2626 History ,
2727 /// <summary>Completion functions</summary>
2828 Completion ,
29+ /// <summary>Prediction functions</summary>
30+ Prediction ,
2931 /// <summary>Miscellaneous functions</summary>
3032 Miscellaneous ,
3133 /// <summary>Selection functions</summary>
@@ -89,6 +91,8 @@ public static string GetGroupingDescription(KeyHandlerGroup grouping)
8991 return PSReadLineResources . HistoryGrouping ;
9092 case KeyHandlerGroup . Completion :
9193 return PSReadLineResources . CompletionGrouping ;
94+ case KeyHandlerGroup . Prediction :
95+ return PSReadLineResources . PredictionGrouping ;
9296 case KeyHandlerGroup . Miscellaneous :
9397 return PSReadLineResources . MiscellaneousGrouping ;
9498 case KeyHandlerGroup . Selection :
@@ -545,6 +549,13 @@ public static KeyHandlerGroup GetDisplayGrouping(string function)
545549 case nameof ( ViTabCompletePrevious ) :
546550 return KeyHandlerGroup . Completion ;
547551
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+
548559 case nameof ( CaptureScreen ) :
549560 case nameof ( ClearScreen ) :
550561 case nameof ( DigitArgument ) :
@@ -563,11 +574,6 @@ public static KeyHandlerGroup GetDisplayGrouping(string function)
563574 case nameof ( ViExit ) :
564575 case nameof ( ViInsertMode ) :
565576 case nameof ( WhatIsKey ) :
566- case nameof ( AcceptSuggestion ) :
567- case nameof ( AcceptNextSuggestionWord ) :
568- case nameof ( NextSuggestion ) :
569- case nameof ( PreviousSuggestion ) :
570- case nameof ( SwitchPredictionView ) :
571577 case nameof ( ShowCommandHelp ) :
572578 case nameof ( ShowParameterHelp ) :
573579 return KeyHandlerGroup . Miscellaneous ;
0 commit comments