ver 2009.10.14 → 2009.11.28

Sign up to get free protection for your applications and to get access to all the features.
Files changed (318) hide show
  1. data/CHANGELOG +1094 -0
  2. data/MANIFEST +227 -25
  3. data/README.textile +185 -0
  4. data/bin/ver +96 -12
  5. data/config/detect.rb +73 -21
  6. data/config/keymap/emacs.rb +66 -0
  7. data/config/keymap/vim.rb +250 -140
  8. data/config/preferences/ANTLR.json +10 -0
  9. data/config/preferences/ASP vb.NET.json +3 -0
  10. data/config/preferences/ASP.json +15 -0
  11. data/config/preferences/ActionScript.json +755 -0
  12. data/config/preferences/Active4D.json +89 -0
  13. data/config/preferences/Ada.json +23 -0
  14. data/config/preferences/Ant.json +356 -0
  15. data/config/preferences/Apache.json +644 -0
  16. data/config/preferences/AppleScript.json +92 -0
  17. data/config/preferences/Bison.json +3 -0
  18. data/config/preferences/Blogging.json +3 -0
  19. data/config/preferences/C.json +127 -0
  20. data/config/preferences/CMake.json +41 -0
  21. data/config/preferences/CSS.json +461 -0
  22. data/config/preferences/CTags.json +3 -0
  23. data/config/preferences/CVS.json +3 -0
  24. data/config/preferences/ColdFusion.json +32 -0
  25. data/config/preferences/D.json +58 -0
  26. data/config/preferences/Darcs.json +3 -0
  27. data/config/preferences/Diff.json +67 -0
  28. data/config/preferences/DokuWiki.json +19 -0
  29. data/config/preferences/Doxygen.json +3 -0
  30. data/config/preferences/Dylan.json +3 -0
  31. data/config/preferences/Eiffel.json +59 -0
  32. data/config/preferences/Erlang.json +72 -0
  33. data/config/preferences/Experimental.json +1356 -0
  34. data/config/preferences/F-Script.json +87 -0
  35. data/config/preferences/FXScript.json +78 -0
  36. data/config/preferences/FileMerge.json +3 -0
  37. data/config/preferences/Fortran.json +158 -0
  38. data/config/preferences/GTD2.json +11 -0
  39. data/config/preferences/GTDAlt.json +20 -0
  40. data/config/preferences/GetBundle.json +3 -0
  41. data/config/preferences/Gettext.json +24 -0
  42. data/config/preferences/Graphviz.json +42 -0
  43. data/config/preferences/Greasemonkey.json +3 -0
  44. data/config/preferences/Gri.json +34 -0
  45. data/config/preferences/HTML.json +492 -0
  46. data/config/preferences/Haskell.json +72 -0
  47. data/config/preferences/Hotkey.json +3 -0
  48. data/config/preferences/ImageBrowser.json +3 -0
  49. data/config/preferences/Inform.json +3 -0
  50. data/config/preferences/Ini.json +60 -0
  51. data/config/preferences/Installer.json +3 -0
  52. data/config/preferences/Io.json +64 -0
  53. data/config/preferences/JSON.json +3 -0
  54. data/config/preferences/Java.json +86 -0
  55. data/config/preferences/JavaDoc.json +3 -0
  56. data/config/preferences/JavaScript.json +76 -0
  57. data/config/preferences/LaTeX.json +267 -0
  58. data/config/preferences/Lex/Flex.json +3 -0
  59. data/config/preferences/Lighttpd.json +3 -0
  60. data/config/preferences/LilyPond.json +77 -0
  61. data/config/preferences/Lisp.json +63 -0
  62. data/config/preferences/Logo.json +58 -0
  63. data/config/preferences/Logtalk.json +236 -0
  64. data/config/preferences/Lua.json +24 -0
  65. data/config/preferences/MEL.json +19 -0
  66. data/config/preferences/MIPS Assembler.json +26 -0
  67. data/config/preferences/MacPorts.json +3 -0
  68. data/config/preferences/Mail.json +3 -0
  69. data/config/preferences/Make.json +16 -0
  70. data/config/preferences/Markdown.json +102 -0
  71. data/config/preferences/Math.json +3 -0
  72. data/config/preferences/Matlab.json +128 -0
  73. data/config/preferences/Maven.json +308 -0
  74. data/config/preferences/Mediawiki.json +73 -0
  75. data/config/preferences/Mercurial.json +3 -0
  76. data/config/preferences/Modula.json +37 -0
  77. data/config/preferences/MoinMoin.json +52 -0
  78. data/config/preferences/Navigation.json +3 -0
  79. data/config/preferences/Nemerle.json +3 -0
  80. data/config/preferences/OCaml Code Completion.json +3 -0
  81. data/config/preferences/OCaml.json +163 -0
  82. data/config/preferences/ODCompletion.json +3 -0
  83. data/config/preferences/Objective-C.json +84 -0
  84. data/config/preferences/OpenGL.json +3331 -0
  85. data/config/preferences/Outlines.json +3 -0
  86. data/config/preferences/Pascal.json +60 -0
  87. data/config/preferences/Perforce.json +3 -0
  88. data/config/preferences/Perl.json +15 -0
  89. data/config/preferences/PmWiki.json +27 -0
  90. data/config/preferences/Postscript.json +15 -0
  91. data/config/preferences/Processing.json +32 -0
  92. data/config/preferences/Prolog.json +3 -0
  93. data/config/preferences/Propel.json +3 -0
  94. data/config/preferences/Python.json +38 -0
  95. data/config/preferences/Quake.json +15 -0
  96. data/config/preferences/R.json +33 -0
  97. data/config/preferences/Ragel.json +15 -0
  98. data/config/preferences/Regular Expressions.json +3 -0
  99. data/config/preferences/Remind.json +15 -0
  100. data/config/preferences/Rez.json +46 -0
  101. data/config/preferences/Ruby.json +98 -0
  102. data/config/preferences/S5 Slide Show.json +20 -0
  103. data/config/preferences/SCons.json +3 -0
  104. data/config/preferences/SQL.json +32 -0
  105. data/config/preferences/SSH Config.json +15 -0
  106. data/config/preferences/SVK.json +3 -0
  107. data/config/preferences/SWIG.json +3 -0
  108. data/config/preferences/SWeave.json +32 -0
  109. data/config/preferences/Scheme.json +35 -0
  110. data/config/preferences/Scilab.json +15 -0
  111. data/config/preferences/Setext.json +3 -0
  112. data/config/preferences/Shell Script.json +25 -0
  113. data/config/preferences/Slate.json +113 -0
  114. data/config/preferences/Source.json +132 -0
  115. data/config/preferences/Subversion.json +10 -0
  116. data/config/preferences/TODO.json +3 -0
  117. data/config/preferences/Tabular.json +3 -0
  118. data/config/preferences/Tcl.json +82 -0
  119. data/config/preferences/TerminalMate.json +112 -0
  120. data/config/preferences/Text.json +89 -0
  121. data/config/preferences/TextMate.json +38 -0
  122. data/config/preferences/Textile.json +76 -0
  123. data/config/preferences/Thrift.json +56 -0
  124. data/config/preferences/Transmit.json +3 -0
  125. data/config/preferences/Twiki.json +51 -0
  126. data/config/preferences/Txt2tags.json +81 -0
  127. data/config/preferences/Vectorscript.json +1280 -0
  128. data/config/preferences/XML.json +60 -0
  129. data/config/preferences/Xcode.json +3 -0
  130. data/config/preferences/YAML.json +24 -0
  131. data/config/preferences/iCalendar.json +10 -0
  132. data/config/preferences/iTerm.json +36 -0
  133. data/config/preferences/reStructuredText.json +48 -0
  134. data/config/rc.rb +49 -0
  135. data/config/syntax/ANTLR.json +5 -5
  136. data/config/syntax/{ASP VB.net.json → ASP vb.NET.json } +3 -3
  137. data/config/syntax/ASP.json +1 -1
  138. data/config/syntax/ActionScript.json +6 -6
  139. data/config/syntax/Active4D Config.json +86 -0
  140. data/config/syntax/Active4D Library.json +20 -0
  141. data/config/syntax/Active4D.json +418 -0
  142. data/config/syntax/Ada.json +3 -3
  143. data/config/syntax/Ant.json +196 -0
  144. data/config/syntax/Apache.json +7 -7
  145. data/config/syntax/AppleScript.json +3 -3
  146. data/config/syntax/{Bibtex.json → BibTeX.json} +1 -1
  147. data/config/syntax/Bison.json +59 -0
  148. data/config/syntax/{Blog (HTML).json → Blog - HTML.json } +2 -2
  149. data/config/syntax/{Blog (Markdown).json → Blog - Markdown.json } +2 -2
  150. data/config/syntax/Blog (Text).json b/data/config/syntax/Blog - → Text.json +0 -0
  151. data/config/syntax/Blog (Textile).json b/data/config/syntax/Blog - → Textile.json +0 -0
  152. data/config/syntax/C++.json +3 -3
  153. data/config/syntax/C.json +13 -13
  154. data/config/syntax/CMake Listfile.json +171 -0
  155. data/config/syntax/CSS.json +6 -6
  156. data/config/syntax/CSV.json +108 -0
  157. data/config/syntax/ColdFusion.json +204 -0
  158. data/config/syntax/D.json +560 -0
  159. data/config/syntax/Diff.json +1 -1
  160. data/config/syntax/DokuWiki.json +412 -0
  161. data/config/syntax/Doxygen.json +80 -0
  162. data/config/syntax/Dylan.json +4 -4
  163. data/config/syntax/Erlang.json +5 -5
  164. data/config/syntax/F-Script.json +1 -1
  165. data/config/syntax/FXScript.json +5 -5
  166. data/config/syntax/Fortran - Modern.json +221 -0
  167. data/config/syntax/Fortran - Punchcard.json +468 -0
  168. data/config/syntax/GTD.json +39 -0
  169. data/config/syntax/GTDalt.json +233 -0
  170. data/config/syntax/Gettext.json +118 -0
  171. data/config/syntax/Go.json +555 -0
  172. data/config/syntax/{DOT.json → Graphviz (DOT).json } +3 -3
  173. data/config/syntax/Greasemonkey.json +56 -0
  174. data/config/syntax/Gri.json +4 -4
  175. data/config/syntax/{HTML-ASP.json → HTML (ASP).json } +1 -1
  176. data/config/syntax/{HTML for ASP.net.json → HTML (ASP.net).json } +19 -19
  177. data/config/syntax/HTML (Active4D).json +540 -0
  178. data/config/syntax/HTML (Erlang).json +31 -0
  179. data/config/syntax/HTML (Tcl).json +1 -1
  180. data/config/syntax/HTML.json +20 -20
  181. data/config/syntax/Haskell.json +3 -3
  182. data/config/syntax/Installer Distribution Script.json +135 -0
  183. data/config/syntax/Io.json +6 -6
  184. data/config/syntax/JSON.json +151 -0
  185. data/config/syntax/{JavaProperties.json → Java Properties.json } +2 -2
  186. data/config/syntax/Java Server Page (JSP).json +163 -0
  187. data/config/syntax/Java.json +7 -7
  188. data/config/syntax/JavaDoc.json +435 -0
  189. data/config/syntax/JavaScript.json +8 -8
  190. data/config/syntax/LaTeX Log.json +3 -3
  191. data/config/syntax/LaTeX Memoir.json +101 -0
  192. data/config/syntax/LaTeX.json +2 -2
  193. data/config/syntax/Lex-Flex.json +396 -0
  194. data/config/syntax/LilyPond.json +608 -0
  195. data/config/syntax/Logo.json +48 -0
  196. data/config/syntax/Logtalk.json +6 -6
  197. data/config/syntax/Lua.json +1 -1
  198. data/config/syntax/{M.json → MATLAB.json} +3 -3
  199. data/config/syntax/MEL.json +7 -7
  200. data/config/syntax/MIPS.json b/data/config/syntax/MIPS → Assembler.json +0 -0
  201. data/config/syntax/MacPorts Portfile.json +298 -0
  202. data/config/syntax/Mail.json +1 -1
  203. data/config/syntax/Markdown.json +6 -6
  204. data/config/syntax/Maven POM.json +774 -0
  205. data/config/syntax/Mediawiki.json +736 -0
  206. data/config/syntax/MoinMoin.json +335 -0
  207. data/config/syntax/MultiMarkdown.json +41 -0
  208. data/config/syntax/Nemerle.json +128 -0
  209. data/config/syntax/OCaml.json +4 -4
  210. data/config/syntax/OCamllex.json +307 -0
  211. data/config/syntax/OCamlyacc.json +346 -0
  212. data/config/syntax/Objective-C++.json +2 -2
  213. data/config/syntax/Objective-C.json +979 -0
  214. data/config/syntax/Octave.json +417 -0
  215. data/config/syntax/PHP.json +32 -32
  216. data/config/syntax/Pascal.json +1 -1
  217. data/config/syntax/Perl.json +8 -8
  218. data/config/syntax/{Plain text.json → Plain Text.json } +1 -1
  219. data/config/syntax/PmWiki.json +241 -0
  220. data/config/syntax/Postscript.json +206 -0
  221. data/config/syntax/Processing.json +8 -8
  222. data/config/syntax/Prolog.json +70 -0
  223. data/config/syntax/Python.json +1934 -0
  224. data/config/syntax/{Quake3 Config.json → Quake Style .cfg.json } +1 -1
  225. data/config/syntax/R.json +2 -2
  226. data/config/syntax/Ragel.json +362 -0
  227. data/config/syntax/Rd (R Documentation).json +119 -0
  228. data/config/syntax/Regular Expressions (Oniguruma).json +186 -0
  229. data/config/syntax/Regular Expressions (Python).json +188 -0
  230. data/config/syntax/Release Notes.json +78 -0
  231. data/config/syntax/Remind.json +461 -0
  232. data/config/syntax/Rez.json +5 -5
  233. data/config/syntax/Ruby Sass.json +497 -0
  234. data/config/syntax/Ruby.json +13 -13
  235. data/config/syntax/S5 Slide Show.json +85 -0
  236. data/config/syntax/SQL.json +11 -11
  237. data/config/syntax/SSH Config.json +55 -0
  238. data/config/syntax/SWIG.json +2 -2
  239. data/config/syntax/SWeave.json +139 -0
  240. data/config/syntax/Scheme.json +8 -8
  241. data/config/syntax/Scilab.json +69 -0
  242. data/config/syntax/Setext.json +247 -0
  243. data/config/syntax/{Shell-Unix-Generic.json → Shell Script (Bash).json } +4 -4
  244. data/config/syntax/Slate.json +5 -5
  245. data/config/syntax/Strings File.json +53 -0
  246. data/config/syntax/TSV.json +83 -0
  247. data/config/syntax/Tcl.json +1 -1
  248. data/config/syntax/TeX Math.json +2 -2
  249. data/config/syntax/TeX.json +2 -2
  250. data/config/syntax/Textile.json +9 -9
  251. data/config/syntax/Thrift.json +641 -0
  252. data/config/syntax/Twiki.json +1 -1
  253. data/config/syntax/Txt2tags.json +154 -0
  254. data/config/syntax/XML strict.json +4 -4
  255. data/config/syntax/XML.json +6 -6
  256. data/config/syntax/XSL.json +2 -2
  257. data/config/syntax/camlp4.json +63 -0
  258. data/config/syntax/mod_perl.json +72 -0
  259. data/config/syntax/reStructuredText.json +1 -1
  260. data/config/syntax/{Subversion commit message.json → svn-commit.tmp.json} +0 -0
  261. data/config/tutorial +23 -19
  262. data/config/welcome +3 -3
  263. data/lib/ver.rb +273 -62
  264. data/lib/ver/entry.rb +142 -26
  265. data/lib/ver/font.rb +51 -0
  266. data/lib/ver/help.rb +16 -0
  267. data/lib/ver/help/describe_key.rb +82 -0
  268. data/lib/ver/help/help_for_help.rb +39 -0
  269. data/lib/ver/hover_completion.rb +129 -0
  270. data/lib/ver/keymap.rb +95 -24
  271. data/lib/ver/layout.rb +107 -43
  272. data/lib/ver/methods.rb +24 -8
  273. data/lib/ver/methods/clipboard.rb +91 -0
  274. data/lib/ver/methods/completion.rb +146 -71
  275. data/lib/ver/methods/control.rb +203 -222
  276. data/lib/ver/methods/ctags.rb +55 -0
  277. data/lib/ver/methods/delete.rb +30 -0
  278. data/lib/ver/methods/help.rb +7 -0
  279. data/lib/ver/methods/insert.rb +233 -1
  280. data/lib/ver/methods/move.rb +181 -32
  281. data/lib/ver/methods/open.rb +208 -0
  282. data/lib/ver/methods/preview.rb +14 -0
  283. data/lib/ver/methods/save.rb +111 -0
  284. data/lib/ver/methods/search.rb +57 -7
  285. data/lib/ver/methods/select.rb +97 -17
  286. data/lib/ver/methods/shortcuts.rb +21 -0
  287. data/lib/ver/methods/views.rb +56 -1
  288. data/lib/ver/mode.rb +60 -14
  289. data/lib/ver/status.rb +97 -19
  290. data/lib/ver/syntax.rb +14 -6
  291. data/lib/ver/syntax/detector.rb +16 -5
  292. data/lib/ver/syntax/processor.rb +9 -3
  293. data/lib/ver/text.rb +258 -199
  294. data/lib/ver/text/index.rb +103 -0
  295. data/lib/ver/theme.rb +27 -16
  296. data/lib/ver/tooltip.rb +59 -0
  297. data/lib/ver/vendor/binary_search.rb +61 -0
  298. data/lib/ver/vendor/levenshtein.rb +57 -0
  299. data/lib/ver/{textpow.rb → vendor/textpow.rb} +31 -29
  300. data/lib/ver/view.rb +65 -41
  301. data/lib/ver/view/console.rb +171 -0
  302. data/lib/ver/view/entry.rb +9 -5
  303. data/lib/ver/view/list.rb +44 -29
  304. data/lib/ver/view/list/ex.rb +71 -0
  305. data/lib/ver/view/list/grep.rb +42 -0
  306. data/lib/ver/view/list/methods.rb +159 -0
  307. data/lib/ver/view/term.rb +249 -0
  308. data/tasks/syntax_list.rake +3 -2
  309. data/ver.gemspec +4 -4
  310. metadata +230 -28
  311. data/config/syntax/Bulletin Board.json +0 -428
  312. data/config/syntax/HTML (Mason).json +0 -207
  313. data/config/syntax/HTML (Rails).json +0 -52
  314. data/config/syntax/Movable Type.json +0 -348
  315. data/config/syntax/Ruby on Rails.json +0 -170
  316. data/config/syntax/SQL (Rails).json +0 -31
  317. data/config/syntax/Smarty.json +0 -110
  318. data/config/syntax/Standard ML.json +0 -322
