diakonos 0.8.11 → 0.9.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG +433 -0
  3. data/LICENCE.md +675 -0
  4. data/bin/diakonos +6 -0
  5. data/diakonos-256-colour.conf +220 -0
  6. data/diakonos.conf +1802 -0
  7. data/help/about-help.dhf +31 -0
  8. data/help/clipboard.dhf +45 -0
  9. data/help/close-file.dhf +6 -0
  10. data/help/code-block-navigation.dhf +16 -0
  11. data/help/column-markers.dhf +15 -0
  12. data/help/config.dhf +69 -0
  13. data/help/cursor-stack.dhf +19 -0
  14. data/help/delete.dhf +41 -0
  15. data/help/extensions.dhf +125 -0
  16. data/help/file-type.dhf +24 -0
  17. data/help/key-mapping.dhf +127 -0
  18. data/help/line-numbers.dhf +22 -0
  19. data/help/macros.dhf +27 -0
  20. data/help/new-file.dhf +6 -0
  21. data/help/open-file.dhf +21 -0
  22. data/help/quit.dhf +7 -0
  23. data/help/resizing.dhf +19 -0
  24. data/help/ruby.dhf +17 -0
  25. data/help/save-file.dhf +10 -0
  26. data/help/scripting.dhf +92 -0
  27. data/help/search.dhf +103 -0
  28. data/help/shell.dhf +60 -0
  29. data/help/speed.dhf +23 -0
  30. data/help/support.dhf +15 -0
  31. data/help/switch-buffers.dhf +15 -0
  32. data/help/tabs.dhf +36 -0
  33. data/help/undo.dhf +9 -0
  34. data/help/uninstall.dhf +18 -0
  35. data/help/welcome.dhf +32 -0
  36. data/help/word-wrap.dhf +17 -0
  37. data/lib/diakonos/about.rb +69 -0
  38. data/lib/diakonos/bookmark.rb +46 -0
  39. data/lib/diakonos/buffer/bookmarking.rb +47 -0
  40. data/lib/diakonos/buffer/cursor.rb +335 -0
  41. data/lib/diakonos/buffer/delete.rb +170 -0
  42. data/lib/diakonos/buffer/display.rb +356 -0
  43. data/lib/diakonos/buffer/file.rb +157 -0
  44. data/lib/diakonos/buffer/indentation.rb +175 -0
  45. data/lib/diakonos/buffer/searching.rb +552 -0
  46. data/lib/diakonos/buffer/selection.rb +360 -0
  47. data/lib/diakonos/buffer/undo.rb +73 -0
  48. data/lib/diakonos/buffer-hash.rb +60 -0
  49. data/lib/diakonos/buffer-management.rb +59 -0
  50. data/lib/diakonos/buffer.rb +698 -0
  51. data/lib/diakonos/clipboard-klipper-dbus.rb +62 -0
  52. data/lib/diakonos/clipboard-klipper.rb +62 -0
  53. data/lib/diakonos/clipboard-osx.rb +59 -0
  54. data/lib/diakonos/clipboard-xclip.rb +60 -0
  55. data/lib/diakonos/clipboard.rb +47 -0
  56. data/lib/diakonos/config-file.rb +67 -0
  57. data/lib/diakonos/config.rb +381 -0
  58. data/lib/diakonos/core-ext/enumerable.rb +15 -0
  59. data/lib/diakonos/core-ext/hash.rb +60 -0
  60. data/lib/diakonos/core-ext/object.rb +6 -0
  61. data/lib/diakonos/core-ext/regexp.rb +6 -0
  62. data/lib/diakonos/core-ext/string.rb +122 -0
  63. data/lib/diakonos/ctag.rb +28 -0
  64. data/lib/diakonos/cursor.rb +27 -0
  65. data/lib/diakonos/display/format.rb +75 -0
  66. data/lib/diakonos/display.rb +336 -0
  67. data/lib/diakonos/extension-set.rb +49 -0
  68. data/lib/diakonos/extension.rb +34 -0
  69. data/lib/diakonos/finding.rb +40 -0
  70. data/lib/diakonos/functions/basics.rb +34 -0
  71. data/lib/diakonos/functions/bookmarking.rb +61 -0
  72. data/lib/diakonos/functions/buffers.rb +489 -0
  73. data/lib/diakonos/functions/clipboard.rb +70 -0
  74. data/lib/diakonos/functions/cursor.rb +264 -0
  75. data/lib/diakonos/functions/grepping.rb +83 -0
  76. data/lib/diakonos/functions/indentation.rb +71 -0
  77. data/lib/diakonos/functions/readline.rb +93 -0
  78. data/lib/diakonos/functions/search.rb +179 -0
  79. data/lib/diakonos/functions/selection.rb +98 -0
  80. data/lib/diakonos/functions/sessions.rb +78 -0
  81. data/lib/diakonos/functions/shell.rb +250 -0
  82. data/lib/diakonos/functions/tags.rb +65 -0
  83. data/lib/diakonos/functions/text-manipulation.rb +196 -0
  84. data/lib/diakonos/functions-deprecated.rb +77 -0
  85. data/lib/diakonos/functions.rb +292 -0
  86. data/lib/diakonos/grep.rb +98 -0
  87. data/lib/diakonos/help.rb +47 -0
  88. data/lib/diakonos/hooks.rb +13 -0
  89. data/lib/diakonos/installation.rb +19 -0
  90. data/lib/diakonos/interaction-handler.rb +216 -0
  91. data/lib/diakonos/interaction.rb +52 -0
  92. data/lib/diakonos/key-map.rb +62 -0
  93. data/lib/diakonos/keying.rb +442 -0
  94. data/lib/diakonos/line-mover.rb +42 -0
  95. data/lib/diakonos/list.rb +59 -0
  96. data/lib/diakonos/logging.rb +27 -0
  97. data/lib/diakonos/mode.rb +17 -0
  98. data/lib/diakonos/mouse.rb +18 -0
  99. data/lib/diakonos/number-fitter.rb +11 -0
  100. data/lib/diakonos/range.rb +31 -0
  101. data/lib/diakonos/readline/functions.rb +82 -0
  102. data/lib/diakonos/readline.rb +222 -0
  103. data/lib/diakonos/search.rb +58 -0
  104. data/lib/diakonos/sessions.rb +257 -0
  105. data/lib/diakonos/sized-array.rb +48 -0
  106. data/lib/diakonos/text-mark.rb +19 -0
  107. data/lib/diakonos/vendor/fuzzy_file_finder.rb +365 -0
  108. data/lib/diakonos/version.rb +25 -0
  109. data/lib/diakonos/window.rb +43 -0
  110. data/lib/diakonos.rb +592 -0
  111. metadata +160 -68
