-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmintty_vcl.py
6558 lines (6264 loc) · 254 KB
/
mintty_vcl.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# NatLink macro definitions for NaturallySpeaking
# coding: latin-1
# Generated by vcl2py 2.8.1I+, Fri Oct 31 17:34:49 2014
import natlink
from natlinkutils import *
from VocolaUtils import *
class ThisGrammar(GrammarBase):
gramSpec = """
<dgndictation> imported;
<key> = ('alpha' | 'bravo' | 'charlie' | 'delta' | 'echo' | 'foxtrot' | 'golf' | 'hotel' | 'india' | 'juliett' | 'kilo' | 'lima' | 'mike' | 'november' | 'oscar' | 'papa' | 'quebec' | 'romeo' | 'sierra' | 'tango' | 'uniform' | 'victor' | 'whiskey' | 'xray' | 'yankee' | 'zulu' | '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '!' | '@' | '#' | '$' | '%' | '^' | '&' | '*' | '(' | ')' | '`' | '~' | '-' | '_' | '=' | '+' | '\\' | '|' | '[' | '{' | ']' | '}' | ';' | ':' | "'" | '"' | ',' | '<' | '.' | '>' | '/' | '?' | 'Left' | 'Right' | 'Up' | 'Down' | 'space-bar' | 'tab-key' | 'Enter' | 'page-up' | 'page-down' | 'Backspace' | 'delete' | 'Escape' | 'Home' | 'End' ) ;
<1> = 'Press' <key> ;
<2> = <key> 'Here' ;
<3> = 'Space Bar' ;
<4> = 'Tab Key' ;
<special> = ('Left' | 'Right' | 'Up' | 'Down' | 'space-bar' | 'tab-key' | 'Enter' | 'page-up' | 'page-down' | 'Backspace' | 'delete' | 'escape' ) ;
<mod> = 'Shift' | 'control-key' | 'Alt' ;
<nn> = (1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50) ;
<5> = 'Press' <special> <nn> ;
<205> = (('Left' | 'Right' | 'Up' | 'Down' | 'space-bar' | 'tab-key' | 'Enter' | 'page-up' | 'page-down' | 'Backspace' | 'delete' | 'escape' ) ) <nn> ;
<6> = 'Press' <mod> <key> <nn> ;
<206> = ('Shift' | 'control-key' | 'Alt' ) <key> <nn> ;
<7> = 'Press' <mod> <mod> <key> <nn> ;
<207> = ('Shift' | 'control-key' | 'Alt' ) <mod> <key> <nn> ;
<8> = 'Press' <mod> <mod> <mod> <key> <nn> ;
<208> = ('Shift' | 'control-key' | 'Alt' ) <mod> <mod> <key> <nn> ;
<0to9> = ('0' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9) ;
<2to9> = (2 | 3 | 4 | 5 | 6 | 7 | 8 | 9) ;
<1to30> = (1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30) ;
<direction> = 'Left' | 'Right' | 'Up' | 'Down' ;
<left_right> = ('Left' | 'Right' ) ;
<top_bottom> = ('Top' | 'Bottom' | 'Middle' ) ;
<9> = ((1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30) ) <direction> ;
<10> = ('Change' | 'Copy' ) ('Char' | '1' | 'One' ) ;
<11> = ('Change' | 'Copy' ) 'Back 1' ;
<209> = ('Change' | 'Copy' ) 'Back' ;
<12> = ('Change' | 'Copy' ) <12b> ;
<12b> = <1to30> 'Chars' ;
<210> = ('Change' | 'Copy' ) <1to30> ;
<13> = ('Change' | 'Copy' ) 'Back' <13b> ;
<13b> = <1to30> 'Chars' ;
<211> = ('Change' | 'Copy' ) 'Back' <1to30> ;
<14> = 'Kill' ('Char' | '1' | 'One' ) ;
<15> = 'Kill Back 1' ;
<212> = 'Kill Back' ;
<16> = 'Kill' <16b> ;
<16b> = <1to30> 'Chars' ;
<213> = 'Kill' <1to30> ;
<17> = 'Kill Back' <17b> ;
<17b> = <1to30> 'Chars' ;
<214> = 'Kill Back' <1to30> ;
<18> = 'Change case' ('back' ) <1to30> ;
<216> = 'Change case' ('back' ) ;
<215> = 'Change case' <1to30> ;
<217> = 'Change case' ;
<19> = 'One Word' ;
<218> = 'Word' ;
<20> = 'Back One Word' ;
<219> = 'Back Word' ;
<21> = <1to30> 'Words' ;
<22> = 'Back' <22b> ;
<22b> = <1to30> 'Words' ;
<23> = <edit_mode> 'Word' ;
<24> = <edit_mode> <1to30> 'Words' ;
<25> = <edit_mode> 'Back Word' ;
<26> = <edit_mode> 'Back' <26b> ;
<26b> = <1to30> 'Words' ;
<27> = <edit_mode> 'Next Word' ;
<line_actions> = ('Move to' | 'Copy to' | 'Change' | 'Kill' | 'Copy' | 'Sub' | 'Duplicate' | 'Start' | 'Append' | 'beginning' | 'middle' | 'near the end' | 'New Here' | 'New insert' | 'New Back' | 'Append semicolon' ) ;
<edit_mode> = ('Change' | 'Kill' | 'Copy' ) ;
<28> = <line_actions> 'Line' ;
<29> = 'Swap' ('Back' | 'Next' ) 'Line' ;
<221> = 'Swap' ('Back' | 'Next' ) ;
<220> = 'Swap Line' ;
<222> = 'Swap' ;
<30> = <edit_mode> ('Beginning' | 'Start' | 'End' ) 'Line Here' ;
<224> = <edit_mode> ('Beginning' | 'Start' | 'End' ) 'Line' ;
<223> = <edit_mode> ('Beginning' | 'Start' | 'End' ) 'Here' ;
<225> = <edit_mode> ('Beginning' | 'Start' | 'End' ) ;
<31> = 'Blank' ('back' | 'insert' ) 'Line' ;
<226> = 'Blank' ('back' | 'insert' ) ;
<32> = 'Join' ('Back' | 'Next' ) 'Line' ;
<228> = 'Join' ('Back' | 'Next' ) ;
<227> = 'Join Line' ;
<229> = 'Join' ;
<relative_range_actions> = ('Change' | 'Kill' | 'Copy' | 'Move to' | 'Copy to' | 'duplicate' | 'indent' | 'reverse indent' ) ;
<33> = <relative_range_actions> ('Next' | 'Back' ) 'Line' ;
<34> = <relative_range_actions> (2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30) 'Lines' ;
<35> = <relative_range_actions> 'Back' (2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30) 'Lines' ;
<relative_range_commands> = ('Sub' | 'Start' | 'Append' | 'copy here' | 'comment' | 'remove comment' ) ;
<36> = <relative_range_commands> ('Next' | 'Back' ) 'Line' ;
<37> = <relative_range_commands> (2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30) 'Lines' ;
<38> = <relative_range_commands> 'Back' (2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30) 'Lines' ;
<range_actions> = ('Move to' | 'Copy to' | 'Change' | 'Kill' | 'Copy' | 'Sub' | 'copy here' | 'comment' | 'remove comment' ) ;
<39> = <range_actions> 'Range' ;
<insert> = ('insert' | 'append' ) ;
<40> = 'Flow' ('Start' | 'Append' ) <insert> ;
<230> = 'Flow' ('Start' | 'Append' ) ;
<41> = <edit_mode> ('Flow Here' | 'Flow All' | 'Back Flow Here' ) ;
<42> = ('Indent' | 'reverse indent' ) ('Line' | 'Range' ) (1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9) ;
<231> = ('Indent' | 'reverse indent' ) ('Line' | 'Range' ) ;
<sub_action> = ('all' | 'here' | 'back here' ) ;
<43> = ('sub' | 'substitute' ) <sub_action> ;
<44> = ('edit' | 'editor' ) ('cancel' | 'redo' ) <2to9> ;
<232> = ('edit' | 'editor' ) ('cancel' | 'redo' ) ;
<45> = ('change' ) ('inner' | 'outer' ) ('brackets' | 'braces' | 'square brackets' ) ;
<46> = 'Start macro' ;
<47> = 'Repeat macro' (1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9) 'times' ;
<233> = 'Repeat macro' ;
<text_actions> = ('Paste' | 'Paste Back' | 'Insert' | 'Append here' | 'Append' | 'Substitute' | 'Replace' | 'diff push' | 'diff pull' | 'diff next' | 'diff back' | 'Format' | 'Normal mode' | 'visual mode' ) ;
<48> = (('Paste' | 'Paste Back' | 'Insert' | 'Append here' | 'Append' | 'Substitute' | 'Replace' | 'diff push' | 'diff pull' | 'diff next' | 'diff back' | 'Format' | 'Normal mode' | 'visual mode' ) ) ;
<line_mod> = ('Start' | 'Append' | 'Sub' | 'Scroll to bottom' | 'Scroll bottom' | 'Scroll to top' | 'Scroll top' | 'Scroll to middle' | 'Scroll middle' | 'beginning' | 'middlie' | 'end' | 'New back' | 'insert' | 'Change' | 'Kill' | 'Copy' | 'Paste' | 'Paste Back' | 'Move to' | 'copy here' | 'indent' | 'reverse indent' | 'Comment' | 'Remove Comment' | 'Blank back' | 'Blank insert' | 'touch' ) ;
<49> = 'line' <line_mod> <0to9> ;
<237> = 'line' <0to9> ;
<50> = 'line' <line_mod> <0to9> <0to9> ;
<238> = 'line' <0to9> <0to9> ;
<51> = 'line' <line_mod> <0to9> <0to9> <0to9> ;
<239> = 'line' <0to9> <0to9> <0to9> ;
<52> = 'line' <line_mod> <0to9> <0to9> <0to9> <0to9> ;
<240> = 'line' <0to9> <0to9> <0to9> <0to9> ;
<navigation_actions> = ('List changes' | 'back change' | 'Undo jump' | 'return from' | 'Set mark' | 'Goto mark' | 'Append back' | 'Append next' | 'Start back' | 'Start next' | 'Match bracket' | 'Scroll to bottom' | 'Scroll bottom' | 'Scroll to top' | 'Scroll top' | 'Scroll to middle' | 'Scroll middle' ) ;
<53> = (('List changes' | 'back change' | 'Undo jump' | 'return from' | 'Set mark' | 'Goto mark' | 'Append back' | 'Append next' | 'Start back' | 'Start next' | 'Match bracket' | 'Scroll to bottom' | 'Scroll bottom' | 'Scroll to top' | 'Scroll top' | 'Scroll to middle' | 'Scroll middle' ) ) ;
<54> = 'Halfpage' ('Up' | 'Down' ) ;
<244> = 'Halfpage' ;
<55> = 'Page' <top_bottom> ;
<56> = 'Back till' <key> ;
<57> = 'Till' <key> ;
<58> = 'Till next' ;
<59> = 'Search' <dgndictation> ;
<60> = 'Search go' <dgndictation> ;
<61> = 'clear Search' ;
<62> = 'Make' ;
<63> = 'Vim Update Tag File' ;
<64> = 'List errors' ;
<65> = 'Next error' ;
<66> = 'back error' ;
<67> = 'Save file' ;
<68> = 'Close file' ;
<69> = 'Save and close file' ;
<70> = 'back command' (1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9) ;
<245> = 'back command' ;
<71> = 'Edit another' ;
<72> = 'File browser' ;
<73> = 'vim diff split' ;
<74> = 'Insert space' ;
<75> = 'Insert space after' ;
<76> = 'Append comment' ;
<77> = 'Insert line break' ;
<78> = 'insert comment' ;
<79> = 'Double slash backslash' ;
<80> = 'reference' ;
<81> = 'Function definition' ;
<82> = 'Function definition' <dgndictation> ;
<83> = 'Show Help' ;
<84> = 'Set setting' ('paste' ) ;
<246> = 'Set setting' ;
<85> = 'Set dark background' ;
<86> = 'Set light background' ;
<87> = 'reload vim config' ;
<88> = 'run this' ('now' ) ;
<247> = 'run this' ;
<89> = 'Split vertical' ;
<window_action> = ('left' | 'right' | 'up' | 'down' | 'next' | 'close' ) ;
<90> = 'Vim Window' <window_action> ;
<91> = 'Vim Window crop' ;
<92> = 'Vim Window make fat' ;
<93> = 'Vim Window make thin' ;
<94> = 'back buffer' ;
<95> = 'Close buffer' ;
<96> = 'Next buffer' ;
<97> = 'Switch buffer' ;
<98> = 'List buffers' ;
<99> = 'numbered buffer' <1to30> ;
<tab_actions> = ('back' | 'Close' | 'Next' | 'List' | 'Last' | 'First' ) ;
<100> = 'vim' <100b> ;
<100b> = <tab_actions> 'tab' ;
<101> = 'vim switch tab' <1to30> ;
<102> = 'vim Tag back' ;
<103> = 'vim Tag Jump' ;
<104> = 'vim Tag Next' ;
<105> = 'Vim Tag Match' ;
<106> = 'Vim Tag Return' ;
<107> = 'Vim Tag Stack' ;
<108> = 'Vim Folds' ('open' | 'close' ) ;
<109> = 'Nowrap' ;
<110> = 'setting based' ;
<111> = 'Edit vim RC' ;
<112> = 'Reload' ;
<113> = 'all buffers' ;
<114> = 'command history' ;
<115> = 'pattern match history' ;
<116> = 'histogram debug' ;
<117> = 'ifdef' ('debug' | 'trace' ) ;
<118> = 'ifdef end' ;
<119> = 'Vim show Taglist' ;
<120> = 'Vim Align' ;
<121> = 'Vim Align' <key> ;
<122> = 'complete' ;
<123> = 'local complete' ;
<124> = 'Remove preview' ;
<125> = 'Unite files' ;
<126> = 'Unite files recursive' ;
<127> = 'Unite recent' ;
<128> = 'Unite history' ;
<129> = 'Unite buffer' ;
<130> = 'Unite insert' ;
<131> = 'tee comment' ('range' | 'line' ) ;
<line_mod2> = ('tee Comment' ) ;
<132> = 'line' <line_mod2> <0to9> ;
<248> = 'line' <0to9> ;
<133> = 'line' <line_mod2> <0to9> <0to9> ;
<249> = 'line' <0to9> <0to9> ;
<134> = 'line' <line_mod2> <0to9> <0to9> <0to9> ;
<250> = 'line' <0to9> <0to9> <0to9> ;
<135> = 'line' <line_mod2> <0to9> <0to9> <0to9> <0to9> ;
<251> = 'line' <0to9> <0to9> <0to9> <0to9> ;
<relative_range_commands2> = ('tee Comment' ) ;
<136> = <relative_range_commands2> ('Next' | 'Back' ) 'Line' ;
<137> = <relative_range_commands2> (2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30) 'Lines' ;
<138> = <relative_range_commands2> 'Back' (2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30) 'Lines' ;
<comment_type> = ('frame' | 'function' | 'method' | 'class' | 'implementation' | 'header' | 'source section' | 'header section' | 'keyword' | 'special' | 'date' | 'time' | 'toggle type' ) ;
<139> = <comment_type> 'comment' ;
<statement_type> = ('do' | 'for' | 'if' | 'if else' | 'else' | 'while' | 'switch' | 'case' ) ;
<140> = <statement_type> 'statement' ;
<idiom_type> = ('function' | 'static' | 'main' | 'for increment' | 'print' | 'file print' ) ;
<141> = <idiom_type> 'idiom' ;
<142> = 'start' ('brace' | 'comment' ) ('block' ) ;
<252> = 'start' ('brace' | 'comment' ) ;
<preprocessor_type> = ('include header' | 'include global' | 'include local' | 'define' ) ;
<143> = <preprocessor_type> 'preprocessor' ;
<144> = 'Bundle command' ('Install' | 'Clean' | 'List' ) ;
<145> = 'screen new' ;
<146> = 'screen remove' ;
<147> = 'screen crop' ;
<148> = 'screen scroll back' ;
<149> = 'screen paste' ;
<150> = 'screen mark' ;
<151> = 'screen kill' ;
<152> = 'screen help' ;
<153> = 'screen split' ;
<154> = 'screen title' ;
<155> = 'screen list' ;
<156> = 'screen switch' ;
<157> = 'screen detach' ;
<158> = 'screen next' ;
<159> = 'screen back' ;
<160> = 'screen' ('0' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9) ;
<161> = 'screen attach' ;
<162> = 'screen join' ;
<163> = 'screen search' ('backward' | 'forward' ) ;
<164> = 'screen search next' ('backward' | 'forward' ) ;
<machine> = ('release five' | 'release six' | 'P.O. Box' | 'PA install' | 'build Debian' | 'build Debian one' | 'build Debian two' | 'build cent toss' | 'build wheezy' | 'metabox one' | 'lark' | 'Embarcadero' | 'remote foil' | 'local foil' ) ;
<common_actions> = ('edit' | 'source' ) ;
<165> = <common_actions> ('vim' | 'bash' ) 'config' ;
<166> = 'history' ;
<167> = 'break' ;
<168> = 'break end of file' ;
<169> = 'escape process' ;
<170> = ('foreground' | 'background' ) 'process' ;
<171> = 'double dash' ;
<172> = 'Bash Tag File Update' ;
<173> = 'make tar' ;
<174> = 'extract tar' ;
<175> = 'confirm force remove file' ;
<176> = 'back directory' (1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9) ;
<177> = 'change ownership' ;
<178> = 'change' ('permissions' | 'mode' ) ;
<179> = 'home root' ;
<180> = 'enter list' ;
<181> = 'change absolute directory' ;
<182> = 'present working directory' ;
<183> = ('vim' | 'normal' | 'normal brief' ) 'diff' ;
<184> = 'cygwin password' ;
<185> = ('sub' | 'SVM' ) ('checkout' | 'diff' | 'commit' | 'update' | 'remove' | 'checkout bug' | 'log' | 'start bug' | 'status' ) ;
<186> = 'start environment' (1 | 2 | 3 | 4 | 5) ;
<187> = 'stop environment' ;
<188> = 'Jango export' ('test' | 'development' ) 'settings' ;
<189> = 'Django' ('shell' | 'database shell' | 'sink' | 'sink input' | 'run' | 'dump' ) ;
<190> = 'pip' ('freeze' | 'completion' | 'install' | 'list' | 'help' ) ;
<191> = 'pip option' ('bash' | 'upgrade' | 'outdated' | 'local' | 'no index' | 'find links' ) ;
<192> = 'network stats' ;
<show> = ('show' | 'show some of' | 'show a lot of' | 'local show' ) ;
<desc> = ('long' | 'full' | 'recent' | 'recursive' | 'human' ) ;
<193> = <show> <desc> <desc> <desc> 'directory' ;
<255> = <show> <desc> <desc> 'directory' ;
<254> = <show> <desc> 'directory' ;
<253> = <show> 'directory' ;
<194> = <show> <desc> 'directory' ;
<195> = <show> 'directory' ;
<196> = 'show disk space' ;
<usage> = ('usage' | 'usage kilobytes' | 'usage megabytes' ) ;
<197> = 'show disk' <usage> ;
<198> = 'secure login to' <machine> ;
<256> = 'secure login' <machine> ;
<199> = 'S F T P' <machine> ;
<200> = 'multiple get' ;
<201> = 'local change directory' ;
<202> = 'local working directory' ;
<scp> = ('secure copy' | 'secure recursive copy' | 'recursive secure copy' | 'secure clone' ) ;
<203> = 'package install' ;
<204> = 'package remove' ;
<any> = <1>|<2>|<3>|<4>|<5>|<205>|<6>|<206>|<7>|<207>|<8>|<208>|<9>|<10>|<11>|<209>|<12>|<210>|<13>|<211>|<14>|<15>|<212>|<16>|<213>|<17>|<214>|<18>|<216>|<215>|<217>|<19>|<218>|<20>|<219>|<21>|<22>|<23>|<24>|<25>|<26>|<27>|<28>|<29>|<221>|<220>|<222>|<30>|<224>|<223>|<225>|<31>|<226>|<32>|<228>|<227>|<229>|<33>|<34>|<35>|<36>|<37>|<38>|<39>|<40>|<230>|<41>|<42>|<231>|<43>|<44>|<232>|<45>|<46>|<47>|<233>|<48>|<49>|<237>|<50>|<238>|<51>|<239>|<52>|<240>|<53>|<54>|<244>|<55>|<56>|<57>|<58>|<59>|<60>|<61>|<62>|<63>|<64>|<65>|<66>|<67>|<68>|<69>|<70>|<245>|<71>|<72>|<73>|<74>|<75>|<76>|<77>|<78>|<79>|<80>|<81>|<82>|<83>|<84>|<246>|<85>|<86>|<87>|<88>|<247>|<89>|<90>|<91>|<92>|<93>|<94>|<95>|<96>|<97>|<98>|<99>|<100>|<101>|<102>|<103>|<104>|<105>|<106>|<107>|<108>|<109>|<110>|<111>|<112>|<113>|<114>|<115>|<116>|<117>|<118>|<119>|<120>|<121>|<122>|<123>|<124>|<125>|<126>|<127>|<128>|<129>|<130>|<131>|<132>|<248>|<133>|<249>|<134>|<250>|<135>|<251>|<136>|<137>|<138>|<139>|<140>|<141>|<142>|<252>|<143>|<144>|<145>|<146>|<147>|<148>|<149>|<150>|<151>|<152>|<153>|<154>|<155>|<156>|<157>|<158>|<159>|<160>|<161>|<162>|<163>|<164>|<165>|<166>|<167>|<168>|<169>|<170>|<171>|<172>|<173>|<174>|<175>|<176>|<177>|<178>|<179>|<180>|<181>|<182>|<183>|<184>|<185>|<186>|<187>|<188>|<189>|<190>|<191>|<192>|<193>|<255>|<254>|<253>|<194>|<195>|<196>|<197>|<198>|<256>|<199>|<200>|<201>|<202>|<203>|<204>;
<sequence> exported = <any>;
"""
def initialize(self):
self.load(self.gramSpec)
self.currentModule = ("","",0)
self.ruleSet1 = ['sequence']
def gotBegin(self,moduleInfo):
# Return if wrong application
window = matchWindow(moduleInfo,'mintty','')
if not window: return None
self.firstWord = 0
# Return if same window and title as before
if moduleInfo == self.currentModule: return None
self.currentModule = moduleInfo
self.deactivateAll()
title = string.lower(moduleInfo[1])
if string.find(title,'') >= 0:
for rule in self.ruleSet1:
try:
self.activate(rule,window)
except natlink.BadWindow:
pass
def convert_number_word(self, word):
if word == '0':
return '0'
else:
return word
def get_key(self, list_buffer, functional, word):
if word == 'alpha':
list_buffer += 'a'
elif word == 'bravo':
list_buffer += 'b'
elif word == 'charlie':
list_buffer += 'c'
elif word == 'delta':
list_buffer += 'd'
elif word == 'echo':
list_buffer += 'e'
elif word == 'foxtrot':
list_buffer += 'f'
elif word == 'golf':
list_buffer += 'g'
elif word == 'hotel':
list_buffer += 'h'
elif word == 'india':
list_buffer += 'i'
elif word == 'juliett':
list_buffer += 'j'
elif word == 'kilo':
list_buffer += 'k'
elif word == 'lima':
list_buffer += 'l'
elif word == 'mike':
list_buffer += 'm'
elif word == 'november':
list_buffer += 'n'
elif word == 'oscar':
list_buffer += 'o'
elif word == 'papa':
list_buffer += 'p'
elif word == 'quebec':
list_buffer += 'q'
elif word == 'romeo':
list_buffer += 'r'
elif word == 'sierra':
list_buffer += 's'
elif word == 'tango':
list_buffer += 't'
elif word == 'uniform':
list_buffer += 'u'
elif word == 'victor':
list_buffer += 'v'
elif word == 'whiskey':
list_buffer += 'w'
elif word == 'xray':
list_buffer += 'x'
elif word == 'yankee':
list_buffer += 'y'
elif word == 'zulu':
list_buffer += 'z'
elif word == '0':
list_buffer += '0'
elif word == '1':
list_buffer += '1'
elif word == '2':
list_buffer += '2'
elif word == '3':
list_buffer += '3'
elif word == '4':
list_buffer += '4'
elif word == '5':
list_buffer += '5'
elif word == '6':
list_buffer += '6'
elif word == '7':
list_buffer += '7'
elif word == '8':
list_buffer += '8'
elif word == '9':
list_buffer += '9'
elif word == '!':
list_buffer += '!'
elif word == '@':
list_buffer += '@'
elif word == '#':
list_buffer += '#'
elif word == '$':
list_buffer += '$'
elif word == '%':
list_buffer += '%'
elif word == '^':
list_buffer += '^'
elif word == '&':
list_buffer += '&'
elif word == '*':
list_buffer += '*'
elif word == '(':
list_buffer += '('
elif word == ')':
list_buffer += ')'
elif word == '`':
list_buffer += '`'
elif word == '~':
list_buffer += '~'
elif word == '-':
list_buffer += '-'
elif word == '_':
list_buffer += '_'
elif word == '=':
list_buffer += '='
elif word == '+':
list_buffer += '+'
elif word == '\\':
list_buffer += '\\'
elif word == '|':
list_buffer += '|'
elif word == '[':
list_buffer += '['
elif word == '{':
list_buffer += '{'
elif word == ']':
list_buffer += ']'
elif word == '}':
list_buffer += '}'
elif word == ';':
list_buffer += ';'
elif word == ':':
list_buffer += ':'
elif word == '\'':
list_buffer += '\''
elif word == '"':
list_buffer += '"'
elif word == ',':
list_buffer += ','
elif word == '<':
list_buffer += '<'
elif word == '.':
list_buffer += '.'
elif word == '>':
list_buffer += '>'
elif word == '/':
list_buffer += '/'
elif word == '?':
list_buffer += '?'
elif word == 'Left':
list_buffer += 'Left'
elif word == 'Right':
list_buffer += 'Right'
elif word == 'Up':
list_buffer += 'Up'
elif word == 'Down':
list_buffer += 'Down'
elif word == 'space-bar':
list_buffer += ' '
elif word == 'tab-key':
list_buffer += 'Tab'
elif word == 'Enter':
list_buffer += 'Enter'
elif word == 'page-up':
list_buffer += 'PgUp'
elif word == 'page-down':
list_buffer += 'PgDn'
elif word == 'Backspace':
list_buffer += 'Backspace'
elif word == 'delete':
list_buffer += 'Del'
elif word == 'Escape':
list_buffer += 'Esc'
elif word == 'Home':
list_buffer += 'Home'
elif word == 'End':
list_buffer += 'End'
return list_buffer
# 'Press' <key>
def gotResults_1(self, words, fullResults):
if self.firstWord<0:
return
try:
top_buffer = ''
top_buffer += '{'
word = fullResults[1 + self.firstWord][0]
top_buffer = self.get_key(top_buffer, False, word)
top_buffer += '}'
top_buffer = do_flush(False, top_buffer);
self.firstWord += 2
except Exception, e:
handle_error('keys.vch', 20, '\'Press\' <key>', e)
self.firstWord = -1
# <key> 'Here'
def gotResults_2(self, words, fullResults):
if self.firstWord<0:
return
try:
top_buffer = ''
top_buffer = do_flush(False, top_buffer);
call_Dragon('ButtonClick', 'ii', [])
top_buffer += '{'
word = fullResults[0 + self.firstWord][0]
top_buffer = self.get_key(top_buffer, False, word)
top_buffer += '}'
top_buffer = do_flush(False, top_buffer);
self.firstWord += 2
except Exception, e:
handle_error('keys.vch', 21, '<key> \'Here\'', e)
self.firstWord = -1
# 'Space Bar'
def gotResults_3(self, words, fullResults):
if self.firstWord<0:
return
try:
top_buffer = ''
top_buffer += ' '
top_buffer = do_flush(False, top_buffer);
self.firstWord += 1
if len(words) > 1: self.gotResults_3(words[1:], fullResults)
except Exception, e:
handle_error('keys.vch', 23, '\'Space Bar\'', e)
self.firstWord = -1
# 'Tab Key'
def gotResults_4(self, words, fullResults):
if self.firstWord<0:
return
try:
top_buffer = ''
top_buffer += '{Tab}'
top_buffer = do_flush(False, top_buffer);
self.firstWord += 1
if len(words) > 1: self.gotResults_4(words[1:], fullResults)
except Exception, e:
handle_error('keys.vch', 24, '\'Tab Key\'', e)
self.firstWord = -1
def get_special(self, list_buffer, functional, word):
if word == 'Left':
list_buffer += 'Left'
elif word == 'Right':
list_buffer += 'Right'
elif word == 'Up':
list_buffer += 'Up'
elif word == 'Down':
list_buffer += 'Down'
elif word == 'space-bar':
list_buffer += ' '
elif word == 'tab-key':
list_buffer += 'Tab'
elif word == 'Enter':
list_buffer += 'Enter'
elif word == 'page-up':
list_buffer += 'PgUp'
elif word == 'page-down':
list_buffer += 'PgDn'
elif word == 'Backspace':
list_buffer += 'Backspace'
elif word == 'delete':
list_buffer += 'Del'
elif word == 'escape':
list_buffer += 'Esc'
return list_buffer
def get_mod(self, list_buffer, functional, word):
if word == 'Shift':
list_buffer += 'Shift'
elif word == 'control-key':
list_buffer += 'Ctrl'
elif word == 'Alt':
list_buffer += 'Alt'
return list_buffer
def get_nn(self, list_buffer, functional, word):
list_buffer += self.convert_number_word(word)
return list_buffer
# 'Press' <special> <nn>
def gotResults_5(self, words, fullResults):
if self.firstWord<0:
return
try:
top_buffer = ''
top_buffer += '{'
word = fullResults[1 + self.firstWord][0]
top_buffer = self.get_special(top_buffer, False, word)
top_buffer += '_'
word = fullResults[2 + self.firstWord][0]
top_buffer = self.get_nn(top_buffer, False, word)
top_buffer += '}'
top_buffer = do_flush(False, top_buffer);
self.firstWord += 3
except Exception, e:
handle_error('keys.vch', 36, '\'Press\' <special> <nn>', e)
self.firstWord = -1
# (('Left' | 'Right' | 'Up' | 'Down' | 'space-bar' | 'tab-key' | 'Enter' | 'page-up' | 'page-down' | 'Backspace' | 'delete' | 'escape')) <nn>
def gotResults_205(self, words, fullResults):
if self.firstWord<0:
return
try:
top_buffer = ''
top_buffer += '{'
word = fullResults[0 + self.firstWord][0]
if word == 'Left':
top_buffer += 'Left'
elif word == 'Right':
top_buffer += 'Right'
elif word == 'Up':
top_buffer += 'Up'
elif word == 'Down':
top_buffer += 'Down'
elif word == 'space-bar':
top_buffer += ' '
elif word == 'tab-key':
top_buffer += 'Tab'
elif word == 'Enter':
top_buffer += 'Enter'
elif word == 'page-up':
top_buffer += 'PgUp'
elif word == 'page-down':
top_buffer += 'PgDn'
elif word == 'Backspace':
top_buffer += 'Backspace'
elif word == 'delete':
top_buffer += 'Del'
elif word == 'escape':
top_buffer += 'Esc'
top_buffer += '_'
word = fullResults[1 + self.firstWord][0]
top_buffer = self.get_nn(top_buffer, False, word)
top_buffer += '}'
top_buffer = do_flush(False, top_buffer);
self.firstWord += 2
except Exception, e:
handle_error('keys.vch', 36, '((\'Left\' | \'Right\' | \'Up\' | \'Down\' | \'space-bar\' | \'tab-key\' | \'Enter\' | \'page-up\' | \'page-down\' | \'Backspace\' | \'delete\' | \'escape\')) <nn>', e)
self.firstWord = -1
# 'Press' <mod> <key> <nn>
def gotResults_6(self, words, fullResults):
if self.firstWord<0:
return
try:
top_buffer = ''
top_buffer += '{'
word = fullResults[1 + self.firstWord][0]
top_buffer = self.get_mod(top_buffer, False, word)
top_buffer += '+'
word = fullResults[2 + self.firstWord][0]
top_buffer = self.get_key(top_buffer, False, word)
top_buffer += '_'
word = fullResults[3 + self.firstWord][0]
top_buffer = self.get_nn(top_buffer, False, word)
top_buffer += '}'
top_buffer = do_flush(False, top_buffer);
self.firstWord += 4
except Exception, e:
handle_error('keys.vch', 37, '\'Press\' <mod> <key> <nn>', e)
self.firstWord = -1
# ('Shift' | 'control-key' | 'Alt') <key> <nn>
def gotResults_206(self, words, fullResults):
if self.firstWord<0:
return
try:
top_buffer = ''
top_buffer += '{'
word = fullResults[0 + self.firstWord][0]
if word == 'Shift':
top_buffer += 'Shift'
elif word == 'control-key':
top_buffer += 'Ctrl'
elif word == 'Alt':
top_buffer += 'Alt'
top_buffer += '+'
word = fullResults[1 + self.firstWord][0]
top_buffer = self.get_key(top_buffer, False, word)
top_buffer += '_'
word = fullResults[2 + self.firstWord][0]
top_buffer = self.get_nn(top_buffer, False, word)
top_buffer += '}'
top_buffer = do_flush(False, top_buffer);
self.firstWord += 3
except Exception, e:
handle_error('keys.vch', 37, '(\'Shift\' | \'control-key\' | \'Alt\') <key> <nn>', e)
self.firstWord = -1
# 'Press' <mod> <mod> <key> <nn>
def gotResults_7(self, words, fullResults):
if self.firstWord<0:
return
try:
top_buffer = ''
top_buffer += '{'
word = fullResults[1 + self.firstWord][0]
top_buffer = self.get_mod(top_buffer, False, word)
top_buffer += '+'
word = fullResults[2 + self.firstWord][0]
top_buffer = self.get_mod(top_buffer, False, word)
top_buffer += '+'
word = fullResults[3 + self.firstWord][0]
top_buffer = self.get_key(top_buffer, False, word)
top_buffer += '_'
word = fullResults[4 + self.firstWord][0]
top_buffer = self.get_nn(top_buffer, False, word)
top_buffer += '}'
top_buffer = do_flush(False, top_buffer);
self.firstWord += 5
except Exception, e:
handle_error('keys.vch', 38, '\'Press\' <mod> <mod> <key> <nn>', e)
self.firstWord = -1
# ('Shift' | 'control-key' | 'Alt') <mod> <key> <nn>
def gotResults_207(self, words, fullResults):
if self.firstWord<0:
return
try:
top_buffer = ''
top_buffer += '{'
word = fullResults[0 + self.firstWord][0]
if word == 'Shift':
top_buffer += 'Shift'
elif word == 'control-key':
top_buffer += 'Ctrl'
elif word == 'Alt':
top_buffer += 'Alt'
top_buffer += '+'
word = fullResults[1 + self.firstWord][0]
top_buffer = self.get_mod(top_buffer, False, word)
top_buffer += '+'
word = fullResults[2 + self.firstWord][0]
top_buffer = self.get_key(top_buffer, False, word)
top_buffer += '_'
word = fullResults[3 + self.firstWord][0]
top_buffer = self.get_nn(top_buffer, False, word)
top_buffer += '}'
top_buffer = do_flush(False, top_buffer);
self.firstWord += 4
except Exception, e:
handle_error('keys.vch', 38, '(\'Shift\' | \'control-key\' | \'Alt\') <mod> <key> <nn>', e)
self.firstWord = -1
# 'Press' <mod> <mod> <mod> <key> <nn>
def gotResults_8(self, words, fullResults):
if self.firstWord<0:
return
try:
top_buffer = ''
top_buffer += '{'
word = fullResults[1 + self.firstWord][0]
top_buffer = self.get_mod(top_buffer, False, word)
top_buffer += '+'
word = fullResults[2 + self.firstWord][0]
top_buffer = self.get_mod(top_buffer, False, word)
top_buffer += '+'
word = fullResults[3 + self.firstWord][0]
top_buffer = self.get_mod(top_buffer, False, word)
top_buffer += '+'
word = fullResults[4 + self.firstWord][0]
top_buffer = self.get_key(top_buffer, False, word)
top_buffer += '_'
word = fullResults[5 + self.firstWord][0]
top_buffer = self.get_nn(top_buffer, False, word)
top_buffer += '}'
top_buffer = do_flush(False, top_buffer);
self.firstWord += 6
except Exception, e:
handle_error('keys.vch', 39, '\'Press\' <mod> <mod> <mod> <key> <nn>', e)
self.firstWord = -1
# ('Shift' | 'control-key' | 'Alt') <mod> <mod> <key> <nn>
def gotResults_208(self, words, fullResults):
if self.firstWord<0:
return
try:
top_buffer = ''
top_buffer += '{'
word = fullResults[0 + self.firstWord][0]
if word == 'Shift':
top_buffer += 'Shift'
elif word == 'control-key':
top_buffer += 'Ctrl'
elif word == 'Alt':
top_buffer += 'Alt'
top_buffer += '+'
word = fullResults[1 + self.firstWord][0]
top_buffer = self.get_mod(top_buffer, False, word)
top_buffer += '+'
word = fullResults[2 + self.firstWord][0]
top_buffer = self.get_mod(top_buffer, False, word)
top_buffer += '+'
word = fullResults[3 + self.firstWord][0]
top_buffer = self.get_key(top_buffer, False, word)
top_buffer += '_'
word = fullResults[4 + self.firstWord][0]
top_buffer = self.get_nn(top_buffer, False, word)
top_buffer += '}'
top_buffer = do_flush(False, top_buffer);
self.firstWord += 5
except Exception, e:
handle_error('keys.vch', 39, '(\'Shift\' | \'control-key\' | \'Alt\') <mod> <mod> <key> <nn>', e)
self.firstWord = -1
def get_0to9(self, list_buffer, functional, word):
list_buffer += self.convert_number_word(word)
return list_buffer
def get_2to9(self, list_buffer, functional, word):
list_buffer += self.convert_number_word(word)
return list_buffer
def get_1to30(self, list_buffer, functional, word):
list_buffer += self.convert_number_word(word)
return list_buffer
def get_direction(self, list_buffer, functional, word):
list_buffer += word
return list_buffer
def get_left_right(self, list_buffer, functional, word):
if word == 'Left':
list_buffer += '{b}'
elif word == 'Right':
list_buffer += '{w}'
return list_buffer
def get_top_bottom(self, list_buffer, functional, word):
if word == 'Top':
list_buffer += '{Shift+h}'
elif word == 'Bottom':
list_buffer += '{Shift+l}'
elif word == 'Middle':
list_buffer += '{Shift+m}'
return list_buffer
# (1..30) <direction>
def gotResults_9(self, words, fullResults):
if self.firstWord<0:
return
try:
top_buffer = ''
top_buffer += '{'
word = fullResults[1 + self.firstWord][0]
top_buffer = self.get_direction(top_buffer, False, word)
top_buffer += '_'
word = fullResults[0 + self.firstWord][0]
top_buffer += self.convert_number_word(word)
top_buffer += '}'
top_buffer = do_flush(False, top_buffer);
self.firstWord += 2
except Exception, e:
handle_error('vim.vch', 26, '(1..30) <direction>', e)
self.firstWord = -1
# ('Change' | 'Copy') ('Char' | '1' | 'One')
def gotResults_10(self, words, fullResults):
if self.firstWord<0:
return
try:
top_buffer = ''
top_buffer += '{Esc}{Right}'
word = fullResults[0 + self.firstWord][0]
if word == 'Change':
top_buffer += '{c}'
elif word == 'Copy':
top_buffer += '{y}'
top_buffer += 'l'
top_buffer = do_flush(False, top_buffer);
self.firstWord += 2
if len(words) > 2: self.gotResults_10(words[2:], fullResults)
except Exception, e:
handle_error('vim.vch', 27, '(\'Change\' | \'Copy\') (\'Char\' | \'1\' | \'One\')', e)
self.firstWord = -1
# ('Change' | 'Copy') 'Back 1'
def gotResults_11(self, words, fullResults):
if self.firstWord<0:
return
try:
top_buffer = ''
top_buffer += '{Esc}{Right}'
word = fullResults[0 + self.firstWord][0]
if word == 'Change':
top_buffer += '{c}'
elif word == 'Copy':
top_buffer += '{y}'
top_buffer += 'h'
top_buffer = do_flush(False, top_buffer);
self.firstWord += 2
if len(words) > 2: self.gotResults_11(words[2:], fullResults)
except Exception, e:
handle_error('vim.vch', 28, '(\'Change\' | \'Copy\') \'Back 1\'', e)
self.firstWord = -1
# ('Change' | 'Copy') 'Back'
def gotResults_209(self, words, fullResults):
if self.firstWord<0:
return
try:
top_buffer = ''
top_buffer += '{Esc}{Right}'
word = fullResults[0 + self.firstWord][0]
if word == 'Change':
top_buffer += '{c}'
elif word == 'Copy':
top_buffer += '{y}'
top_buffer += 'h'
top_buffer = do_flush(False, top_buffer);
self.firstWord += 2
if len(words) > 2: self.gotResults_209(words[2:], fullResults)
except Exception, e:
handle_error('vim.vch', 28, '(\'Change\' | \'Copy\') \'Back\'', e)
self.firstWord = -1
# ('Change' | 'Copy') <1to30> 'Chars'
def gotResults_12(self, words, fullResults):
if self.firstWord<0:
return
try:
top_buffer = ''
top_buffer += '{Esc}{Right}'
word = fullResults[1 + self.firstWord][0]
top_buffer = self.get_1to30(top_buffer, False, word)
word = fullResults[0 + self.firstWord][0]
if word == 'Change':
top_buffer += '{c}'
elif word == 'Copy':
top_buffer += '{y}'
top_buffer += 'l'
top_buffer = do_flush(False, top_buffer);
self.firstWord += 3
except Exception, e:
handle_error('vim.vch', 29, '(\'Change\' | \'Copy\') <1to30> \'Chars\'', e)
self.firstWord = -1
# ('Change' | 'Copy') <1to30>
def gotResults_210(self, words, fullResults):
if self.firstWord<0:
return
try:
top_buffer = ''
top_buffer += '{Esc}{Right}'
word = fullResults[1 + self.firstWord][0]
top_buffer = self.get_1to30(top_buffer, False, word)
word = fullResults[0 + self.firstWord][0]
if word == 'Change':
top_buffer += '{c}'
elif word == 'Copy':
top_buffer += '{y}'
top_buffer += 'l'
top_buffer = do_flush(False, top_buffer);
self.firstWord += 2
except Exception, e:
handle_error('vim.vch', 29, '(\'Change\' | \'Copy\') <1to30>', e)
self.firstWord = -1
# ('Change' | 'Copy') 'Back' <1to30> 'Chars'
def gotResults_13(self, words, fullResults):
if self.firstWord<0:
return
try:
top_buffer = ''
top_buffer += '{Esc}{Right}'
word = fullResults[2 + self.firstWord][0]
top_buffer = self.get_1to30(top_buffer, False, word)
word = fullResults[0 + self.firstWord][0]
if word == 'Change':
top_buffer += '{c}'
elif word == 'Copy':
top_buffer += '{y}'
top_buffer += 'h'