data/MANIFEST CHANGED
@@ -1,99 +1,279 @@
1
1
  CHANGELOG
2
2
  MANIFEST
3
+ README.textile
3
4
  Rakefile
4
5
  TODO
5
6
  bin/ver
6
7
  config/detect.rb
8
+ config/keymap/emacs.rb
7
9
  config/keymap/vim.rb
10
+ config/preferences/ANTLR.json
11
+ config/preferences/ASP vb.NET.json
12
+ config/preferences/ASP.json
13
+ config/preferences/ActionScript.json
14
+ config/preferences/Active4D.json
15
+ config/preferences/Ada.json
16
+ config/preferences/Ant.json
17
+ config/preferences/Apache.json
18
+ config/preferences/AppleScript.json
19
+ config/preferences/Bison.json
20
+ config/preferences/Blogging.json
21
+ config/preferences/C.json
22
+ config/preferences/CMake.json
23
+ config/preferences/CSS.json
24
+ config/preferences/CTags.json
25
+ config/preferences/CVS.json
26
+ config/preferences/ColdFusion.json
27
+ config/preferences/D.json
28
+ config/preferences/Darcs.json
29
+ config/preferences/Diff.json
30
+ config/preferences/DokuWiki.json
31
+ config/preferences/Doxygen.json
32
+ config/preferences/Dylan.json
33
+ config/preferences/Eiffel.json
34
+ config/preferences/Erlang.json
35
+ config/preferences/Experimental.json
36
+ config/preferences/F-Script.json
37
+ config/preferences/FXScript.json
38
+ config/preferences/FileMerge.json
39
+ config/preferences/Fortran.json
40
+ config/preferences/GTD2.json
41
+ config/preferences/GTDAlt.json
42
+ config/preferences/GetBundle.json
43
+ config/preferences/Gettext.json
44
+ config/preferences/Graphviz.json
45
+ config/preferences/Greasemonkey.json
46
+ config/preferences/Gri.json
47
+ config/preferences/HTML.json
48
+ config/preferences/Haskell.json
49
+ config/preferences/Hotkey.json
50
+ config/preferences/ImageBrowser.json
51
+ config/preferences/Inform.json
52
+ config/preferences/Ini.json
53
+ config/preferences/Installer.json
54
+ config/preferences/Io.json
55
+ config/preferences/JSON.json
56
+ config/preferences/Java.json
57
+ config/preferences/JavaDoc.json
58
+ config/preferences/JavaScript.json
59
+ config/preferences/LaTeX.json
60
+ config/preferences/Lex/Flex.json
61
+ config/preferences/Lighttpd.json
62
+ config/preferences/LilyPond.json
63
+ config/preferences/Lisp.json
64
+ config/preferences/Logo.json
65
+ config/preferences/Logtalk.json
66
+ config/preferences/Lua.json
67
+ config/preferences/MEL.json
68
+ config/preferences/MIPS Assembler.json
69
+ config/preferences/MacPorts.json
70
+ config/preferences/Mail.json
71
+ config/preferences/Make.json
72
+ config/preferences/Markdown.json
73
+ config/preferences/Math.json
74
+ config/preferences/Matlab.json
75
+ config/preferences/Maven.json
76
+ config/preferences/Mediawiki.json
77
+ config/preferences/Mercurial.json
78
+ config/preferences/Modula.json
79
+ config/preferences/MoinMoin.json
80
+ config/preferences/Navigation.json
81
+ config/preferences/Nemerle.json
82
+ config/preferences/OCaml Code Completion.json
83
+ config/preferences/OCaml.json
84
+ config/preferences/ODCompletion.json
85
+ config/preferences/Objective-C.json
86
+ config/preferences/OpenGL.json
87
+ config/preferences/Outlines.json
88
+ config/preferences/Pascal.json
89
+ config/preferences/Perforce.json
90
+ config/preferences/Perl.json
91
+ config/preferences/PmWiki.json
92
+ config/preferences/Postscript.json
93
+ config/preferences/Processing.json
94
+ config/preferences/Prolog.json
95
+ config/preferences/Propel.json
96
+ config/preferences/Python.json
97
+ config/preferences/Quake.json
98
+ config/preferences/R.json
99
+ config/preferences/Ragel.json
100
+ config/preferences/Regular Expressions.json
101
+ config/preferences/Remind.json
102
+ config/preferences/Rez.json
103
+ config/preferences/Ruby.json
104
+ config/preferences/S5 Slide Show.json
105
+ config/preferences/SCons.json
106
+ config/preferences/SQL.json
107
+ config/preferences/SSH Config.json
108
+ config/preferences/SVK.json
109
+ config/preferences/SWIG.json
110
+ config/preferences/SWeave.json
111
+ config/preferences/Scheme.json
112
+ config/preferences/Scilab.json
113
+ config/preferences/Setext.json
114
+ config/preferences/Shell Script.json
115
+ config/preferences/Slate.json
116
+ config/preferences/Source.json
117
+ config/preferences/Subversion.json
118
+ config/preferences/TODO.json
119
+ config/preferences/Tabular.json
120
+ config/preferences/Tcl.json
121
+ config/preferences/TerminalMate.json
122
+ config/preferences/Text.json
123
+ config/preferences/TextMate.json
124
+ config/preferences/Textile.json
125
+ config/preferences/Thrift.json
126
+ config/preferences/Transmit.json
127
+ config/preferences/Twiki.json
128
+ config/preferences/Txt2tags.json
129
+ config/preferences/Vectorscript.json
130
+ config/preferences/XML.json
131
+ config/preferences/Xcode.json
132
+ config/preferences/YAML.json
133
+ config/preferences/iCalendar.json
134
+ config/preferences/iTerm.json
135
+ config/preferences/reStructuredText.json
8
136
  config/rc.rb