@@ -0,0 +1,220 @@
1
+ colour 32 253 39 # selection; light grey on light blue
2
+ colour 33 255 69 # comments; white on blue
3
+ colour 34 45 black # Ruby symbols; light blue on black
4
+ colour 35 123 black # Ruby instance variables; light blue on black
5
+ colour 36 177 54 # regular expressions; purple on dark purple
6
+ colour 37 111 17 # single-quoted strings; light blue on dark blue
7
+ colour 38 117 18 # double-quoted strings; light blue on dark blue
8
+ colour 39 213 90 # shell-quoted strings; light purple on purple
9
+ colour 40 15 234 # constants; white on light black
10
+ colour 44 224 88 # Ruby modifiers; light red on dark red
11
+
12
+ colour 41 15 233 # XML nodes; white on light black
13
+ colour 42 45 233 # XML attributes; light blue on black
14
+ colour 43 123 233 # XML namespaces; light blue on black
15
+
16
+ colour 45 white 52 # 80-char column marker white on very dark red
17
+
18
+ colour 46 236 0 # lowlight very dark grey on black
19
+ colour 47 243 18 # white on dim blue
20
+
21
+ view.column_markers.margin.format 45
22
+
23
+ view.non_search_area.format 46
24
+
25
+ # Shared
26
+
27
+ lang.shared.format.default white bold
28
+ lang.shared.format.selection 32
29
+ lang.shared.format.found yellow inverse
30
+ lang.shared.tokens.reserved_words.format white
31
+ lang.shared.tokens.constants.format 40
32
+ lang.shared.tokens.comments.format 33
33
+ lang.shared.tokens.non_alphanum.format white
34
+ lang.shared.tokens.regular_expressions.format 36
35
+ lang.shared.tokens.singlequoted_strings.format 37
36
+ lang.shared.tokens.doublequoted_strings.format 38
37
+ lang.shared.tokens.backquoted_strings.format 39
38
+
39
+ # Diakonos help files
40
+
41
+ lang.dhf.format.default white
42
+ lang.dhf.format.selection inverse
43
+ lang.dhf.format.found = lang.shared.format.found
44
+ lang.dhf.tokens.tags.format blue
45
+ lang.dhf.tokens.title.format 33
46
+
47
+ # Ruby
48
+
49
+ lang.ruby.format.default = lang.shared.format.default
50
+ lang.ruby.format.selection = lang.shared.format.selection
51
+ lang.ruby.format.found = lang.shared.format.found
52
+ lang.ruby.tokens.reserved_words.format = lang.shared.tokens.reserved_words.format
53
+ lang.ruby.tokens.constants.format = lang.shared.tokens.constants.format
54
+ lang.ruby.tokens.comments.format = lang.shared.tokens.comments.format
55
+ lang.ruby.tokens.non_alphanum.format = lang.shared.tokens.non_alphanum.format
56
+ lang.ruby.tokens.regular_expressions.format = lang.shared.tokens.regular_expressions.format
57
+ lang.ruby.tokens.singlequoted_strings.format = lang.shared.tokens.singlequoted_strings.format
58
+ lang.ruby.tokens.doublequoted_strings.format = lang.shared.tokens.doublequoted_strings.format
59
+ lang.ruby.tokens.backquoted_strings.format = lang.shared.tokens.backquoted_strings.format
60
+ lang.ruby.tokens.modifiers.format 44
61
+ lang.ruby.tokens.symbols.format 34
62
+ lang.ruby.tokens.hash_keys.format 34
63
+ lang.ruby.tokens.instance_variables.format 35
64
+ lang.ruby.tokens.regular_expressions2.format 36
65
+ lang.ruby.tokens.interpolated_string.format 38
66
+ lang.ruby.tokens.interpolated_string2.format 38
67
+ lang.ruby.tokens.interpolated_string3.format 38
68
+ lang.interpolated_ruby.format.default 38
69
+ lang.interpolated_ruby.tokens.interpolation.format 12 bold
70
+ lang.ruby.tokens.interpolated_exec_string.format 39
71
+ lang.interpolated_exec_ruby.format.default 39
72
+ lang.interpolated_exec_ruby.tokens.interpolation.format 9 bold
73
+ lang.ruby.tokens.character_codes.format magenta bold
74
+ lang.ruby.tokens.long_comments.format 8 bold
75
+ lang.ruby.tokens.sql_string.format 1
76
+
77
+ # Perl
78
+
79
+ lang.perl.format.default = lang.shared.format.default
80
+ lang.perl.format.selection = lang.shared.format.selection
81
+ lang.perl.format.found = lang.shared.format.found
82
+ lang.perl.tokens.reserved_words.format = lang.shared.tokens.reserved_words.format
83
+ lang.perl.tokens.constants.format = lang.shared.tokens.constants.format
84
+ lang.perl.tokens.comments.format = lang.shared.tokens.comments.format
85
+ lang.perl.tokens.non_alphanum.format = lang.shared.tokens.non_alphanum.format
86
+ lang.perl.tokens.regular_expressions.format = lang.shared.tokens.regular_expressions.format
87
+ lang.perl.tokens.singlequoted_strings.format = lang.shared.tokens.singlequoted_strings.format
88
+ lang.perl.tokens.doublequoted_strings.format = lang.shared.tokens.doublequoted_strings.format
89
+ lang.perl.tokens.backquoted_strings.format = lang.shared.tokens.backquoted_strings.format
90
+ lang.perl.tokens.builtins.format cyan bold
91
+ lang.perl.tokens.array_variables.format red bold
92
+ lang.perl.tokens.hash_variables.format magenta bold
93
+
94
+ # Java
95
+
96
+ lang.java.format.default = lang.shared.format.default
97
+ lang.java.format.selection = lang.shared.format.selection
98
+ lang.java.format.found = lang.shared.format.found
99
+ lang.java.tokens.singlequoted_strings.format = lang.shared.tokens.singlequoted_strings.format
100
+ lang.java.tokens.doublequoted_strings.format = lang.shared.tokens.doublequoted_strings.format
101
+ lang.java.tokens.reserved_words.format white
102
+ lang.java.tokens.constants.format = lang.shared.tokens.constants.format
103
+ lang.java.tokens.comments.format = lang.shared.tokens.comments.format
104
+ lang.java.tokens.long_comments.format = lang.shared.tokens.comments.format
105
+ lang.java.tokens.non_alphanum.format = lang.shared.tokens.non_alphanum.format
106
+ lang.java.tokens.regular_expressions.format = lang.shared.tokens.regular_expressions.format
107
+
108
+ # Javascript, ES6
109
+
110
+ lang.javascript.format.default = lang.shared.format.default
111
+ lang.javascript.format.selection = lang.shared.format.selection
112
+ lang.javascript.format.found = lang.shared.format.found
113
+ lang.javascript.tokens.singlequoted_strings.format = lang.shared.tokens.singlequoted_strings.format
114
+ lang.javascript.tokens.doublequoted_strings.format = lang.shared.tokens.doublequoted_strings.format
115
+ lang.javascript.tokens.doublequoted_strings.format = lang.shared.tokens.doublequoted_strings.format
116
+ lang.javascript.tokens.reserved_words.format white
117
+ lang.javascript.tokens.constants.format = lang.shared.tokens.constants.format
118
+ lang.javascript.tokens.comments.format = lang.shared.tokens.comments.format
119
+ lang.javascript.tokens.long_comments.format = lang.shared.tokens.comments.format
120
+ lang.javascript.tokens.non_alphanum.format = lang.shared.tokens.non_alphanum.format
121
+ lang.javascript.tokens.regular_expressions.format = lang.shared.tokens.regular_expressions.format
122
+
123
+ # XML
124
+
125
+ lang.xml.format.default white
126
+ lang.xml.format.selection = lang.shared.format.selection
127
+ lang.xml.format.found = lang.shared.format.found
128
+ lang.xml.tokens.entities.format magenta bold
129
+ lang.xml.tokens.code.format white bold
130
+ lang.xml.tokens.comments.format = lang.shared.tokens.comments.format
131
+ lang.xml.tokens.template.format brown
132
+ lang.xml_tag.format.default 41
133
+ lang.xml_tag.format.selection 32
134
+ lang.xml_tag.format.found yellow inverse
135
+ lang.xml_tag.tokens.doublequoted_strings.format = lang.shared.tokens.doublequoted_strings.format
136
+ lang.xml_tag.tokens.singlequoted_strings.format = lang.shared.tokens.doublequoted_strings.format
137
+ lang.xml_tag.tokens.non_alphanum.format = lang.shared_tag.tokens.non_alphanum.format
138
+ lang.xml_tag.tokens.namespaces.format 43
139
+ lang.xml_comment.format.default = lang.shared.tokens.comments.format
140
+ lang.xml_comment.format.selection = lang.shared.format.selection
141
+ lang.xml_comment.format.found = lang.shared.format.found
142
+ lang.xml_tag.tokens.attributes ([a-zA-Z_-]+?)=
143
+ lang.xml_tag.tokens.attributes.format 42
144
+
145
+ # HTML
146
+
147
+ lang.html.tokens.comments.format = lang.shared.tokens.comments.format
148
+ lang.html_comment.format.default = lang.shared.tokens.comments.format
149
+ lang.html_tag.format.default 41
150
+ lang.html_tag.format.selection 32
151
+ lang.html_tag.tokens.attributes.format 42
152
+ lang.html_tag.tokens.doublequoted_strings.format = lang.shared.tokens.doublequoted_strings.format
153
+ lang.html_tag.tokens.singlequoted_strings.format = lang.shared.tokens.doublequoted_strings.format
154
+
155
+ # Haskell
156
+
157
+ lang.haskell.format.default = lang.shared.format.default
158
+ lang.haskell.format.selection = lang.shared.format.selection
159
+ lang.haskell.format.found = lang.shared.format.found
160
+ lang.haskell.tokens.comments.format = lang.shared.tokens.comments.format
161
+ lang.haskell.tokens.doublequoted_strings.format = lang.shared.tokens.doublequoted_strings.format
162
+ lang.haskell.tokens.singlequoted_strings.format = lang.shared.tokens.singlequoted_strings.format
163
+ lang.haskell.tokens.non_alphanum.format = lang.shared_tag.tokens.non_alphanum.format
164
+
165
+ # PHP
166
+
167
+ lang.php.format.default = lang.shared.format.default
168
+ lang.php.format.selection = lang.shared.format.selection
169
+ lang.php.format.found = lang.shared.format.found
170
+ lang.php.tokens.singlequoted_strings.format = lang.shared.tokens.singlequoted_strings.format
171
+ lang.php.tokens.doublequoted_strings.format = lang.shared.tokens.doublequoted_strings.format
172
+ lang.php.tokens.reserved_words.format = lang.shared.tokens.reserved_words.format
173
+ lang.php.tokens.constants.format = lang.shared.tokens.constants.format
174
+ lang.php.tokens.comments.format = lang.shared.tokens.comments.format
175
+ lang.php.tokens.comments.format = lang.shared.tokens.comments.format
176
+ lang.php.tokens.long_comments.format = lang.shared.tokens.comments.format
177
+ lang.php.tokens.non_alphanum.format = lang.shared.tokens.non_alphanum.format
178
+
179
+ # Lua
180
+
181
+ lang.lua.format.default = lang.shared.format.default
182
+ lang.lua.format.selection = lang.shared.format.selection
183
+ lang.lua.format.found = lang.shared.format.found
184
+ lang.lua.tokens.reserved_words.format = lang.shared.tokens.reserved_words.format
185
+ lang.lua.tokens.comments.format = lang.shared.tokens.comments.format
186
+ lang.lua.tokens.singlequoted_strings.format lang.shared.tokens.singlequoted_strings.format
187
+ lang.lua.tokens.doublequoted_strings.format lang.shared.tokens.doublequoted_strings.format
188
+ lang.lua.tokens.non_alphanum.format = lang.shared.tokens.non_alphanum.format
189
+
190
+ # SQL
191
+
192
+ lang.sql.tokens.reserved_words.format lang.shared.tokens.reserved_words.format
193
+ lang.sql.tokens.comments.format = lang.shared.tokens.comments.format
194
+ lang.sql.tokens.singlequoted_strings.format = lang.shared.tokens.singlequoted_strings.format
195
+ lang.sql.tokens.non_alphanum.format = lang.shared.tokens.non_alphanum.format
196
+
197
+ # Coffeescript
198
+
199
+ lang.coffee.format.default = lang.shared.format.default
200
+ lang.coffee.format.selection = lang.shared.format.selection
201
+ lang.coffee.format.found = lang.shared.format.found
202
+ lang.coffee.tokens.reserved_words.format = lang.shared.tokens.reserved_words.format
203
+ lang.coffee.tokens.constants.format = lang.shared.tokens.constants.format
204
+ lang.coffee.tokens.comments.format = lang.shared.tokens.comments.format
205
+ lang.coffee.tokens.non_alphanum.format = lang.shared.tokens.non_alphanum.format
206
+ lang.coffee.tokens.regular_expressions.format = lang.shared.tokens.regular_expressions.format
207
+ lang.coffee.tokens.singlequoted_strings.format = lang.shared.tokens.singlequoted_strings.format
208
+ lang.coffee.tokens.doublequoted_strings.format = lang.shared.tokens.doublequoted_strings.format
209
+ lang.coffee.tokens.backquoted_strings.format = lang.shared.tokens.backquoted_strings.format
210
+ lang.coffee.tokens.modifiers.format 44
211
+ lang.coffee.tokens.symbols.format 34
212
+ lang.coffee.tokens.hash_keys.format 34
213
+ lang.coffee.tokens.instance_variables.format 35
214
+ lang.coffee.tokens.regular_expressions2.format 36
215
+ lang.coffee.tokens.interpolated_exec_string.format 39
216
+ lang.interpolated_exec_ruby.format.default 39
217
+ lang.interpolated_exec_ruby.tokens.interpolation.format 9 bold
218
+ lang.coffee.tokens.character_codes.format magenta bold
219
+ lang.coffee.tokens.long_comments.format 8 bold
220
+ lang.coffee.tokens.sql_string.format 1