@@ -209,37 +209,45 @@ private static KeyHandler MakeViKeyHandler(Action<ConsoleKeyInfo?, object> actio
209
209
210
210
private static readonly Dictionary < ConsoleKeyInfo , KeyHandler > _viChordDTable = new Dictionary < ConsoleKeyInfo , KeyHandler > ( new ConsoleKeyInfoComparer ( ) )
211
211
{
212
- { Keys . D , MakeViKeyHandler ( DeleteLine , "DeleteLine" ) } ,
213
- { Keys . Dollar , MakeViKeyHandler ( DeleteToEnd , "DeleteToEnd" ) } ,
214
- { Keys . B , MakeViKeyHandler ( BackwardDeleteWord , "BackwardDeleteWord" ) } ,
215
- { Keys . ucB , MakeViKeyHandler ( ViBackwardDeleteGlob , "ViBackwardDeleteGlob" ) } ,
216
- { Keys . W , MakeViKeyHandler ( DeleteWord , "DeleteWord" ) } ,
217
- { Keys . ucW , MakeViKeyHandler ( ViDeleteGlob , "ViDeleteGlob" ) } ,
218
- { Keys . E , MakeViKeyHandler ( DeleteEndOfWord , "DeleteEndOfWord" ) } ,
219
- { Keys . ucE , MakeViKeyHandler ( ViDeleteEndOfGlob , "ViDeleteEndOfGlob" ) } ,
220
- { Keys . H , MakeViKeyHandler ( BackwardDeleteChar , "BackwardDeleteChar" ) } ,
221
- { Keys . L , MakeViKeyHandler ( DeleteChar , "DeleteChar" ) } ,
222
- { Keys . Space , MakeViKeyHandler ( DeleteChar , "DeleteChar" ) } ,
223
- { Keys . _0 , MakeViKeyHandler ( BackwardDeleteLine , "BackwardDeleteLine" ) } ,
224
- { Keys . Uphat , MakeViKeyHandler ( DeleteLineToFirstChar , "DeleteLineToFirstChar" ) } ,
225
- { Keys . Percent , MakeViKeyHandler ( ViDeleteBrace , "DeleteBrace" ) } ,
212
+ { Keys . D , MakeViKeyHandler ( DeleteLine , "DeleteLine" ) } ,
213
+ { Keys . Dollar , MakeViKeyHandler ( DeleteToEnd , "DeleteToEnd" ) } ,
214
+ { Keys . B , MakeViKeyHandler ( BackwardDeleteWord , "BackwardDeleteWord" ) } ,
215
+ { Keys . ucB , MakeViKeyHandler ( ViBackwardDeleteGlob , "ViBackwardDeleteGlob" ) } ,
216
+ { Keys . W , MakeViKeyHandler ( DeleteWord , "DeleteWord" ) } ,
217
+ { Keys . ucW , MakeViKeyHandler ( ViDeleteGlob , "ViDeleteGlob" ) } ,
218
+ { Keys . E , MakeViKeyHandler ( DeleteEndOfWord , "DeleteEndOfWord" ) } ,
219
+ { Keys . ucE , MakeViKeyHandler ( ViDeleteEndOfGlob , "ViDeleteEndOfGlob" ) } ,
220
+ { Keys . H , MakeViKeyHandler ( BackwardDeleteChar , "BackwardDeleteChar" ) } ,
221
+ { Keys . L , MakeViKeyHandler ( DeleteChar , "DeleteChar" ) } ,
222
+ { Keys . Space , MakeViKeyHandler ( DeleteChar , "DeleteChar" ) } ,
223
+ { Keys . _0 , MakeViKeyHandler ( BackwardDeleteLine , "BackwardDeleteLine" ) } ,
224
+ { Keys . Uphat , MakeViKeyHandler ( DeleteLineToFirstChar , "DeleteLineToFirstChar" ) } ,
225
+ { Keys . Percent , MakeViKeyHandler ( ViDeleteBrace , "DeleteBrace" ) } ,
226
+ { Keys . F , MakeViKeyHandler ( ViDeleteToChar , "ViDeleteToChar" ) } ,
227
+ { Keys . ucF , MakeViKeyHandler ( ViDeleteToCharBackward , "ViDeleteToCharBackward" ) } ,
228
+ { Keys . T , MakeViKeyHandler ( ViDeleteToBeforeChar , "ViDeleteToBeforeChar" ) } ,
229
+ { Keys . ucT , MakeViKeyHandler ( ViDeleteToBeforeCharBackward , "ViDeleteToBeforeCharBackward" ) } ,
226
230
} ;
227
231
private static readonly Dictionary < ConsoleKeyInfo , KeyHandler > _viChordCTable = new Dictionary < ConsoleKeyInfo , KeyHandler > ( new ConsoleKeyInfoComparer ( ) )
228
232
{
229
- { Keys . C , MakeViKeyHandler ( ViReplaceLine , "ViReplaceLine" ) } ,
230
- { Keys . Dollar , MakeViKeyHandler ( ViReplaceToEnd , "ViReplaceToEnd" ) } ,
231
- { Keys . B , MakeViKeyHandler ( ViBackwardReplaceWord , "ViBackwardReplaceWord" ) } ,
232
- { Keys . ucB , MakeViKeyHandler ( ViBackwardReplaceGlob , "ViBackwardReplaceGlob" ) } ,
233
- { Keys . W , MakeViKeyHandler ( ViReplaceWord , "ViReplaceWord" ) } ,
234
- { Keys . ucW , MakeViKeyHandler ( ViReplaceGlob , "ViReplaceGlob" ) } ,
235
- { Keys . E , MakeViKeyHandler ( ViReplaceEndOfWord , "ViReplaceEndOfWord" ) } ,
236
- { Keys . ucE , MakeViKeyHandler ( ViReplaceEndOfGlob , "ViReplaceEndOfGlob" ) } ,
237
- { Keys . H , MakeViKeyHandler ( BackwardReplaceChar , "BackwardReplaceChar" ) } ,
238
- { Keys . L , MakeViKeyHandler ( ReplaceChar , "ReplaceChar" ) } ,
239
- { Keys . Space , MakeViKeyHandler ( ReplaceChar , "ReplaceChar" ) } ,
240
- { Keys . _0 , MakeViKeyHandler ( ViBackwardReplaceLine , "ViBackwardReplaceLine" ) } ,
233
+ { Keys . C , MakeViKeyHandler ( ViReplaceLine , "ViReplaceLine" ) } ,
234
+ { Keys . Dollar , MakeViKeyHandler ( ViReplaceToEnd , "ViReplaceToEnd" ) } ,
235
+ { Keys . B , MakeViKeyHandler ( ViBackwardReplaceWord , "ViBackwardReplaceWord" ) } ,
236
+ { Keys . ucB , MakeViKeyHandler ( ViBackwardReplaceGlob , "ViBackwardReplaceGlob" ) } ,
237
+ { Keys . W , MakeViKeyHandler ( ViReplaceWord , "ViReplaceWord" ) } ,
238
+ { Keys . ucW , MakeViKeyHandler ( ViReplaceGlob , "ViReplaceGlob" ) } ,
239
+ { Keys . E , MakeViKeyHandler ( ViReplaceEndOfWord , "ViReplaceEndOfWord" ) } ,
240
+ { Keys . ucE , MakeViKeyHandler ( ViReplaceEndOfGlob , "ViReplaceEndOfGlob" ) } ,
241
+ { Keys . H , MakeViKeyHandler ( BackwardReplaceChar , "BackwardReplaceChar" ) } ,
242
+ { Keys . L , MakeViKeyHandler ( ReplaceChar , "ReplaceChar" ) } ,
243
+ { Keys . Space , MakeViKeyHandler ( ReplaceChar , "ReplaceChar" ) } ,
244
+ { Keys . _0 , MakeViKeyHandler ( ViBackwardReplaceLine , "ViBackwardReplaceLine" ) } ,
241
245
{ Keys . Uphat , MakeViKeyHandler ( ViBackwardReplaceLineToFirstChar , "ViBackwardReplaceLineToFirstChar" ) } ,
242
- { Keys . Percent , MakeViKeyHandler ( ViReplaceBrace , "ViReplaceBrace" ) } ,
246
+ { Keys . Percent , MakeViKeyHandler ( ViReplaceBrace , "ViReplaceBrace" ) } ,
247
+ { Keys . F , MakeViKeyHandler ( ViReplaceToChar , "ViReplaceToChar" ) } ,
248
+ { Keys . ucF , MakeViKeyHandler ( ViReplaceToCharBackward , "ViReplaceToCharBackward" ) } ,
249
+ { Keys . T , MakeViKeyHandler ( ViReplaceToBeforeChar , "ViReplaceToBeforeChar" ) } ,
250
+ { Keys . ucT , MakeViKeyHandler ( ViReplaceToBeforeCharBackward , "ViReplaceToBeforeCharBackward" ) } ,
243
251
} ;
244
252
private static readonly Dictionary < ConsoleKeyInfo , KeyHandler > _viChordYTable = new Dictionary < ConsoleKeyInfo , KeyHandler > ( new ConsoleKeyInfoComparer ( ) )
245
253
{
0 commit comments