9
137
  config/scratch
10
138
  config/syntax/ANTLR.json
11
- config/syntax/ASP VB.net.json
139
+ config/syntax/ASP vb.NET.json
12
140
  config/syntax/ASP.json
13
141
  config/syntax/ActionScript.json
142
+ config/syntax/Active4D Config.json
143
+ config/syntax/Active4D Library.json
144
+ config/syntax/Active4D.json
14
145
  config/syntax/Ada.json
146
+ config/syntax/Ant.json
15
147
  config/syntax/Apache.json
16
148
  config/syntax/AppleScript.json
17
- config/syntax/Bibtex.json
18
- config/syntax/Blog (HTML).json
19
- config/syntax/Blog (Markdown).json
20
- config/syntax/Blog (Text).json
21
- config/syntax/Blog (Textile).json
22
- config/syntax/Bulletin Board.json
149
+ config/syntax/BibTeX.json
150
+ config/syntax/Bison.json
151
+ config/syntax/Blog - HTML.json
152
+ config/syntax/Blog - Markdown.json
153
+ config/syntax/Blog - Text.json
154
+ config/syntax/Blog - Textile.json
23
155
  config/syntax/C++.json
24
156
  config/syntax/C.json
157
+ config/syntax/CMake Listfile.json
25
158
  config/syntax/CSS.json
