-
Notifications
You must be signed in to change notification settings - Fork 11
/
diakonos.conf
1869 lines (1738 loc) · 82.7 KB
/
diakonos.conf
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
# suppress_welcome true
logfile ~/.diakonos/diakonos.log
# session.default_session default-session
# mouse false
# ---------------------------------------------------------------------
# Colour Definitions
#
# colour <integer greater than 7> <foreground colour> <background colour>
#
# For a list of colour names, see the list of format codes in the
# Language Definitions section, below.
#
# With this colour command you can set a different background colour than the
# terminal default.
#
# color is a synonym for colour.
colour 8 white blue
colour 9 white red
colour 10 white magenta
colour 11 yellow blue
colour 12 white green
colour 13 white brown
colour 14 black cyan
colour 15 yellow red
# Default background colour is whatever the terminal is set to (including
# transparency, if supported).
# Black is 0. Greyscale goes from 232 (dark grey) to 255 (white).
# colour.background 250
# When the cursor is view.margin.y lines or less from the top or
# bottom line, repeatedly scroll the screen view.jump.y lines until
# the cursor is more than view.margin.y lines from the top and
# bottom line.
# Similarly for view.margin.x and view.jump.x, with respect to the
# left-most and right-most screen columns.
view.margin.x 10
view.margin.y 5
view.jump.x 10
view.jump.y 5
view.scroll_amount 1
view.lookback 200
view.nonfilelines.visible false
view.nonfilelines.character ~
view.wrap.visual true
view.pairs.highlight true
view.line_numbers false
view.line_numbers.width 4
# view.line_numbers.number_format is a "printf" style format string
view.line_numbers.number_format "%3s "
view.line_numbers.format white
#view.column_markers.margin.column 80
view.column_markers.margin.format 9
view.non_search_area.format black
# bol_behaviour: This specifies where the cursor should go when the
# beginning-of-line key (the default is the Home key) is pressed.
# zero: Always move to the left-most column of the line
# first-char: Always move to the left-most non-whitespace character
# alternating-zero: As with 'zero', unless the cursor is
# already there, in which case, as with 'first-char'.
# alternating-first-char: As with 'first-char', unless the cursor is
# already there, in which case, as with 'zero'.
# bol_behavior is a synonym for bol_behaviour.
bol_behaviour alternating-first-char
# eol_behaviour: This specifies where the cursor should go when the
# end-of-line key (the default is the End key) is pressed.
# end: Always move to the right-most column of the line
# last-char: Always move to the right-most non-whitespace character
# alternating-end: As with 'end', unless the cursor is
# already there, in which case, as with 'last-char'.
# alternating-last-char: As with 'last-char', unless the cursor is
# already there, in which case, as with 'end'.
# eol_behavior is a synonym for eol_behaviour.
eol_behaviour alternating-end
delete_newline_on_delete_to_eol false
# Specifies whether the cursor should be at the end (false) of found text, or the
# beginning (true).
found_cursor_start false
find.return_on_abort false
find.show_context_after true
grep.context 0
max_clips 30
# If you are using KDE, you can uncomment this line to make Diakonos use KDE's
# klipper instead of its own internal clipboard. Use klipper-dcop for KDE 3,
# klipper-dbus for KDE 4.
#clipboard.external klipper-dcop
#clipboard.external klipper-dbus
# Non-KDE users can try xclip (separate, third-party software package)
# OSX users can set this to osx
#clipboard.external xclip
#clipboard.external osx
# The maximum number of undo lines held in memory per file
# Smaller files will be able to have more undo levels.
max_undo_lines 16384
convert_tabs false
strip_trailing_whitespace_on_save true
# Ensures saved files end with a newline character by adding it if necessary:
eof_newline true
save_backup_files false
diff_command diff -U 5
# Whether or not to use /usr/bin/file to determine whether files are readable
# before opening them.
use_magic_file false
fuzzy_file_find true
# fuzzy_file_find.recursive true
fuzzy_file_find.max_files 8192
# Fuzzy file finder ignores. Uses glob syntax, as per File.fnmatch
# http://www.ruby-doc.org/core/classes/File.html#M000001
# fuzzy_file_find.ignore some/relative/path/glob*
# fuzzy_file_find.ignore some/other/relative/path/glob*
fuzzy_file_find.ignore node_modules
fuzzy_file_find.ignore **/node_modules
fuzzy_file_find.ignore log
fuzzy_file_find.ignore tmp
fuzzy_file_find.ignore **/tmp
fuzzy_file_find.ignore **/dist
# By default, opened files are added to the end of the buffer list.
# i.e. with 3 buffers already open, opening a file will put it into buffer number 4
# Set open_as_first_buffer to true to put the next opened file into buffer number 1.
#open_as_first_buffer true
# ---------------------------------------------------------------------
# Status Line
# Use "% syntax" as placeholders
# e.g. %d for decimal integers, %s for strings
status.left -- %s %s%s%s%s -- (%s) --
status.right - %s Buf %d of %d --- L%3d/%3d C%2d --
# The string to use to fill in the space between the left and right sides
# of the status line.
status.filler -
status.modified_str (modified)
status.selecting_str (selecting)
status.unnamed_str (unnamed file)
status.read_only_str (read-only)
# status.vars: any subset of:
# line row num_lines col filename modified type buffer_number num_buffers selecting selection_mode session_name read_only
status.vars filename modified read_only selecting selection_mode type session_name buffer_number num_buffers row num_lines col
status.format inverse
# ---------------------------------------------------------------------
# Context Line
# The context line shows the wrapping context of the cursor, with respect to
# indentation. This shows the current code block(s) that the cursor is in.
context.visible false
context.combined false
context.max_levels 4
context.format inverse
context.separator |
context.separator.format red inverse
#context.max_segment_width 10
# ---------------------------------------------------------------------
# Interaction Line
# Duration of "alert" blink (in seconds) when user has made an invalid choice
interaction.blink_duration 0.05
interaction.blink_string ***********************************************************
# Time to wait (in seconds) before accepting user keystrokes when prompting for
# a choice which has no default
interaction.choice_delay 3
# ---------------------------------------------------------------------
# Key Configuration
#
# key <keystroke> [<keystroke>...];<function> [<arg>[,<arg>...]]
# If no function is specified, it unmaps any previous mapping.
# i.e. key <keystroke> [<keystroke>...];
# <keystroke> can be "keycode##" to specify specific keycodes.
# e.g. key keycode8;delete
# Note the lack of space after the word keycode.
# To obtain the string to use for any keychain, use the printKeychain command
# (default alt+k).
# The shell, execute and pasteShellResult commands can take variables:
# $f current buffer's filepath
# $d current buffer's directory
# $F all current buffer filepaths, space-separated
# $i get a string from user input
# $c temp file containing current clipboard text
# $s temp file containing currently selected text
key left;cursorLeft
key right;cursorRight
key up;cursorUp
key down;cursorDown
key home;cursorBOL
key esc O H;cursorBOL
key esc [ H;cursorBOL
key esc [ 1 ~ cursorBOL
key esc [ 7 ~ cursorBOL
key end;cursorEOL
key esc O F;cursorEOL
key esc [ F;cursorEOL
key esc [ 4 ~;cursorEOL
key esc [ 8 ~;cursorEOL
key pageup;pageUp
key pagedown;pageDown
#key ctrl+a;cursorBOL
key ctrl+e;cursorEOL
key alt+<;cursorBOF
key esc [ 1 ; 5 H cursor_bof
key keycode537 cursor_bof
key esc [ 1 ^ cursor_bof
key esc [ 7 ^ cursor_bof
key alt+>;cursorEOF
key esc [ 1 ; 5 F cursor_eof
key esc [ 4 ^ cursor_eof
key esc [ 8 ^ cursor_eof
key keycode532 cursor_eof
key alt+,;cursorTOV
key alt+.;cursorBOV
key ctrl+j cursor_return
key ctrl+l cursor_return :forward
key esc ` cursor_return :backward, DIFFERENT_FILE
key esc ~ cursor_return :forward, DIFFERENT_FILE
key alt+n go_to_char
key esc N go_to_char :after
key alt+p go_to_char_previous
key esc P go_to_char_previous :after
key esc up scrollUp
key esc O a scrollUp
key esc [ A scrollUp
key esc [ 1 ; 3 A scrollUp
key esc [ 1 ; 5 A scrollUp
key keycode520 scrollUp
key keycode521 scrollUp
key keycode568 scrollUp
key keycode570 scrollUp
key keycode571 scrollUp
key keycode572 scrollUp
key keycode574 scrollUp
key esc down scrollDown
key esc O b scrollDown
key esc [ B scrollDown
key esc [ 1 ; 3 B scrollDown
key esc [ 1 ; 5 B scrollDown
key keycode513 scrollDown
key keycode514 scrollDown
key keycode527 scrollDown
key keycode529 scrollDown
key keycode531 scrollDown
# Alt-right-arrow or Ctrl-right-arrow: next word
key esc right seek /(?:^|\W)(\w)/
key esc O c seek /(?:^|\W)(\w)/
key esc [ C seek /(?:^|\W)(\w)/
key esc [ 1 ; 3 C seek /(?:^|\W)(\w)/
key esc [ 1 ; 5 C seek /(?:^|\W)(\w)/
key esc [ 1 ; ; C seek /(?:^|\W)(\w)/
key keycode517 seek /(?:^|\W)(\w)/
key keycode518 seek /(?:^|\W)(\w)/
key keycode553 seek /(?:^|\W)(\w)/
key keycode555 seek /(?:^|\W)(\w)/
key keycode565 seek /(?:^|\W)(\w)/
# Alt-left-arrow or Ctrl-left-arrow: previous word
key esc left seek /\w(\W|$)/, :up
key esc O d seek /\w(\W|$)/, :up
key esc [ D seek /\w(\W|$)/, :up
key esc [ 1 ; 3 D seek /\w(\W|$)/, :up
key esc [ 1 ; 5 D seek /\w(\W|$)/, :up
key esc [ 1 ; ; D seek /\w(\W|$)/, :up
key keycode515 seek /\w(\W|$)/, :up
key keycode516 seek /\w(\W|$)/, :up
key keycode538 seek /\w(\W|$)/, :up
key keycode540 seek /\w(\W|$)/, :up
key keycode547 seek /\w(\W|$)/, :up
key esc [ 5 ; 5 ~ go_block_previous
key esc [ 6 ; 5 ~ go_block_next
key esc [ 5 ; 3 ~ go_block_outer
key esc [ 6 ; 3 ~ go_block_inner
key esc { go_to_pair_match
key esc } go_to_pair_match
key ctrl+g;goToLineAsk
key alt+b alt+b;toggleBookmark
key alt+b alt+n;goToNextBookmark
key alt+b alt+p;goToPreviousBookmark
key alt+b alt+a;addNamedBookmark
key alt+b alt+r;removeNamedBookmark
key alt+b alt+g;goToNamedBookmark
key alt+b alt+!;addNamedBookmark 1
key alt+b alt+@;addNamedBookmark 2
key alt+b alt+#;addNamedBookmark 3
key alt+b alt+$;addNamedBookmark 4
key alt+b alt+%;addNamedBookmark 5
key alt+b alt+1;goToNamedBookmark 1
key alt+b alt+2;goToNamedBookmark 2
key alt+b alt+3;goToNamedBookmark 3
key alt+b alt+4;goToNamedBookmark 4
key alt+b alt+5;goToNamedBookmark 5
key alt+t;goToTag
key alt+);goToTagUnderCursor
key alt+(;popTag
key backspace backspace
key ctrl+h backspace
key del delete
#key ctrl+k deleteLine
key ctrl+k delete_and_store_line
key ctrl+d ctrl+d delete_and_store_line
key ctrl+alt+k delete_to_eol
key ctrl+d $ delete_to_eol
key ctrl+d t delete_to
key ctrl+d ctrl+t delete_to
key ctrl+d f delete_from
key ctrl+d ctrl+f delete_from
key ctrl+d i delete_to_and_from
key ctrl+d I delete_to_and_from :inclusive
key ctrl+d ctrl+i delete_to_and_from
key esc del collapse_whitespace
key esc [ 3 ; ; ~ collapse_whitespace
key esc [ 3 ; 3 ~ collapse_whitespace
key alt+w wrap_paragraph
key alt+a columnize
key enter carriageReturn
key tab parsedIndent
#key tab indent
#key ctrl+alt+l unindent
key alt+i indent
key esc i indent
key esc I unindent
key esc [ Z unindent
key keycode353 unindent
#key tab insertSpaces 4
#key tab insertTab
key ctrl+t insertTab
key alt+j join_lines
key esc J join_lines_upward
key esc [ 1 ; 6 A move_lines direction: :up
key esc [ 1 ; 6 B move_lines direction: :down
key f1 help
key esc O P help
key esc [ 1 1 ~ help
key esc [ [ A help
key f13 help
key esc O 2 P help
key esc O 1 ; 2 P help
key f11 about
key esc [ 2 3 ~ about
key f12 openFile "~/.diakonos/diakonos.conf"
key esc [ 2 4 ~ openFile "~/.diakonos/diakonos.conf"
# Option-F12 in OSX
key f17 openFile "~/.diakonos/diakonos.conf"
key ctrl+alt+r redraw
key esc C toggleSessionSetting 'context.visible', DO_REDRAW
key ctrl+alt+d toggleSessionSetting 'display'
key esc W toggleSessionSetting 'view.wrap.visual', DO_REDRAW
key esc L toggleSessionSetting 'view.line_numbers', DO_REDRAW
key ctrl+n new_file
key ctrl+o open_file_ask
key alt+o open_matching_files
key ctrl+s save_file
key esc S save_file_as
key ctrl+w close_buffer
key ctrl+alt+o revert
key alt+! setReadOnly
key ctrl+q quit
key esc T setBufferType
key esc s esc n name_session
key esc s n name_session
key esc s esc l load_session
key esc s l load_session
key esc s esc d set_session_dir
key esc s d set_session_dir
key alt+1;switchToBufferNumber 1
key alt+2;switchToBufferNumber 2
key alt+3;switchToBufferNumber 3
key alt+4;switchToBufferNumber 4
key alt+5;switchToBufferNumber 5
key alt+6;switchToBufferNumber 6
key alt+7;switchToBufferNumber 7
key alt+8;switchToBufferNumber 8
key alt+9;switchToBufferNumber 9
# key alt+0;switchToBufferNumber 10
key alt+0 alt+0 switch_to_buffer_number 10
key alt+0 alt+1 switch_to_buffer_number 11
key alt+0 alt+2 switch_to_buffer_number 12
key alt+0 alt+3 switch_to_buffer_number 13
key alt+0 alt+4 switch_to_buffer_number 14
key alt+0 alt+5 switch_to_buffer_number 15
key alt+0 alt+6 switch_to_buffer_number 16
key alt+0 alt+7 switch_to_buffer_number 17
key alt+0 alt+8 switch_to_buffer_number 18
key alt+0 alt+9 switch_to_buffer_number 19
key alt+0 0 switch_to_buffer_number 10
key alt+0 1 switch_to_buffer_number 11
key alt+0 2 switch_to_buffer_number 12
key alt+0 3 switch_to_buffer_number 13
key alt+0 4 switch_to_buffer_number 14
key alt+0 5 switch_to_buffer_number 15
key alt+0 6 switch_to_buffer_number 16
key alt+0 7 switch_to_buffer_number 17
key alt+0 8 switch_to_buffer_number 18
key alt+0 9 switch_to_buffer_number 19
key alt+- switchToPreviousBuffer
key alt+= switchToNextBuffer
key ctrl+alt+b list_buffers
key ctrl+b 1 renumber_buffer 1
key ctrl+b 2 renumber_buffer 2
key ctrl+b 3 renumber_buffer 3
key ctrl+b 4 renumber_buffer 4
key ctrl+b 5 renumber_buffer 5
key ctrl+b 6 renumber_buffer 6
key ctrl+b 7 renumber_buffer 7
key ctrl+b 8 renumber_buffer 8
key ctrl+b 9 renumber_buffer 9
key ctrl+b 0 renumber_buffer 10
#key ctrl+space toggleSelection
key ctrl+space anchor_selection
key ctrl+c copySelection
key esc [ 2 ; 5 ~ copySelection
key ctrl+x cutSelection
key keycode383 cutSelection
key alt+u removeSelection
key ctrl+a select_all
key esc M b selection_mode_block
key esc M alt+b selection_mode_block
key esc M esc B selection_mode_block
key esc M n selection_mode_normal
key esc M alt+n selection_mode_normal
key esc M esc N selection_mode_normal
key esc ctrl+space select_line
key esc space select_wrapping_block
key.after anchor_selection ctrl+space select_word
key.after select_word ctrl+space select_word_another
key.after select_word_another ctrl+space select_word_another
key esc [ 1 ; 2 A anchor_unanchored_selection :cursor_up
key esc [ 1 ; 2 B anchor_unanchored_selection :cursor_down
key esc [ 1 ; 2 C anchor_unanchored_selection :cursor_right
key esc [ 1 ; 2 D anchor_unanchored_selection :cursor_left
key esc [ 1 ; 2 H anchor_unanchored_selection :cursor_bol
key esc [ 1 ; 2 F anchor_unanchored_selection :cursor_eol
key esc [ 1 ; 6 H anchor_unanchored_selection :cursor_bof
key esc [ 1 ; 6 F anchor_unanchored_selection :cursor_eof
key esc [ 1 ; 6 C anchor_unanchored_selection :seek, /(?:^|\W)(\w)/
key esc [ 1 ; 4 C anchor_unanchored_selection :seek, /(?:^|\W)(\w)/
key esc [ 1 ; 6 D anchor_unanchored_selection :seek, /\w(\W|$)/, :up
key esc [ 1 ; 4 D anchor_unanchored_selection :seek, /\w(\W|$)/, :up
# Select file diff in a patch
key ctrl+alt+d f select_block /^Index: /, /^(Index: |$)/, false
# Select a diff hunk in a patch
key ctrl+alt+d h select_block /^@@ /, /^(@@ |$)/, false
key esc # comment_out
key esc @ uncomment
key ctrl+alt+v;showClips
key ctrl+v;paste
key ctrl+y;unundo
key ctrl+z;undo
#key ctrl+z;suspend
key suspend;undo
#key suspend;suspend
key ctrl+f find
#key ctrl+f find case_sensitive: true
key alt+f find nil, case_sensitive: true
#key alt+f findExact
key ctrl+alt+f find nil, word_only: true
key esc F find_clip
#key ctrl+alt+f find nil, direction: :up, case_sensitive: true
key f3 find_again :down
key esc [ [ C find_again :down
key esc O R find_again :down
key esc [ 1 3 ~ find_again :down
key f15 find_again :up
key esc [ 2 8 ~ find_again :up
key esc O 2 R find_again :up
key esc [ 2 5 ~ find_again :up
key esc [ 1 ; 2 R find_again :up
key ctrl+r searchAndReplace
key alt+r searchAndReplace CASE_SENSITIVE
key ctrl+alt+u clearMatches
key esc g grep
key esc G grep_buffers
key ctrl+alt+g grep_dir
key alt+c close_code
key alt+e complete_word
key esc E complete_word :up
key f2 shell
key esc O Q shell
key esc [ 1 2 ~ shell
key esc [ [ B shell
key f8;execute
key esc d shell "diff -U 5 -w -b $c $s", "clipboard.diff"
#key esc F;shell "grep -n '$i' $F"
#key esc F;execute "grep -n '$i' $F | less"
#key esc l execute "aspell check $f"
key f14 evaluate
key esc O 2 Q evaluate
key esc [ 2 6 ~ evaluate
key esc [ 1 ; 2 Q evaluate
key ctrl+alt+c shell "ruby -c $f"
#key f10 spawn "firefox --display=:0 http://apidock.com/ruby/$i"
#key f10 spawn "DISPLAY=:0 opera --remote 'openURL(http://www.ruby-doc.org/core-1.9/classes/$i.html,new-page)' 2>&1 > /dev/null"
# To use the following:
# 1) Copy to the clipboard some Ruby code which operates on stdin text and outputs to stdout.
# 2) Select (highlight) some text to operate on.
# 3) Activate this pasteShellResult command.
# 4) The selected text should now be replaced with the script's results.
key ctrl+alt+p;pasteShellResult "cat $s | ruby $c"
#key ctrl+alt+p;pasteShellResult "cat $s | perl $c"
#key ctrl+alt+p;pasteShellResult "cat $s | python $c"
#key ctrl+alt+p;pasteShellResult "cat $s | sed -f $c"
#key ctrl+alt+p;pasteShellResult "cat $s | awk -f $c"
key alt+k printKeychain
key esc K print_mapped_function
key alt+m toggleMacroRecording
key f4 playMacro
key esc O S playMacro
key esc [ 1 4 ~ playMacro
key esc [ [ D playMacro
key f5 loadScript
key esc [ 1 5 ~ loadScript
key esc [ [ E loadScript
key f6 repeatLast
key esc [ 1 7 ~ repeatLast
key f7 operate_on_each_line
key f19 operate_on_string
key esc [ 1 8 ; 2 ~ operate_on_string
key esc f7 operate_on_lines
key esc [ 1 8 ; 3 ~ operate_on_lines
key esc [ 1 8 ; ; ~ operate_on_lines
key keycode319 operate_on_lines
# Emacs-like keychains
#key ctrl+s;find
#key ctrl+x ctrl+c;quit
#key ctrl+x ctrl+f;openFileAsk
#key ctrl+x ctrl+s;saveFile
# ------
mkey input left readline_cursor_left
mkey input esc [ D readline_cursor_left
mkey input right readline_cursor_right
mkey input esc [ C readline_cursor_right
mkey input esc esc readline_abort
mkey input ctrl+q readline_abort
mkey input ctrl+c readline_abort
mkey input enter readline_accept
mkey input backspace readline_backspace
mkey input ctrl+h readline_backspace
mkey input tab readline_complete_input
mkey input del readline_delete
mkey input ctrl+k readline_delete_line
mkey input ctrl+w readline_delete_word
mkey input up readline_cursor_up
mkey input esc [ A readline_cursor_up
mkey input down readline_cursor_down
mkey input esc [ B readline_cursor_down
mkey input home readline_cursor_bol
mkey input esc O H readline_cursor_bol
mkey input esc [ H readline_cursor_bol
mkey input esc [ 1 ~ readline_cursor_bol
mkey input esc [ 7 ~ readline_cursor_bol
mkey input ctrl+a readline_cursor_bol
mkey input end readline_cursor_eol
mkey input esc O F readline_cursor_eol
mkey input esc [ F readline_cursor_eol
mkey input esc [ 4 ~ readline_cursor_eol
mkey input esc [ 8 ~ readline_cursor_eol
mkey input ctrl+e readline_cursor_eol
mkey input pagedown readline_page_down
mkey input pageup readline_page_up
mkey input f5 readline_grep_context_decrease
mkey input esc [ 1 5 ~ readline_grep_context_decrease
mkey input esc [ [ E readline_grep_context_decrease
mkey input f6 readline_grep_context_increase
mkey input esc [ 1 7 ~ readline_grep_context_increase
mkey input f3 find_again :down
mkey input esc [ [ C find_again :down
mkey input esc O R find_again :down
mkey input esc [ 1 3 ~ find_again :down
mkey input f15 find_again :up
mkey input esc [ 2 8 ~ find_again :up
mkey input esc O 2 R find_again :up
# ---------------------------------------------------------------------
# Language Definitions
# For syntax highlighting and indentation.
# lang.<language>.tokens.<any name>[.case_insensitive] <regexp with one pair of parentheses identifying the token>
# lang.<language>.tokens.<any name>.format <format codes>
# <format codes> can be any subset of:
# normal black red green brown blue magenta cyan white standout underline inverse blink dim bold
# The numbers of colour pairs (as defined by the configuration command "colour")
# can also be used as format codes.
#
# indent.roundup: If a line's indentation is not evenly divisible by the
# indent.size, and indent.roundup is true, then the non-integer indentation
# level will be rounded up. If indent.roundup is false, then it will be
# rounded down.
# e.g. given an indent.size of 4, and a line with 6 spaces, indent.roundup
# true will make Diakonos consider the line indented 2 levels. With
# indent.roundup false, it will be considered indented 1 level.
#
# The filemask can also be used to specify specific filenames which
# don't conform to the standard extensions for a language.
# Used no matter what language
lang.all.tokens.conflict_ours ^<<<<<<<.*
lang.all.tokens.conflict_ours.format 15 bold
lang.all.tokens.conflict_theirs ^>>>>>>>.*
lang.all.tokens.conflict_theirs.format 15 bold
lang.all.tokens.conflict_separator ^=======$
lang.all.tokens.conflict_separator.format 9 bold
# lang.all.tokens.trailing_whitespace (\s+$)
# lang.all.tokens.trailing_whitespace.format 9
lang.all.surround.pair "(" "( " " )"
lang.all.surround.pair ")" "(" ")"
lang.all.surround.pair "{" "{ " " }"
lang.all.surround.pair "}" "{" "}"
lang.all.surround.pair "[" "[ " " ]"
lang.all.surround.pair "]" "[" "]"
lang.all.surround.pair "<" "< " " >"
lang.all.surround.pair ">" "<" ">"
lang.all.surround.pair "'" "'" "'"
lang.all.surround.pair "\"" "\"" "\""
lang.all.surround.pair "/*" "/*" "*/"
# Inherited by several languages
lang.shared.format.default white bold
lang.shared.format.selection inverse
lang.shared.format.found yellow inverse
lang.shared.format.pair cyan inverse
lang.shared.tokens.reserved_words.format white
lang.shared.tokens.constants.format yellow bold
lang.shared.tokens.comments.format 8 bold
lang.shared.tokens.non_alphanum.format white
lang.shared.tokens.regular_expressions.format red bold
lang.shared.tokens.singlequoted_strings.format green bold
lang.shared.tokens.doublequoted_strings.format green bold
lang.shared.tokens.backquoted_strings.format red bold
# Text (default)
lang.text.format.default white
lang.text.format.selection inverse
lang.text.format.found yellow inverse
lang.text.indent.size 2
lang.text.indent.auto true
lang.text.indent.roundup false
#lang.text.indent.using_tabs true
lang.text.tabsize 8
lang.text.wrap_margin 80
# Diakonos help files
lang.dhf.filemask \.dhf
lang.dhf.format.default white
lang.dhf.format.selection inverse
lang.dhf.format.found yellow inverse
lang.dhf.tokens.tags (^Tags: .+)
lang.dhf.tokens.tags.format blue
lang.dhf.tokens.title (^# .*)
lang.dhf.tokens.title.format 8 bold
lang.dhf.tokens.subtitle (^## .*)
lang.dhf.tokens.subtitle.format cyan bold
lang.dhf.tokens.subsubtitle (^### .*)
lang.dhf.tokens.subsubtitle.format cyan
lang.dhf.tokens.keys <(.+?)>
lang.dhf.tokens.keys.format white bold
lang.dhf.indent.size 2
lang.dhf.indent.auto true
lang.dhf.indent.roundup true
lang.dhf.wrap_margin 80
# XML
lang.xml.filemask \.(xml|xsd|xsl|rdl|aiml)$
lang.xml.format.default white
lang.xml.format.selection inverse
lang.xml.format.found yellow inverse
lang.xml.tabsize 8
lang.xml.indent.size 2
lang.xml.indent.auto true
lang.xml.indent.roundup true
#lang.xml.indent.using_tabs true
lang.xml.tokens.entities &\S+?;
lang.xml.tokens.entities.format magenta bold
lang.xml.tokens.comments.open (<!--)
lang.xml.tokens.comments.close (-->)
lang.xml.tokens.comments.format 8
lang.xml.tokens.comments.change_to xml_comment
lang.xml.comment_string "<!-- "
lang.xml.comment_close_string " -->"
lang.xml.tokens.code.open (<)(?:[^%]|$)
lang.xml.tokens.code.close (?:[^%]|^)(>)
lang.xml.tokens.code.format white bold
lang.xml.tokens.code.change_to xml_tag
lang.xml.tokens.template.open \[@--
lang.xml.tokens.template.close --@\]
lang.xml.tokens.template.format brown
lang.xml.tokens.template.change_to perl
lang.xml.closers.tag.regexp .*<([^/> ]*)(?:.+?)?>
lang.xml.closers.tag.closer </\1>
lang.xml_tag.format.default white bold
lang.xml_tag.format.selection inverse
lang.xml_tag.format.found yellow inverse
lang.xml_tag.tabsize 8
lang.xml_tag.indent.size 2
lang.xml_tag.indent.auto true
lang.xml_tag.indent.roundup true
#lang.xml_tag.indent.using_tabs true
lang.xml_tag.tokens.doublequoted_strings (\".*?[^\\]?\")
lang.xml_tag.tokens.doublequoted_strings.format green bold
lang.xml_tag.tokens.singlequoted_strings ('.*?[^\\]')
lang.xml_tag.tokens.singlequoted_strings.format green bold
lang.xml_tag.tokens.non_alphanum ([@!#$%^&*()\[\]{}/?=+\-\\|,<.>;:])
lang.xml_tag.tokens.non_alphanum.format white
lang.xml_tag.tokens.namespaces ([a-zA-Z_-]+):
lang.xml_tag.tokens.namespaces.format yellow bold
lang.xml_comment.format.default 8
lang.xml_comment.format.selection inverse
lang.xml_comment.format.found yellow inverse
lang.xml_comment.tabsize 8
lang.xml_comment.indent.size 2
lang.xml_comment.indent.auto true
lang.xml_comment.indent.roundup true
#lang.xml_comment.indent.using_tabs true
lang.xml.surround.pair "<!--" "<!-- " " -->"
lang.xml.surround.pair "/^<(.+?)>$/" "<\1>" "</\1>"
lang.html.filemask \.([rx]?html?|php|asp|erb|handlebars|mustache)$
lang.html.format.default white
lang.html.format.selection inverse
lang.html.format.found yellow inverse
lang.html.tabsize 8
lang.html.indent.size 2
lang.html.indent.auto true
lang.html.indent.roundup true
#lang.html.indent.using_tabs true
lang.html.tokens.comments.open (<!--)
lang.html.tokens.comments.close (-->)
lang.html.tokens.comments.format 8
lang.html.tokens.comments.change_to html_comment
lang.html.comment_string "<!-- "
lang.html.comment_close_string " -->"
lang.html.tokens.entities &\S+?;
lang.html.tokens.entities.format magenta bold
lang.html.tokens.eruby.open <%
lang.html.tokens.eruby.close %>
lang.html.tokens.eruby.format 9 bold
lang.html.tokens.eruby.change_to ruby
lang.html.tokens.ezamar.open <\?r
lang.html.tokens.ezamar.close \?>
lang.html.tokens.ezamar.format 9 bold
lang.html.tokens.ezamar.change_to ruby
lang.html.tokens.ezamar-value.open \#\{
lang.html.tokens.ezamar-value.close \}
lang.html.tokens.ezamar-value.format 9 bold
lang.html.tokens.ezamar-value.change_to ruby
lang.html.tokens.php.open <\?(?:php)?
lang.html.tokens.php.close \?>
lang.html.tokens.php.format 10 bold
lang.html.tokens.php.change_to php
lang.html.tokens.code.open (<)(?:[^%]|$)
lang.html.tokens.code.close (?:[^%]|^)(>)
lang.html.tokens.code.format white bold
lang.html.tokens.code.change_to html_tag
lang.html.tokens.template-interpolation.open \{\{
lang.html.tokens.template-interpolation.close \}\}
lang.html.tokens.template-interpolation.format white bold
# lang.html.tokens.template-interpolation.change_to html_template
lang.html.closers.tag.regexp .*<([^/> ]*)(?:.+?)?>
lang.html.closers.tag.closer </\1>
lang.html_tag.format.default white bold
lang.html_tag.format.selection inverse
lang.html_tag.format.found yellow inverse
lang.html_tag.tabsize 8
lang.html_tag.indent.size 4
lang.html_tag.indent.auto true
lang.html_tag.indent.roundup true
#lang.html_tag.indent.using_tabs true
lang.html_tag.tokens.elements.case_insensitive \b(?:S(?:T(?:R(?:IKE|ONG)|YLE)|(?:CRIP|ELEC)T|U[BP]|MALL|AMP|PAN)?|T(?:[DR]|(?:AB|IT)LE|(?:FOO)?T|H(?:EAD)?|EXTAREA|BODY)|B(?:ASE(?:FONT)?|LOCKQUOTE|UTTON|ODY|DO|IG|R)?|C(?:O(?:L(?:GROUP)?|DE)|APTION|ENTER|ITE)|F(?:RAME(?:SET)?|O(?:NT|RM)|IELDSET)|A(?:CRONYM|DDRESS|PPLET|BBR|REA)?|I(?:N(?:PUT|S)|SINDEX|FRAME|MG)?|O(?:PT(?:GROUP|ION)|BJECT|L)|L(?:I(?:NK)?|EGEND|ABEL)|D(?:[DT]|I[RV]|E?L|FN)|H(?:[123456R]|EAD|TML)|NO(?:FRAMES|SCRIPT)|M(?:E(?:NU|TA)|AP)|P(?:ARAM|RE)?|KBD|UL?|EM|VA|Q)\b
lang.html_tag.tokens.elements.format cyan
lang.html_tag.tokens.attributes.case_insensitive \b(?:o(?:n(?:mouse(?:o(?:ver|ut)|down|move|up)|(?:s(?:elec|ubmi)|rese)t|key(?:press|down|up)|c(?:hange|lick)|(?:un)?load|dblclick|focus|blur)|bject)|c(?:o(?:de(?:(?:bas|typ)e)?|l(?:s(?:pan)?|or)|(?:mpac|nten)t|ords)|h(?:ar(?:off|set)?|ecked)|ell(?:padd|spac)ing|l(?:ass(?:id)?|ear)|ite)|s(?:c(?:(?:hem|op)e|rolling)|t(?:a(?:ndby|rt)|yle)|(?:hap|iz)e|elected|ummary|pan|rc)|a(?:c(?:ce(?:p(?:t-charse)?t|sskey)|tion)|l(?:i(?:gn|nk)|t)|rchive|bbr|xis)|m(?:a(?:rgin(?:height|width)|xlength)|e(?:thod|dia)|ultiple)|h(?:e(?:aders|ight)|ref(?:lang)?|ttp-equiv|space)|d(?:e(?:clare|fer)|at(?:etime|a)|i(?:sabled|r))|v(?:al(?:u(?:etyp)?e|ign)|ersion|space|link)|n(?:o(?:(?:resiz|shad)e|href|wrap)|ame)|r(?:e(?:[lv]|adonly)|ows(?:pan)?|ules)|l(?:a(?:ng(?:uage)?|bel)|ongdesc|ink)|t(?:a(?:bindex|rget)|(?:itl|yp)e|ext)|b(?:(?:gcolo|orde)r|ackground)|f(?:rame(?:border)?|ace|or)|pro(?:file|mpt)|i(?:smap|d)|enctype|usemap|width)\b
lang.html_tag.tokens.attributes.format white
lang.html_tag.tokens.doublequoted_strings (\".*?[^\\]?\")
lang.html_tag.tokens.doublequoted_strings.format green bold
lang.html_tag.tokens.singlequoted_strings ('.*?[^\\]')
lang.html_tag.tokens.singlequoted_strings.format green bold
lang.html_tag.tokens.non_alphanum ([@!#$%^&*()\[\]{}/?=+\-\\|,<.>;:])
lang.html_tag.tokens.non_alphanum.format white
lang.html_comment.format.default 8
lang.html_comment.format.selection inverse
lang.html_comment.format.found yellow inverse
lang.html_comment.tabsize 8
lang.html_comment.indent.size 4
lang.html_comment.indent.auto true
lang.html_comment.indent.roundup true
#lang.html_comment.indent.using_tabs true
lang.html.surround.pair "<!--" "<!-- " " -->"
lang.html.surround.pair "/^<(.+?)>$/" "<\1>" "</\1>"
# CSS
lang.css.filemask \.(?:s?css|less)$
lang.css.format.default white
lang.css.format.selection inverse
lang.css.format.found yellow inverse
lang.css.tabsize 8
lang.css.indent.size 4
lang.css.indent.auto true
lang.css.indent.roundup true
#lang.css.indent.using_tabs true
lang.css.indent.indenters (\{)
lang.css.indent.unindenters (\})
lang.css.indent.preventers (\".+?[^\\]\")|('.+?[^\\]')|(\/\/.*)
lang.css.tokens.properties \b(?:b(?:o(?:rder(?:-(?:top(?:-(?:color|style|width))?|s(?:pacing|tyle)|col(?:lapse|or)|(?:righ|lef)t|bottom|width))?|ttom)|ackground(?:-(?:(?:attachmen|repea)t|position|color|image))?)|p(?:a(?:dding(?:-(?:(?:righ|lef)t|bottom|top))?|ge-break-(?:(?:befor|insid)e|after)|use(?:-(?:before|after))?)|itch(?:-range)?|lay-during|osition)|c(?:o(?:(?:unter-(?:incremen|rese)|nten)t|lor)|u(?:e(?:-(?:before|after))?|rsor)|aption-side|l(?:ear|ip))|m(?:a(?:rgin(?:-(?:(?:righ|lef)t|bottom|top))?|x-(?:height|width))|in-(?:height|width))|l(?:i(?:st-style(?:-(?:(?:imag|typ)e|position))?|ne-height)|e(?:tter-spacing|ft))|s(?:pe(?:ak(?:-(?:punctuation|numeral|header))?|ech-rate)|tress)|t(?:ext-(?:(?:decoratio|alig)n|transform|indent)|able-layout|op)|f(?:ont(?:-(?:(?:varian|weigh)t|s(?:tyl|iz)e|family))?|loat)|o(?:utline(?:-(?:color|style|width))?|verflow|rphans)|v(?:o(?:ice-family|lume)|ertical-align|isibility)|w(?:id(?:ows|th)|ord-spacing|hite-space)|e(?:mpty-cells|levation)|di(?:rection|splay)|ri(?:chness|ght)|unicode-bidi|azimuth|z-index|height|quotes)\s*:
lang.css.tokens.properties.format white bold
lang.css.tokens.colours #[A-Fa-f0-9]{6}|\b(?:aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)\b
lang.css.tokens.colours.format yellow bold
lang.css.tokens.long_comments.open \/\*
lang.css.tokens.long_comments.close \*\/
lang.css.tokens.long_comments.format = lang.shared.tokens.comments.format
lang.css.comment_string "/* "
lang.css.comment_close_string " */"
lang.css.tokens.numbers \b([0-9]+\.[0-9]+|[0-9]+)
lang.css.tokens.numbers.format blue bold
lang.css.tokens.units [^A-Za-z](em|pt|px)\b
lang.css.tokens.units.format cyan
lang.css.tokens.html_elements.case_insensitive \b(?:S(?:T(?:R(?:IKE|ONG)|YLE)|(?:CRIP|ELEC)T|U[BP]|MALL|AMP|PAN)?|T(?:[DR]|(?:AB|IT)LE|(?:FOO)?T|H(?:EAD)?|EXTAREA|BODY)|B(?:ASE(?:FONT)?|LOCKQUOTE|UTTON|ODY|DO|IG|R)?|C(?:O(?:L(?:GROUP)?|DE)|APTION|ENTER|ITE)|A(?:CRONYM|DDRESS|PPLET|BBR|REA)?|I(?:N(?:PUT|S)|SINDEX|FRAME|MG)?|F(?:RAME(?:SET)?|IELDSET|ORM)|O(?:PT(?:GROUP|ION)|BJECT|L)|L(?:I(?:NK)?|EGEND|ABEL)|D(?:[DT]|I[RV]|E?L|FN)|H(?:[123456R]|EAD|TML)|NO(?:FRAMES|SCRIPT)|M(?:E(?:NU|TA)|AP)|P(?:ARAM|RE)?|KBD|UL?|VA|Q)\b
lang.css.tokens.html_elements.format green
lang.css.tokens.values \b(auto|block|inherit|inline|larger|none|smaller|solid)\b
lang.css.tokens.values.format blue bold
lang.css.column_delimiters :|,
lang.css.tokens.variables @\w+
lang.css.tokens.variables.format cyan bold
# Javascript, ES6
lang.javascript.filemask \.(?:[cm]?jsx?|es6|tsx?|json)$
lang.javascript.format.default white bold
lang.javascript.format.selection inverse
lang.javascript.format.found yellow inverse
lang.javascript.tokens.doublequoted_strings (\".*?[^\\]?\")
lang.javascript.tokens.doublequoted_strings.format green bold
lang.javascript.tokens.singlequoted_strings ('.*?[^\\]')
lang.javascript.tokens.singlequoted_strings.format green bold
# lang.javascript.tokens.backquoted_strings (`.*?[^\\]`)
# lang.javascript.tokens.backquoted_strings.format green bold
lang.javascript.tokens.interpolated_string.open (`)
lang.javascript.tokens.interpolated_string.close (`)
lang.javascript.tokens.interpolated_string.format green bold
lang.javascript.tokens.interpolated_string.change_to javascript_template_literal
lang.javascript_template_literal.format.default green bold
lang.javascript_template_literal.tokens.interpolation.open (\$\{)
lang.javascript_template_literal.tokens.interpolation.close (\})
lang.javascript_template_literal.tokens.interpolation.format 12 bold
lang.javascript_template_literal.tokens.interpolation.change_to javascript
lang.javascript.tokens.reserved_words \b(abstract|arguments|boolean|break|byte|case|catch|char|class|const|continue|debugger|default|delete|do|double|else|enum|eval|export|extends|false|final|finally|float|for|function|goto|if|implements|import|in|instanceof|int|interface|let|long|native|new|null|package|private|protected|public|return|short|static|super|switch|synchronized|this|throw|throws|transient|true|try|typeof|var|void|volatile|while|with|yield)\b
lang.javascript.tokens.reserved_words.format white
lang.javascript.tokens.constants \b([A-Z_]+|[A-Z_][A-Z0-9_]+)\b
lang.javascript.tokens.constants.format yellow bold
lang.javascript.tokens.comments (\/\/.*)
lang.javascript.tokens.comments.format = lang.shared.tokens.comments.format
lang.javascript.comment_string "/* "
lang.javascript.comment_close_string " */"
lang.javascript.tokens.long_comments.open \/\*
lang.javascript.tokens.long_comments.close \*\/
lang.javascript.tokens.long_comments.format = lang.shared.tokens.comments.format
lang.javascript.tokens.regular_expressions (\/.+?[^\\]\/)
lang.javascript.tokens.regular_expressions.format red bold
lang.javascript.tokens.non_alphanum ([!@#$%\^&*()\[\]{}/?=+\-\\|,<.>;:])
lang.javascript.tokens.non_alphanum.format white
lang.javascript.indent.size 2
lang.javascript.indent.auto true
lang.javascript.indent.roundup false
#lang.javascript.indent.using_tabs true
lang.javascript.indent.indenters ([{(])
lang.javascript.indent.unindenters ([})])
lang.javascript.indent.preventers (\".+?[^\\]\")|('.+?[^\\]')|(\/\/.*)
lang.javascript.indent.ignore ^(.+:|\s*?)$
lang.javascript.indent.closers true
lang.javascript.context.ignore ^(.+:|\s*\{?)$
lang.javascript.closers.for.regexp for$
lang.javascript.closers.for.closer { |m| "( $i = 0; $i < limit; $i++ ) {\n%_\n}" }
lang.javascript.column_delimiters =|:|,
# Ruby
lang.ruby.filemask (?:[Rr]akefile)|Gemfile|(?:\.(?:r[bu]|gem(?:spec)?|rake)$)
lang.ruby.bangmask #!.*ruby
lang.ruby.format.default = lang.shared.format.default
lang.ruby.format.selection = lang.shared.format.selection
lang.ruby.format.pair = lang.shared.format.pair
lang.ruby.format.found = lang.shared.format.found
lang.ruby.tokens.reserved_words \b(?:__FILE__|and|def|end|in|or|self|__LINE__|begin|defined\?|ensure|module|redo|super|until|BEGIN|break|do|false|next|rescue|then|when|END|case|else|for|nil|retry|true|while|alias|class|elsif|not|return|undef|yield)\b
lang.ruby.tokens.reserved_words.format = lang.shared.tokens.reserved_words.format
lang.ruby.tokens.non_modifiers ^\s*(if|unless)
lang.ruby.tokens.non_modifiers.format white
lang.ruby.tokens.modifiers \s+(if|unless)
lang.ruby.tokens.modifiers.format 9 bold
lang.ruby.tokens.constants \b([A-Z_]+|[A-Z_][A-Z0-9_]+)\b
lang.ruby.tokens.constants.format = lang.shared.tokens.constants.format
lang.ruby.tokens.namespace ::
lang.ruby.tokens.namespace.format white
lang.ruby.tokens.symbols (:[a-zA-Z_][a-zA-Z_0-9]*)
lang.ruby.tokens.symbols.format white bold
lang.ruby.tokens.hash_keys \b(\w+):\s
lang.ruby.tokens.hash_keys.format white bold
lang.ruby.tokens.comments (#.*)
lang.ruby.tokens.comments.format = lang.shared.tokens.comments.format
lang.ruby.comment_string "# "
lang.ruby.tokens.access_control ^\s*pr(?:ivate|otected)\s*$
lang.ruby.tokens.access_control.format 13 bold
lang.ruby.tokens.access_control2 (private|protected) def
lang.ruby.tokens.access_control2.format yellow
lang.ruby.tokens.long_comments.open ^=begin yellow bold
lang.ruby.tokens.long_comments.close ^=end
lang.ruby.tokens.long_comments.format = lang.shared.tokens.comments.format
lang.ruby.tokens.instance_variables (@[A-Za-z_][A-Za-z_0-9]*)
lang.ruby.tokens.instance_variables.format white bold
lang.ruby.tokens.regular_expressions (\/.+?[^\\]\/)
lang.ruby.tokens.regular_expressions.format red bold
lang.ruby.tokens.regular_expressions2 (%r\{.+?[^\}]\})
lang.ruby.tokens.regular_expressions2.format red bold
lang.ruby.tokens.doublequoted_strings (\".*?[^\\]?\")
lang.ruby.tokens.doublequoted_strings.format green bold
lang.ruby.tokens.interpolated_string.open (%Q?\{)
lang.ruby.tokens.interpolated_string.close (\})
lang.ruby.tokens.interpolated_string.format red bold
lang.ruby.tokens.interpolated_string.change_to interpolated_ruby
lang.ruby.tokens.interpolated_string2.open (%Q?<)
lang.ruby.tokens.interpolated_string2.close (>)
lang.ruby.tokens.interpolated_string2.format green bold
lang.ruby.tokens.interpolated_string2.change_to interpolated_ruby
lang.ruby.tokens.interpolated_string3.open (%Q?\|)
lang.ruby.tokens.interpolated_string3.close (\|)
lang.ruby.tokens.interpolated_string3.format green bold
lang.ruby.tokens.interpolated_string3.change_to interpolated_ruby
lang.interpolated_ruby.format.default green bold
lang.interpolated_ruby.tokens.interpolation.open (#\{)
lang.interpolated_ruby.tokens.interpolation.close (\})
lang.interpolated_ruby.tokens.interpolation.format 12 bold
lang.interpolated_ruby.tokens.interpolation.change_to ruby
lang.ruby.tokens.singlequoted_strings ('.*?[^\\]'|'')
lang.ruby.tokens.singlequoted_strings.format green bold
lang.ruby.tokens.backquoted_strings (`.*?[^\\]`|``)
lang.ruby.tokens.backquoted_strings.format red bold
lang.ruby.tokens.interpolated_exec_string.open (%x\{)
lang.ruby.tokens.interpolated_exec_string.close (\})
lang.ruby.tokens.interpolated_exec_string.format red bold
lang.ruby.tokens.interpolated_exec_string.change_to interpolated_exec_ruby
lang.interpolated_exec_ruby.format.default red bold
lang.interpolated_exec_ruby.tokens.interpolation.open (#\{)
lang.interpolated_exec_ruby.tokens.interpolation.close (\})
lang.interpolated_exec_ruby.tokens.interpolation.format 9 bold
lang.interpolated_exec_ruby.tokens.interpolation.change_to ruby