26
- config/syntax/DOT.json
159
+ config/syntax/CSV.json
160
+ config/syntax/ColdFusion.json
161
+ config/syntax/D.json
27
162
  config/syntax/Diff.json
163
+ config/syntax/DokuWiki.json
164
+ config/syntax/Doxygen.json
28
165
  config/syntax/Dylan.json
29
166
  config/syntax/Eiffel.json
30
167
  config/syntax/Erlang.json
31
168
  config/syntax/F-Script.json
32
169
  config/syntax/FXScript.json
170
+ config/syntax/Fortran - Modern.json
171
+ config/syntax/Fortran - Punchcard.json
172
+ config/syntax/GTD.json
173
+ config/syntax/GTDalt.json
174
+ config/syntax/Gettext.json
175
+ config/syntax/Go.json
176
+ config/syntax/Graphviz (DOT).json
177
+ config/syntax/Greasemonkey.json
33
178
  config/syntax/Gri.json
34
- config/syntax/HTML (Mason).json
35
- config/syntax/HTML (Rails).json
179
+ config/syntax/HTML (ASP).json
180
+ config/syntax/HTML (ASP.net).json
181
+ config/syntax/HTML (Active4D).json
182
+ config/syntax/HTML (Erlang).json
36
183
  config/syntax/HTML (Tcl).json
37
- config/syntax/HTML for ASP.net.json
38
- config/syntax/HTML-ASP.json
39
184
  config/syntax/HTML.json
40
185
  config/syntax/Haskell.json
41
186
  config/syntax/Inform.json
42
187
  config/syntax/Ini.json
188
+ config/syntax/Installer Distribution Script.json
43
189
  config/syntax/Io.json
190
+ config/syntax/JSON.json
191
+ config/syntax/Java Properties.json
192
+ config/syntax/Java Server Page (JSP).json
44
193
  config/syntax/Java.json
45
- config/syntax/JavaProperties.json
194
+ config/syntax/JavaDoc.json
46
195
  config/syntax/JavaScript.json
47
196
  config/syntax/LaTeX Beamer.json
48
197
  config/syntax/LaTeX Log.json
198
+ config/syntax/LaTeX Memoir.json
49
199
  config/syntax/LaTeX.json
200
+ config/syntax/Lex-Flex.json
50
201
  config/syntax/Lighttpd.json
202
+ config/syntax/LilyPond.json
51
203
  config/syntax/Lisp.json
52
204
  config/syntax/Literate Haskell.json
205
+ config/syntax/Logo.json
53
206
  config/syntax/Logtalk.json
54
207
  config/syntax/Lua.json
55
- config/syntax/M.json
208
+ config/syntax/MATLAB.json
56
209
  config/syntax/MEL.json
57
- config/syntax/MIPS.json
210
+ config/syntax/MIPS Assembler.json
211
+ config/syntax/MacPorts Portfile.json
58
212
  config/syntax/Mail.json
59
213
  config/syntax/Makefile.json
60
214
  config/syntax/Markdown.json
215
+ config/syntax/Maven POM.json
216
+ config/syntax/Mediawiki.json
61
217
  config/syntax/Modula-3.json
62
- config/syntax/Movable Type.json
218
+ config/syntax/MoinMoin.json
219
+ config/syntax/MultiMarkdown.json
220
+ config/syntax/Nemerle.json
63
221
  config/syntax/OCaml.json
222
+ config/syntax/OCamllex.json
223
+ config/syntax/OCamlyacc.json
64
224
  config/syntax/Objective-C++.json
225
+ config/syntax/Objective-C.json
226
+ config/syntax/Octave.json
65
227
  config/syntax/OpenGL.json
66
228
  config/syntax/PHP.json
67
229
  config/syntax/Pascal.json
68
230
  config/syntax/Perl.json
69
- config/syntax/Plain text.json
231
+ config/syntax/Plain Text.json
232
+ config/syntax/PmWiki.json
233
+ config/syntax/Postscript.json
70
234
  config/syntax/Processing.json
71
- config/syntax/Quake3 Config.json
235
+ config/syntax/Prolog.json
236
+ config/syntax/Python.json
237
+ config/syntax/Quake Style .cfg.json
72
238
  config/syntax/R.json
239
+ config/syntax/Ragel.json
240
+ config/syntax/Rd (R Documentation).json
241
+ config/syntax/Regular Expressions (Oniguruma).json
242
+ config/syntax/Regular Expressions (Python).json
243
+ config/syntax/Release Notes.json
244
+ config/syntax/Remind.json
73
245
  config/syntax/Rez.json
74
- config/syntax/Ruby on Rails.json
246
+ config/syntax/Ruby Sass.json
75
247
  config/syntax/Ruby.json
76
- config/syntax/SQL (Rails).json
248
+ config/syntax/S5 Slide Show.json
77
249
  config/syntax/SQL.json
250
+ config/syntax/SSH Config.json
78
251
  config/syntax/SWIG.json
252
+ config/syntax/SWeave.json
79
253
  config/syntax/Scheme.json
80
- config/syntax/Shell-Unix-Generic.json
254
+ config/syntax/Scilab.json
255
+ config/syntax/Setext.json
256
+ config/syntax/Shell Script (Bash).json
81
257
  config/syntax/Slate.json
82
- config/syntax/Smarty.json
83
- config/syntax/Standard ML.json
84
- config/syntax/Subversion commit message.json
258
+ config/syntax/Strings File.json
259
+ config/syntax/TSV.json
85
260
  config/syntax/Tcl.json
86
261
  config/syntax/TeX Math.json
87
262
  config/syntax/TeX.json
88
263
  config/syntax/Textile.json
264
+ config/syntax/Thrift.json
89
265
  config/syntax/Twiki.json
266
+ config/syntax/Txt2tags.json
90
267
  config/syntax/Vectorscript.json
91
268
  config/syntax/XML strict.json
92
269
  config/syntax/XML.json
93
270
  config/syntax/XSL.json
94
271
  config/syntax/YAML.json
272
+ config/syntax/camlp4.json
95
273
  config/syntax/iCalendar.json
274
+ config/syntax/mod_perl.json
96
275
  config/syntax/reStructuredText.json
276
+ config/syntax/svn-commit.tmp.json
97
277
  config/theme/Active4D.json
98
278
  config/theme/All Hallow's Eve.json
99
279
  config/theme/Amy.json
@@ -143,15 +323,28 @@ config/welcome
143
323
  help/index.verh
144
324
  lib/ver.rb
145
325
  lib/ver/entry.rb
326
+ lib/ver/font.rb
327
+ lib/ver/help.rb
328
+ lib/ver/help/describe_key.rb
329
+ lib/ver/help/help_for_help.rb
330
+ lib/ver/hover_completion.rb
146
331
  lib/ver/keymap.rb
147
332
  lib/ver/layout.rb
148
333
  lib/ver/methods.rb
334
+ lib/ver/methods/clipboard.rb
149
335
  lib/ver/methods/completion.rb
150
336
  lib/ver/methods/control.rb
337
+ lib/ver/methods/ctags.rb
338
+ lib/ver/methods/delete.rb
339
+ lib/ver/methods/help.rb
151
340
  lib/ver/methods/insert.rb
152
341
  lib/ver/methods/move.rb
342
+ lib/ver/methods/open.rb
343
+ lib/ver/methods/preview.rb
344
+ lib/ver/methods/save.rb
153
345
  lib/ver/methods/search.rb
154
346
  lib/ver/methods/select.rb
347
+ lib/ver/methods/shortcuts.rb
155
348
  lib/ver/methods/views.rb
156
349
  lib/ver/mode.rb
157
350
  lib/ver/options.rb
@@ -161,16 +354,25 @@ lib/ver/syntax.rb
161
354
  lib/ver/syntax/detector.rb
162
355
  lib/ver/syntax/processor.rb
163
356
  lib/ver/text.rb
164
- lib/ver/textpow.rb
357
+ lib/ver/text/index.rb
165
358
  lib/ver/theme.rb
359
+ lib/ver/tooltip.rb
360
+ lib/ver/vendor/binary_search.rb
166
361
  lib/ver/vendor/fuzzy_file_finder.rb
362
+ lib/ver/vendor/levenshtein.rb
363
+ lib/ver/vendor/textpow.rb
167
364
  lib/ver/view.rb
365
+ lib/ver/view/console.rb
168
366
  lib/ver/view/entry.rb
169
367
  lib/ver/view/list.rb
170
368
  lib/ver/view/list/buffer.rb
369
+ lib/ver/view/list/ex.rb
171
370
  lib/ver/view/list/fuzzy_file_finder.rb
371
+ lib/ver/view/list/grep.rb
372
+ lib/ver/view/list/methods.rb
172
373
  lib/ver/view/list/syntax.rb
173
374
  lib/ver/view/list/theme.rb
375
+ lib/ver/view/term.rb
174
376
  spec/keymap.rb
175
377
  tasks/bacon.rake
176
378
  tasks/changelog.rake
@@ -0,0 +1,185 @@
1
+ h1. VER - Vim & Emacs in Ruby
2
+
3
+ h2. Description
4
+
5
+ VER is a "text editor" in the tradition of Emacs, providing a whole environment
6
+ around your editing experience.
7
+ It also borrows heavily from Vim, most prominently modal editing and the
8
+ default keyboard map.
9
+ Finally, I also have to thank the TextMate developers and community, because we
10
+ are standing on their shoulders by reusing the syntax definitions and completion
11
+ routines as long as they are under an acceptable license (no code of TM is
12
+ used).
13
+
14
+ At the time of writing, around 140 different languages have syntax highlighting
15
+ and around 130 languages have extended capabilities like completion or automatic
16
+ indentation.
17
+
18
+ h2. Dependencies
19
+
20
+ * You will need to install tk if it isn't on your system already.
21
+ Detailed installation instructions for all major platforms and more
22
+ information about Tcl/Tk are available at: "Tcl/Tk Project":http://tcl.tk
23
+
24
+ * In an attempt to make VER available for all Ruby implementations, I wrote an
25
+ alternative for ruby-tk, called ffi-tk.
26
+ Eventually it should be available as a gem, but for now you can get the source
27
+ from "manveru/ffi-tk on github":http://github.com/manveru/ffi-tk
28
+ No compilation required.
29
+
30
+ * Only a `gem install eventmachine` away:
31
+ "Ruby/EventMachine library":http://rubyeventmachine.com
32
+
33
+ h2. Features
34
+
35
+ * VER and ffi-tk are 100% (hopefully straightforward) Ruby.
36
+ * Syntax highlighting for around 140 file types.
37
+ * Intelligent indentation based on file type.
38
+ * Automatic completion for words, lines, aspell, and more.
39
+ * Integrated window management
40
+ * Terminal emulator and console
41
+ * Recursive fuzzy file finding
42
+ * Recusive pattern grepping
43
+ * Find and replace using oniguruma
44
+ * Unlimited undo
45
+ * In-buffer ruby evaluation, can also be used for text manipulation
46
+ * CTags support
47
+ * much more...
48
+
49
+ h2. Installation
50
+
51
+ For Tcl/Tk there are various instructions available from
52
+ "Tk Docs":http://tkdocs.org
53
+ VER only runs on Ruby 1.9.1+, but should run on any implementation conforming to
54
+ the corresponding specification because no C extensions are involved.
55
+
56
+ h3. ArchLinux
57
+
58
+ [@
59
+ pacman -S tcl tk ruby rubygems
60
+ gem install ver
61
+ @]
62
+
63
+ h2. Configuration
64
+
65
+ At the time of writing, there are only a few options exposed.
66
+ Options can be changed in your ~/.config/ver/rc.rb where you can find a few
67
+ default settings already.
68
+ In earlier revisions of VER, options are often to subject change, so be aware
69
+ that at some point they might not work as expected anymore.
70
+ If options are deprecated or replaced, I will try to keep the configuration
71
+ working, but in early stages this is no priority.
72
+
73
+ h3. Keymap
74
+
75
+ At the time of writing, only the vim keymap covers all features of VER and is
76
+ actively maintained.
77
+ We are searching for contributors that can provide keymaps for other editors.
78
+ To add a new keymap, put it under config/keymap/$name.rb and start VER with
79
+
80
+ <shell>
81
+ ver -k $name
82
+ </shell>
83
+
84
+ Where @$name@ is a placeholder for the filename of the keymap you created.
85
+
86
+ h2. Yet another editor?
87
+
88
+ h3. A little bit of philosophy
89
+
90
+ After many years of being a code ninja, it became apparent to me that there
91
+ could be as many editors as there are developers.
92
+
93
+ It feels to me, like there are many useless religious wars going on around this
94
+ seemingly simple topic, there is the church of emacs, the cult of vi, and many
95
+ other groups that don't have chosen how to call themselves yet.
96
+
97
+ I'm guilty myself of telling people what to use, without really considering what
98
+ the consequences of my actions are.
99
+
100
+ A text editor should not be treated like a religion.
101
+
102
+ For one, everybody should be given an objective overview over the choices out
103
+ there. Recently, Wikipedia seems to have taken over this role, so I won't invest
104
+ much energy into this topic.
105
+
106
+ What I find really interesting, is that only very few people even think of
107
+ attempting to write their own editor.
108
+
109
+ Maybe I'm suffering from a severe case of NIH, but i want to give everybody a
110
+ chance to see what's involved. You can write an equivalent of nano in a couple
111
+ of days, but how much does it take to improve on the concepts of the great
112
+ editors?
113
+
114
+ I won't say it's an easy task, it's more in the spirit of a Jedis building their
115
+ own laser-sword, once you reach a good enough proficiency in programming it
116
+ should be good practice to build your own tools, and what tool is more to
117
+ writing programs than an editor?
118
+
119
+ It also has other benefits, teaching you new things about yourself and the way
120
+ you work.
121
+ You will learn more about the strengths and weaknesses your language.
122
+ The next time you curse your editor, you can make it better.
123
+
124
+ h3. Background
125
+
126
+ I've used many editors over the years, and a lot of them have inspired me,
127
+ amongst them are Proton, JEdit, SciTE, Vim, Emacs, Nano, Gobby, GEdit, Kate...
128
+ However, Vim and Emacs can be considered the most prominent of the editors that
129
+ try to do much more than just editing text.
130
+
131
+ I've never had a big interest in IDEs, maybe because Ruby saves you from most of
132
+ the boilerplate that is usually associated with programming, and for most
133
+ dynamic languages they just don't provide you that much.
134
+
135
+ Maybe, someday, VER will become for Ruby what Emacs is for Lisp.
136
+ I have very mixed feelings about that.
137
+
138
+ h3. The name
139
+
140
+ I tried to come up with a short name, that would give credit to my biggest
141
+ inspirations.
142
+ There is not much more to it.
143
+
144
+ h2. Thanks
145
+
146
+ I'd like to thank following people:
147
+
148
+ * Aman Gupta and the folks in #eventmachine
149
+ Helping me and keeping me going crazy when I hit some weird C syntax.
150
+ * Francis Cianfrocca
151
+ EventMachine, making evented programming fun and even profitable.
152
+ * Julian Langschaedel
153
+ First user and contributor.
154
+ * Pistos
155
+ Inspiration through Diakonos and patience testing just about anything I throw
156
+ at him.
157
+ * Richard M. Stallman
158
+ Emacs
159
+ * Yukihiro Matsumoto
160
+ Ruby, ruby-tk, and the knowledge that programmers can make a deep impact if
161
+ they are just persistent enough.
162
+
163
+ h2. License
164
+
165
+ (The MIT License)
166
+
167
+ Copyright (c) 2009 Michael Fellinger
168
+
169
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
170
+ this software and associated documentation files (the 'Software'), to deal in
171
+ the Software without restriction, including without limitation the rights to
172
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
173
+ the Software, and to permit persons to whom the Software is furnished to do so,
174
+ subject to the following conditions:
175
+
176
+ The above copyright notice and this permission notice shall be included in all
177
+ copies or substantial portions of the Software.
178
+
179
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
180
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
181
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
182
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
183
+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
184
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
185
+ DEALINGS IN THE SOFTWARE.