ver 2009.12.14 → 2010.02
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/.mailmap +1 -0
- data/.todo +102 -0
- data/.yardopts +1 -0
- data/AUTHORS +3 -3
- data/CHANGELOG +1597 -0
- data/MANIFEST +521 -329
- data/ROADMAP.textile +187 -0
- data/Rakefile +6 -4
- data/bin/ver +98 -35
- data/config/detect.rb +65 -37
- data/config/keymap/diakonos.rb +180 -178
- data/config/keymap/emacs.rb +44 -63
- data/config/keymap/nano.rb +174 -0
- data/config/keymap/vim.rb +459 -381
- data/config/plugin/animated_tiling.rb +90 -0
- data/config/plugin/autosave.rb +22 -0
- data/config/plugin/git.rb +46 -0
- data/config/plugin/smart_autoindent.rb +157 -0
- data/config/plugin/soma.rb +50 -0
- data/config/preferences/ANTLR.rb +6 -0
- data/config/preferences/ASP.rb +6 -0
- data/config/preferences/ActionScript.rb +747 -0
- data/config/preferences/Active4D.rb +35 -0
- data/config/preferences/Ada.rb +12 -0
- data/config/preferences/Ant.rb +348 -0
- data/config/preferences/Apache.rb +585 -0
- data/config/preferences/AppleScript.rb +35 -0
- data/config/preferences/Bulletin Board.rb +7 -0
- data/config/preferences/Bundle Development.rb +30 -0
- data/config/preferences/C++ Qt.rb +197 -0
- data/config/preferences/C.rb +60 -0
- data/config/preferences/CMake.rb +24 -0
- data/config/preferences/CSS.rb +396 -0
- data/config/preferences/ColdFusion.rb +13 -0
- data/config/preferences/Context Free.rb +16 -0
- data/config/preferences/D.rb +31 -0
- data/config/preferences/Diff.rb +36 -0
- data/config/preferences/DokuWiki.rb +13 -0
- data/config/preferences/Eiffel.rb +20 -0
- data/config/preferences/Erlang.rb +37 -0
- data/config/preferences/Experimental.rb +1352 -0
- data/config/preferences/F-Script.rb +29 -0
- data/config/preferences/FXScript.rb +23 -0
- data/config/preferences/Fortran.rb +70 -0
- data/config/preferences/GTD2.rb +6 -0
- data/config/preferences/GTDAlt.rb +12 -0
- data/config/preferences/Gettext.rb +14 -0
- data/config/preferences/Graphviz.rb +9 -0
- data/config/preferences/Gri.rb +9 -0
- data/config/preferences/HTML.rb +380 -0
- data/config/preferences/Haskell.rb +31 -0
- data/config/preferences/Hyperlink Helper.rb +78 -0
- data/config/preferences/Ini.rb +15 -0
- data/config/preferences/Io.rb +24 -0
- data/config/preferences/JSFL.rb +722 -0
- data/config/preferences/Java.rb +51 -0
- data/config/preferences/JavaScript Prototype & Script.aculo.us.rb +175 -0
- data/config/preferences/JavaScript YUI.rb +13 -0
- data/config/preferences/JavaScript.rb +41 -0
- data/config/preferences/LaTeX.rb +96 -0
- data/config/preferences/LilyPond.rb +22 -0
- data/config/preferences/Lisp.rb +17 -0
- data/config/preferences/Logo.rb +12 -0
- data/config/preferences/Logtalk.rb +193 -0
- data/config/preferences/Lua.rb +13 -0
- data/config/preferences/MEL.rb +13 -0
- data/config/preferences/MIPS Assembler.rb +9 -0
- data/config/preferences/Make.rb +8 -0
- data/config/preferences/Man Pages.rb +9 -0
- data/config/preferences/Matlab.rb +40 -0
- data/config/preferences/Maven.rb +220 -0
- data/config/preferences/Mediawiki.rb +27 -0
- data/config/preferences/Modula.rb +8 -0
- data/config/preferences/MoinMoin.rb +25 -0
- data/config/preferences/Movable Type.rb +47 -0
- data/config/preferences/OCaml Experimental Completions.rb +8 -0
- data/config/preferences/OCaml.rb +70 -0
- data/config/preferences/Objective-C.rb +54 -0
- data/config/preferences/OpenGL.rb +3327 -0
- data/config/preferences/Pascal.rb +15 -0
- data/config/preferences/Perl Template Toolkit.rb +19 -0
- data/config/preferences/Perl.rb +6 -0
- data/config/preferences/Postscript.rb +6 -0
- data/config/preferences/Processing.rb +13 -0
- data/config/preferences/Property List.rb +34 -0
- data/config/preferences/Python Django Templates.rb +13 -0
- data/config/preferences/Python.rb +24 -0
- data/config/preferences/Quake.rb +6 -0
- data/config/preferences/R Console (Rdaemon).rb +7 -0
- data/config/preferences/R.rb +17 -0
- data/config/preferences/Ragel.rb +6 -0
- data/config/preferences/Remind.rb +6 -0
- data/config/preferences/Rez.rb +10 -0
- data/config/preferences/Ruby Haml.rb +6 -0
- data/config/preferences/Ruby RSpec.rb +14 -0
- data/config/preferences/Ruby on Rails.rb +22 -0
- data/config/preferences/Ruby.rb +48 -0
- data/config/preferences/S5 Slide Show.rb +10 -0
- data/config/preferences/SQL.rb +17 -0
- data/config/preferences/SSH Config.rb +6 -0
- data/config/preferences/SWeave.rb +17 -0
- data/config/preferences/Scheme.rb +12 -0
- data/config/preferences/Scilab.rb +6 -0
- data/config/preferences/Shell Script.rb +13 -0
- data/config/preferences/Slate.rb +36 -0
- data/config/preferences/Source.rb +51 -0
- data/config/preferences/Standard ML.rb +18 -0
- data/config/preferences/Subversion.rb +6 -0
- data/config/preferences/Tcl.rb +19 -0
- data/config/preferences/TerminalMate.rb +46 -0
- data/config/preferences/Text.rb +31 -0
- data/config/preferences/TextMate.rb +18 -0
- data/config/preferences/Textile.rb +30 -0
- data/config/preferences/Thrift.rb +26 -0
- data/config/preferences/Twiki.rb +17 -0
- data/config/preferences/Txt2tags.rb +33 -0
- data/config/preferences/Vectorscript.rb +1240 -0
- data/config/preferences/XML.rb +26 -0
- data/config/preferences/YAML.rb +13 -0
- data/config/preferences/iCalendar.rb +6 -0
- data/config/preferences/iTerm.rb +16 -0
- data/config/preferences/newLisp.rb +10 -0
- data/config/preferences/reStructuredText.rb +17 -0
- data/config/rc.rb +13 -1
- data/config/snippets/ANTLR.rb +3 -0
- data/config/snippets/ASP vb.NET.rb +56 -0
- data/config/snippets/ASP.rb +38 -0
- data/config/snippets/ActionScript.rb +207 -0
- data/config/snippets/Active4D.rb +258 -0
- data/config/snippets/Ada.rb +62 -0
- data/config/snippets/Ant.rb +7 -0
- data/config/snippets/Apache.rb +22 -0
- data/config/snippets/AppleScript.rb +84 -0
- data/config/snippets/Bison.rb +3 -0
- data/config/snippets/Blogging.rb +20 -0
- data/config/snippets/Bulletin Board.rb +23 -0
- data/config/snippets/Bundle Development.rb +65 -0
- data/config/snippets/C++ Qt.rb +59 -0
- data/config/snippets/C.rb +102 -0
- data/config/snippets/CMake.rb +34 -0
- data/config/snippets/CSS.rb +117 -0
- data/config/snippets/CTags.rb +3 -0
- data/config/snippets/CVS.rb +3 -0
- data/config/snippets/ColdFusion.rb +1549 -0
- data/config/snippets/Context Free.rb +30 -0
- data/config/snippets/D.rb +113 -0
- data/config/snippets/Darcs.rb +3 -0
- data/config/snippets/Diff.rb +3 -0
- data/config/snippets/DokuWiki.rb +56 -0
- data/config/snippets/Doxygen.rb +42 -0
- data/config/snippets/Dylan.rb +3 -0
- data/config/snippets/Eiffel.rb +20 -0
- data/config/snippets/Erlang.rb +70 -0
- data/config/snippets/Experimental Wiki.rb +3 -0
- data/config/snippets/Experimental.rb +3 -0
- data/config/snippets/F-Script.rb +26 -0
- data/config/snippets/FXScript.rb +212 -0
- data/config/snippets/FileMerge.rb +3 -0
- data/config/snippets/Fortran.rb +282 -0
- data/config/snippets/GTD2.rb +3 -0
- data/config/snippets/GTDAlt.rb +6 -0
- data/config/snippets/GetBundle.rb +3 -0
- data/config/snippets/Gettext.rb +10 -0
- data/config/snippets/Graphviz.rb +3 -0
- data/config/snippets/Greasemonkey.rb +44 -0
- data/config/snippets/Gri.rb +12 -0
- data/config/snippets/HTML.rb +128 -0
- data/config/snippets/Haskell.rb +26 -0
- data/config/snippets/Hotkey.rb +3 -0
- data/config/snippets/Hyperlink Helper.rb +3 -0
- data/config/snippets/ImageBrowser.rb +3 -0
- data/config/snippets/Inform.rb +3 -0
- data/config/snippets/Ini.rb +3 -0
- data/config/snippets/Installer.rb +3 -0
- data/config/snippets/Io.rb +44 -0
- data/config/snippets/JSFL.rb +3 -0
- data/config/snippets/JSON.rb +3 -0
- data/config/snippets/Java.rb +94 -0
- data/config/snippets/JavaDoc.rb +58 -0
- data/config/snippets/JavaScript MooTools.rb +15 -0
- data/config/snippets/JavaScript Objective-J.rb +17 -0
- data/config/snippets/JavaScript Prototype & Script.aculo.us.rb +109 -0
- data/config/snippets/JavaScript YUI.rb +188 -0
- data/config/snippets/JavaScript jQuery.rb +377 -0
- data/config/snippets/JavaScript.rb +55 -0
- data/config/snippets/Lex-Flex.rb +3 -0
- data/config/snippets/Lighttpd.rb +3 -0
- data/config/snippets/LilyPond.rb +18 -0
- data/config/snippets/Lisp.rb +42 -0
- data/config/snippets/Logo.rb +8 -0
- data/config/snippets/Logtalk.rb +62 -0
- data/config/snippets/Lua.rb +35 -0
- data/config/snippets/MEL.rb +3 -0
- data/config/snippets/MIPS Assembler.rb +7 -0
- data/config/snippets/MacPorts.rb +3 -0
- data/config/snippets/Mail.rb +3 -0
- data/config/snippets/Make.rb +3 -0
- data/config/snippets/Man Pages.rb +3 -0
- data/config/snippets/Math.rb +3 -0
- data/config/snippets/Matlab.rb +180 -0
- data/config/snippets/Maven.rb +7 -0
- data/config/snippets/Mediawiki.rb +14 -0
- data/config/snippets/Mercurial.rb +3 -0
- data/config/snippets/Modula.rb +3 -0
- data/config/snippets/MoinMoin.rb +12 -0
- data/config/snippets/Movable Type.rb +55 -0
- data/config/snippets/Navigation.rb +3 -0
- data/config/snippets/Nemerle.rb +81 -0
- data/config/snippets/OCaml Code Completion Misc.rb +74 -0
- data/config/snippets/OCaml Code Completion Unix.rb +205 -0
- data/config/snippets/OCaml Experimental Completions.rb +3 -0
- data/config/snippets/OCaml.rb +75 -0
- data/config/snippets/ODCompletion.rb +120 -0
- data/config/snippets/Objective-C.rb +195 -0
- data/config/snippets/OpenGL.rb +3 -0
- data/config/snippets/Outlines.rb +3 -0
- data/config/snippets/PHP Smarty.rb +81 -0
- data/config/snippets/Pascal.rb +35 -0
- data/config/snippets/Perforce.rb +3 -0
- data/config/snippets/Perl HTML::Template.rb +27 -0
- data/config/snippets/Perl Mason.rb +32 -0
- data/config/snippets/Perl Template Toolkit.rb +22 -0
- data/config/snippets/Perl.rb +74 -0
- data/config/snippets/Postscript.rb +3 -0
- data/config/snippets/Processing.rb +35 -0
- data/config/snippets/Prolog.rb +3 -0
- data/config/snippets/Propel.rb +32 -0
- data/config/snippets/Property List.rb +26 -0
- data/config/snippets/Python Django Templates.rb +97 -0
- data/config/snippets/Python Django.rb +134 -0
- data/config/snippets/Quake.rb +3 -0
- data/config/snippets/R Console (R.app).rb +3 -0
- data/config/snippets/R Console (Rdaemon).rb +11 -0
- data/config/snippets/R.rb +79 -0
- data/config/snippets/Ragel.rb +3 -0
- data/config/snippets/Regular Expressions.rb +3 -0
- data/config/snippets/Remind.rb +17 -0
- data/config/snippets/Rez.rb +3 -0
- data/config/snippets/Ruby Haml.rb +3 -0
- data/config/snippets/Ruby RSpec.rb +240 -0
- data/config/snippets/Ruby on Rails.rb +767 -0
- data/config/snippets/Ruby.rb +547 -0
- data/config/snippets/S5 Slide Show.rb +26 -0
- data/config/snippets/SCons.rb +3 -0
- data/config/snippets/SQL.rb +3 -0
- data/config/snippets/SSH Config.rb +19 -0
- data/config/snippets/SVK.rb +3 -0
- data/config/snippets/SWIG.rb +20 -0
- data/config/snippets/SWeave.rb +3 -0
- data/config/snippets/Scheme.rb +3 -0
- data/config/snippets/Scilab.rb +81 -0
- data/config/snippets/Setext.rb +10 -0
- data/config/snippets/Shell Script.rb +44 -0
- data/config/snippets/Slate.rb +50 -0
- data/config/snippets/Source.rb +3 -0
- data/config/snippets/Standard ML.rb +29 -0
- data/config/snippets/Subversion.rb +3 -0
- data/config/snippets/TODO.rb +3 -0
- data/config/snippets/Tabular.rb +3 -0
- data/config/snippets/Tcl.rb +28 -0
- data/config/snippets/TerminalMate.rb +3 -0
- data/config/snippets/Text.rb +17 -0
- data/config/snippets/TextMate.rb +3 -0
- data/config/snippets/Textile.rb +47 -0
- data/config/snippets/Thrift.rb +20 -0
- data/config/snippets/Transmit.rb +3 -0
- data/config/snippets/Twiki.rb +107 -0
- data/config/snippets/Txt2tags.rb +81 -0
- data/config/snippets/Vectorscript.rb +40 -0
- data/config/snippets/Widget Creator.rb +7 -0
- data/config/snippets/XML.rb +20 -0
- data/config/snippets/Xcode.rb +3 -0
- data/config/snippets/YAML.rb +6 -0
- data/config/snippets/iCalendar.rb +3 -0
- data/config/snippets/iTerm.rb +3 -0
- data/config/snippets/newLisp.rb +33 -0
- data/config/snippets/reStructuredText.rb +22 -0
- data/config/syntax/ANTLR.rb +122 -0
- data/config/syntax/ASP vb.NET.rb +114 -0
- data/config/syntax/ASP.rb +72 -0
- data/config/syntax/ActionScript.rb +83 -0
- data/config/syntax/Active4D Config.rb +38 -0
- data/config/syntax/Active4D Library.rb +20 -0
- data/config/syntax/Active4D.rb +237 -0
- data/config/syntax/Ada.rb +50 -0
- data/config/syntax/Ant.rb +80 -0
- data/config/syntax/Apache.rb +148 -0
- data/config/syntax/AppleScript.rb +370 -0
- data/config/syntax/BibTeX.rb +98 -0
- data/config/syntax/Bison.rb +28 -0
- data/config/syntax/Blog - HTML.rb +38 -0
- data/config/syntax/Blog - Markdown.rb +36 -0
- data/config/syntax/Blog - Text.rb +24 -0
- data/config/syntax/Blog - Textile.rb +24 -0
- data/config/syntax/Bulletin Board.rb +202 -0
- data/config/syntax/C++ Qt.rb +27 -0
- data/config/syntax/C++.rb +159 -0
- data/config/syntax/C.rb +341 -0
- data/config/syntax/CMake Listfile.rb +87 -0
- data/config/syntax/CSS.rb +151 -0
- data/config/syntax/CSV.rb +52 -0
- data/config/syntax/ColdFusion.rb +92 -0
- data/config/syntax/Context Free.rb +133 -0
- data/config/syntax/D.rb +285 -0
- data/config/syntax/Diff.rb +59 -0
- data/config/syntax/DokuWiki.rb +158 -0
- data/config/syntax/Doxygen.rb +31 -0
- data/config/syntax/Dylan.rb +53 -0
- data/config/syntax/Eiffel.rb +52 -0
- data/config/syntax/Erlang.rb +632 -0
- data/config/syntax/F-Script.rb +56 -0
- data/config/syntax/FXScript.rb +140 -0
- data/config/syntax/Fortran - Modern.rb +147 -0
- data/config/syntax/Fortran - Punchcard.rb +257 -0
- data/config/syntax/GTD.rb +15 -0
- data/config/syntax/GTDalt.rb +95 -0
- data/config/syntax/Gettext.rb +54 -0
- data/config/syntax/Graphviz (DOT).rb +37 -0
- data/config/syntax/Greasemonkey.rb +31 -0
- data/config/syntax/Gri.rb +61 -0
- data/config/syntax/HTML (ASP).rb +23 -0
- data/config/syntax/HTML (ASP.net).rb +304 -0
- data/config/syntax/HTML (Active4D).rb +219 -0
- data/config/syntax/HTML (Django).rb +35 -0
- data/config/syntax/HTML (Erlang).rb +26 -0
- data/config/syntax/HTML (Mason).rb +74 -0
- data/config/syntax/HTML (Rails).rb +34 -0
- data/config/syntax/HTML (Tcl).rb +23 -0
- data/config/syntax/HTML (Template Toolkit).rb +88 -0
- data/config/syntax/HTML.rb +265 -0
- data/config/syntax/Haskell.rb +188 -0
- data/config/syntax/Inform.rb +37 -0
- data/config/syntax/Ini.rb +36 -0
- data/config/syntax/Installer Distribution Script.rb +78 -0
- data/config/syntax/Io.rb +59 -0
- data/config/syntax/JSFL.rb +24 -0
- data/config/syntax/JSON.rb +118 -0
- data/config/syntax/Java Properties.rb +21 -0
- data/config/syntax/Java Server Page (JSP).rb +71 -0
- data/config/syntax/Java.rb +288 -0
- data/config/syntax/JavaDoc.rb +178 -0
- data/config/syntax/JavaScript (Rails).rb +24 -0
- data/config/syntax/JavaScript.rb +193 -0
- data/config/syntax/Javascript YUI.rb +245 -0
- data/config/syntax/LaTeX Beamer.rb +30 -0
- data/config/syntax/LaTeX Log.rb +35 -0
- data/config/syntax/LaTeX Memoir.rb +46 -0
- data/config/syntax/LaTeX Rdaemon.rb +24 -0
- data/config/syntax/LaTeX.rb +424 -0
- data/config/syntax/Language Grammar.rb +585 -0
- data/config/syntax/Lex-Flex.rb +172 -0
- data/config/syntax/Lighttpd.rb +41 -0
- data/config/syntax/LilyPond.rb +383 -0
- data/config/syntax/Lisp.rb +43 -0
- data/config/syntax/Literate Haskell.rb +26 -0
- data/config/syntax/Logo.rb +25 -0
- data/config/syntax/Logtalk.rb +131 -0
- data/config/syntax/Lua.rb +65 -0
- data/config/syntax/MATLAB.rb +468 -0
- data/config/syntax/MEL.rb +65 -0
- data/config/syntax/MIPS Assembler.rb +47 -0
- data/config/syntax/MacPorts Portfile.rb +130 -0
- data/config/syntax/Mail.rb +97 -0
- data/config/syntax/Makefile.rb +30 -0
- data/config/syntax/Man.rb +16 -0
- data/config/syntax/Maven POM.rb +305 -0
- data/config/syntax/Mediawiki.rb +349 -0
- data/config/syntax/Modula-3.rb +40 -0
- data/config/syntax/MoinMoin.rb +132 -0
- data/config/syntax/MooTools.rb +375 -0
- data/config/syntax/Movable Type (MT only).rb +143 -0
- data/config/syntax/Movable Type.rb +156 -0
- data/config/syntax/Nemerle.rb +63 -0
- data/config/syntax/OCaml.rb +553 -0
- data/config/syntax/OCamllex.rb +133 -0
- data/config/syntax/OCamlyacc.rb +148 -0
- data/config/syntax/Objective-C++.rb +15 -0
- data/config/syntax/Objective-C.rb +423 -0
- data/config/syntax/Objective-J.rb +183 -0
- data/config/syntax/Octave.rb +215 -0
- data/config/syntax/OpenGL.rb +18 -0
- data/config/syntax/Pascal.rb +57 -0
- data/config/syntax/Perl HTML-Template.rb +61 -0
- data/config/syntax/Perl.rb +764 -0
- data/config/syntax/Plain Text.rb +27 -0
- data/config/syntax/Postscript.rb +88 -0
- data/config/syntax/Processing.rb +87 -0
- data/config/syntax/Prolog.rb +31 -0
- data/config/syntax/Property List.rb +463 -0
- data/config/syntax/Prototype & Script.aculo.us (JavaScript) Bracketed.rb +100 -0
- data/config/syntax/Prototype & Script.aculo.us (JavaScript).rb +56 -0
- data/config/syntax/Python Django.rb +25 -0
- data/config/syntax/Python.rb +836 -0
- data/config/syntax/Quake Style .cfg.rb +27 -0
- data/config/syntax/R Console (R.app).rb +13 -0
- data/config/syntax/R Console (Rdaemon) Plain.rb +30 -0
- data/config/syntax/R Console (Rdaemon).rb +33 -0
- data/config/syntax/R.rb +64 -0
- data/config/syntax/RJS.rb +8 -0
- data/config/syntax/RSpec.rb +64 -0
- data/config/syntax/Ragel.rb +159 -0
- data/config/syntax/Rd (R Documentation).rb +50 -0
- data/config/syntax/Regular Expressions (Oniguruma).rb +78 -0
- data/config/syntax/Regular Expressions (Python).rb +78 -0
- data/config/syntax/Release Notes.rb +38 -0
- data/config/syntax/Remind.rb +179 -0
- data/config/syntax/Rez.rb +61 -0
- data/config/syntax/Ruby Haml.rb +97 -0
- data/config/syntax/Ruby on Rails.rb +116 -0
- data/config/syntax/Ruby.rb +758 -0
- data/config/syntax/S5 Slide Show.rb +51 -0
- data/config/syntax/SQL (Rails).rb +17 -0
- data/config/syntax/SQL.rb +205 -0
- data/config/syntax/SSH Config.rb +25 -0
- data/config/syntax/SWIG.rb +47 -0
- data/config/syntax/SWeave.rb +57 -0
- data/config/syntax/Scheme.rb +280 -0
- data/config/syntax/Scilab.rb +30 -0
- data/config/syntax/Setext.rb +102 -0
- data/config/syntax/Shell Script (Bash).rb +454 -0
- data/config/syntax/Slate.rb +96 -0
- data/config/syntax/Smarty.rb +46 -0
- data/config/syntax/Standard ML - CM.rb +27 -0
- data/config/syntax/Standard ML.rb +119 -0
- data/config/syntax/Strings File.rb +33 -0
- data/config/syntax/TSV.rb +40 -0
- data/config/syntax/Tcl.rb +119 -0
- data/config/syntax/TeX Math.rb +37 -0
- data/config/syntax/TeX.rb +58 -0
- data/config/syntax/Textile.rb +174 -0
- data/config/syntax/Thrift.rb +285 -0
- data/config/syntax/Twiki.rb +163 -0
- data/config/syntax/Txt2tags.rb +70 -0
- data/config/syntax/Vectorscript.rb +48 -0
- data/config/syntax/XML strict.rb +60 -0
- data/config/syntax/XML.rb +117 -0
- data/config/syntax/XSL.rb +43 -0
- data/config/syntax/YAML.rb +109 -0
- data/config/syntax/camlp4.rb +27 -0
- data/config/syntax/iCalendar.rb +25 -0
- data/config/syntax/jQuery (JavaScript).rb +108 -0
- data/config/syntax/mod_perl.rb +41 -0
- data/config/syntax/newLisp.rb +82 -0
- data/config/syntax/qmake Project file.rb +87 -0
- data/config/syntax/reStructuredText.rb +180 -0
- data/config/syntax/svn-commit.tmp.rb +25 -0
- data/config/theme/Active4D.rb +105 -0
- data/config/theme/All Hallow's Eve.rb +70 -0
- data/config/theme/Amy.rb +141 -0
- data/config/theme/Blackboard.rb +90 -0
- data/config/theme/Brilliance Black.rb +693 -0
- data/config/theme/Brilliance Dull.rb +588 -0
- data/config/theme/Cobalt.rb +147 -0
- data/config/theme/Dawn.rb +113 -0
- data/config/theme/Eiffel.rb +113 -0
- data/config/theme/Embers.rb +125 -0
- data/config/theme/Espresso Libre.rb +104 -0
- data/config/theme/IDLE.rb +57 -0
- data/config/theme/LAZY.rb +74 -0
- data/config/theme/Mac Classic.rb +117 -0
- data/config/theme/MagicWB (Amiga).rb +97 -0
- data/config/theme/Pastels on Dark.rb +182 -0
- data/config/theme/Slush & Poppies.rb +83 -0
- data/config/theme/SpaceCadet.rb +44 -0
- data/config/theme/Sunburst.rb +172 -0
- data/config/theme/Twilight.rb +137 -0
- data/config/theme/Zenburnesque.rb +88 -0
- data/config/theme/iPlastic.rb +73 -0
- data/config/theme/newLISP dark.rb +183 -0
- data/config/theme/newLISP.rb +183 -0
- data/config/welcome +10 -14
- data/lib/ver.rb +272 -79
- data/lib/ver/action.rb +43 -0
- data/lib/ver/buffer.rb +229 -0
- data/lib/ver/buffer/console.rb +171 -0
- data/lib/ver/buffer/term.rb +255 -0
- data/lib/ver/entry.rb +120 -97
- data/lib/ver/exception_view.rb +11 -1
- data/lib/ver/executor.rb +83 -0
- data/lib/ver/executor/buffer.rb +31 -0
- data/lib/ver/executor/entry.rb +175 -0
- data/lib/ver/executor/fuzzy_file_finder.rb +100 -0
- data/lib/ver/executor/grep.rb +101 -0
- data/lib/ver/executor/label.rb +57 -0
- data/lib/ver/executor/locate.rb +20 -0
- data/lib/ver/executor/method.rb +80 -0
- data/lib/ver/executor/path.rb +45 -0
- data/lib/ver/executor/syntax.rb +22 -0
- data/lib/ver/executor/theme.rb +21 -0
- data/lib/ver/help.rb +0 -10
- data/lib/ver/help/describe_key.rb +8 -7
- data/lib/ver/help/help_for_help.rb +1 -1
- data/lib/ver/hover_completion.rb +39 -34
- data/lib/ver/keymap.rb +121 -158
- data/lib/ver/keymap/keymapped.rb +25 -0
- data/lib/ver/keysyms.rb +104 -0
- data/lib/ver/layout/notebook.rb +74 -0
- data/lib/ver/layout/paned.rb +184 -0
- data/lib/ver/layout/tiling.rb +135 -0
- data/lib/ver/layout/tiling/common.rb +34 -0
- data/lib/ver/layout/tiling/horizontal.rb +25 -0
- data/lib/ver/layout/tiling/vertical.rb +25 -0
- data/lib/ver/major_mode.rb +162 -0
- data/lib/ver/methods.rb +21 -22
- data/lib/ver/methods/autofill.rb +23 -0
- data/lib/ver/methods/basic.rb +53 -0
- data/lib/ver/methods/bookmark.rb +116 -104
- data/lib/ver/methods/clipboard.rb +59 -47
- data/lib/ver/methods/completion.rb +93 -77
- data/lib/ver/methods/control.rb +297 -240
- data/lib/ver/methods/ctags.rb +38 -29
- data/lib/ver/methods/delete.rb +47 -31
- data/lib/ver/methods/help.rb +9 -1
- data/lib/ver/methods/insert.rb +67 -203
- data/lib/ver/methods/layout.rb +122 -0
- data/lib/ver/methods/move.rb +229 -158
- data/lib/ver/methods/nano.rb +186 -0
- data/lib/ver/methods/open.rb +247 -53
- data/lib/ver/methods/preview.rb +66 -5
- data/lib/ver/methods/save.rb +127 -44
- data/lib/ver/methods/search.rb +103 -56
- data/lib/ver/methods/search_and_replace.rb +118 -0
- data/lib/ver/methods/selection.rb +443 -0
- data/lib/ver/methods/snippet.rb +244 -0
- data/lib/ver/methods/undo.rb +34 -13
- data/lib/ver/minibuffer.rb +293 -0
- data/lib/ver/minor_mode.rb +204 -0
- data/lib/ver/plist.rb +208 -20
- data/lib/ver/status.rb +76 -128
- data/lib/ver/status/battery.rb +147 -0
- data/lib/ver/status/buffer_position.rb +17 -0
- data/lib/ver/status/diakonos_position.rb +17 -0
- data/lib/ver/status/encoding.rb +13 -0
- data/lib/ver/status/filename.rb +13 -0
- data/lib/ver/status/label.rb +62 -0
- data/lib/ver/status/mode.rb +15 -0
- data/lib/ver/status/nano_help.rb +71 -0
- data/lib/ver/status/nano_position.rb +38 -0
- data/lib/ver/status/percent.rb +17 -0
- data/lib/ver/status/position.rb +16 -0
- data/lib/ver/status/separator.rb +20 -0
- data/lib/ver/status/short_filename.rb +13 -0
- data/lib/ver/status/syntax.rb +13 -0
- data/lib/ver/syntax.rb +15 -20
- data/lib/ver/syntax/detector.rb +7 -13
- data/lib/ver/syntax/processor.rb +4 -4
- data/lib/ver/text.rb +337 -170
- data/lib/ver/theme.rb +51 -28
- data/lib/ver/treeview.rb +54 -0
- data/lib/ver/undo.rb +37 -17
- data/lib/ver/vendor/better_pp_hash.rb +27 -0
- data/lib/ver/vendor/binary_search.rb +2 -2
- data/lib/ver/vendor/fuzzy_file_finder.rb +22 -8
- data/lib/ver/vendor/pathname.rb +26 -0
- data/lib/ver/vendor/textpow.rb +30 -32
- data/lib/ver/version.rb +1 -1
- data/lib/ver/widget_event.rb +49 -0
- data/lib/ver/widget_major_mode.rb +192 -0
- data/spec/helper.rb +49 -78
- data/spec/tm_snippet.rb +178 -0
- data/spec/ver/action.rb +65 -0
- data/spec/ver/keymap.rb +77 -0
- data/spec/ver/major_mode.rb +150 -0
- data/spec/ver/methods/move.rb +150 -0
- data/spec/ver/minor_mode.rb +90 -0
- data/spec/ver/plugin/smart_autoindent.rb +276 -0
- data/spec/ver/widget_major_mode.rb +69 -0
- data/tasks/rcov.rake +2 -3
- data/tasks/syntax_list.rake +28 -24
- data/ver.gemspec +6 -9
- metadata +524 -342
- data/TODO +0 -169
- data/config/preferences/ANTLR.json +0 -10
- data/config/preferences/ASP vb.NET.json +0 -3
- data/config/preferences/ASP.json +0 -15
- data/config/preferences/ActionScript.json +0 -755
- data/config/preferences/Active4D.json +0 -89
- data/config/preferences/Ada.json +0 -23
- data/config/preferences/Ant.json +0 -356
- data/config/preferences/Apache.json +0 -644
- data/config/preferences/AppleScript.json +0 -92
- data/config/preferences/Bison.json +0 -3
- data/config/preferences/Blogging.json +0 -3
- data/config/preferences/C.json +0 -127
- data/config/preferences/CMake.json +0 -41
- data/config/preferences/CSS.json +0 -461
- data/config/preferences/CTags.json +0 -3
- data/config/preferences/CVS.json +0 -3
- data/config/preferences/ColdFusion.json +0 -32
- data/config/preferences/D.json +0 -58
- data/config/preferences/Darcs.json +0 -3
- data/config/preferences/Diff.json +0 -67
- data/config/preferences/DokuWiki.json +0 -19
- data/config/preferences/Doxygen.json +0 -3
- data/config/preferences/Dylan.json +0 -3
- data/config/preferences/Eiffel.json +0 -59
- data/config/preferences/Erlang.json +0 -72
- data/config/preferences/Experimental.json +0 -1356
- data/config/preferences/F-Script.json +0 -87
- data/config/preferences/FXScript.json +0 -78
- data/config/preferences/FileMerge.json +0 -3
- data/config/preferences/Fortran.json +0 -158
- data/config/preferences/GTD2.json +0 -11
- data/config/preferences/GTDAlt.json +0 -20
- data/config/preferences/GetBundle.json +0 -3
- data/config/preferences/Gettext.json +0 -24
- data/config/preferences/Graphviz.json +0 -42
- data/config/preferences/Greasemonkey.json +0 -3
- data/config/preferences/Gri.json +0 -34
- data/config/preferences/HTML.json +0 -492
- data/config/preferences/Haskell.json +0 -72
- data/config/preferences/Hotkey.json +0 -3
- data/config/preferences/ImageBrowser.json +0 -3
- data/config/preferences/Inform.json +0 -3
- data/config/preferences/Ini.json +0 -60
- data/config/preferences/Installer.json +0 -3
- data/config/preferences/Io.json +0 -64
- data/config/preferences/JSON.json +0 -3
- data/config/preferences/Java.json +0 -86
- data/config/preferences/JavaDoc.json +0 -3
- data/config/preferences/JavaScript.json +0 -76
- data/config/preferences/LaTeX.json +0 -267
- data/config/preferences/Lex/Flex.json +0 -3
- data/config/preferences/Lighttpd.json +0 -3
- data/config/preferences/LilyPond.json +0 -77
- data/config/preferences/Lisp.json +0 -63
- data/config/preferences/Logo.json +0 -58
- data/config/preferences/Logtalk.json +0 -236
- data/config/preferences/Lua.json +0 -24
- data/config/preferences/MEL.json +0 -19
- data/config/preferences/MIPS Assembler.json +0 -26
- data/config/preferences/MacPorts.json +0 -3
- data/config/preferences/Mail.json +0 -3
- data/config/preferences/Make.json +0 -16
- data/config/preferences/Markdown.json +0 -102
- data/config/preferences/Math.json +0 -3
- data/config/preferences/Matlab.json +0 -128
- data/config/preferences/Maven.json +0 -308
- data/config/preferences/Mediawiki.json +0 -73
- data/config/preferences/Mercurial.json +0 -3
- data/config/preferences/Modula.json +0 -37
- data/config/preferences/MoinMoin.json +0 -52
- data/config/preferences/Navigation.json +0 -3
- data/config/preferences/Nemerle.json +0 -3
- data/config/preferences/OCaml Code Completion.json +0 -3
- data/config/preferences/OCaml.json +0 -163
- data/config/preferences/ODCompletion.json +0 -3
- data/config/preferences/Objective-C.json +0 -84
- data/config/preferences/OpenGL.json +0 -3331
- data/config/preferences/Outlines.json +0 -3
- data/config/preferences/Pascal.json +0 -60
- data/config/preferences/Perforce.json +0 -3
- data/config/preferences/Perl.json +0 -15
- data/config/preferences/PmWiki.json +0 -27
- data/config/preferences/Postscript.json +0 -15
- data/config/preferences/Processing.json +0 -32
- data/config/preferences/Prolog.json +0 -3
- data/config/preferences/Propel.json +0 -3
- data/config/preferences/Python.json +0 -38
- data/config/preferences/Quake.json +0 -15
- data/config/preferences/R.json +0 -33
- data/config/preferences/Ragel.json +0 -15
- data/config/preferences/Regular Expressions.json +0 -3
- data/config/preferences/Remind.json +0 -15
- data/config/preferences/Rez.json +0 -46
- data/config/preferences/Ruby.json +0 -98
- data/config/preferences/S5 Slide Show.json +0 -20
- data/config/preferences/SCons.json +0 -3
- data/config/preferences/SQL.json +0 -32
- data/config/preferences/SSH Config.json +0 -15
- data/config/preferences/SVK.json +0 -3
- data/config/preferences/SWIG.json +0 -3
- data/config/preferences/SWeave.json +0 -32
- data/config/preferences/Scheme.json +0 -35
- data/config/preferences/Scilab.json +0 -15
- data/config/preferences/Setext.json +0 -3
- data/config/preferences/Shell Script.json +0 -25
- data/config/preferences/Slate.json +0 -113
- data/config/preferences/Source.json +0 -132
- data/config/preferences/Subversion.json +0 -10
- data/config/preferences/TODO.json +0 -3
- data/config/preferences/Tabular.json +0 -3
- data/config/preferences/Tcl.json +0 -82
- data/config/preferences/TerminalMate.json +0 -112
- data/config/preferences/Text.json +0 -89
- data/config/preferences/TextMate.json +0 -38
- data/config/preferences/Textile.json +0 -76
- data/config/preferences/Thrift.json +0 -56
- data/config/preferences/Transmit.json +0 -3
- data/config/preferences/Twiki.json +0 -51
- data/config/preferences/Txt2tags.json +0 -81
- data/config/preferences/Vectorscript.json +0 -1280
- data/config/preferences/XML.json +0 -60
- data/config/preferences/Xcode.json +0 -3
- data/config/preferences/YAML.json +0 -24
- data/config/preferences/iCalendar.json +0 -10
- data/config/preferences/iTerm.json +0 -36
- data/config/preferences/reStructuredText.json +0 -48
- data/config/syntax/ANTLR.json +0 -275
- data/config/syntax/ASP vb.NET.json +0 -228
- data/config/syntax/ASP.json +0 -135
- data/config/syntax/ActionScript.json +0 -168
- data/config/syntax/Active4D Config.json +0 -86
- data/config/syntax/Active4D Library.json +0 -20
- data/config/syntax/Active4D.json +0 -418
- data/config/syntax/Ada.json +0 -108
- data/config/syntax/Ant.json +0 -196
- data/config/syntax/Apache.json +0 -342
- data/config/syntax/AppleScript.json +0 -721
- data/config/syntax/BibTeX.json +0 -253
- data/config/syntax/Bison.json +0 -59
- data/config/syntax/Blog - HTML.json +0 -47
- data/config/syntax/Blog - Markdown.json +0 -50
- data/config/syntax/Blog - Text.json +0 -45
- data/config/syntax/Blog - Textile.json +0 -45
- data/config/syntax/C++.json +0 -323
- data/config/syntax/C.json +0 -694
- data/config/syntax/CMake Listfile.json +0 -171
- data/config/syntax/CSS.json +0 -346
- data/config/syntax/CSV.json +0 -108
- data/config/syntax/ColdFusion.json +0 -204
- data/config/syntax/D.json +0 -560
- data/config/syntax/Diff.json +0 -136
- data/config/syntax/DokuWiki.json +0 -412
- data/config/syntax/Doxygen.json +0 -80
- data/config/syntax/Dylan.json +0 -104
- data/config/syntax/Eiffel.json +0 -128
- data/config/syntax/Erlang.json +0 -1636
- data/config/syntax/F-Script.json +0 -137
- data/config/syntax/FXScript.json +0 -260
- data/config/syntax/Fortran - Modern.json +0 -221
- data/config/syntax/Fortran - Punchcard.json +0 -468
- data/config/syntax/GTD.json +0 -39
- data/config/syntax/GTDalt.json +0 -233
- data/config/syntax/Gettext.json +0 -118
- data/config/syntax/Go.json +0 -555
- data/config/syntax/Graphviz (DOT).json +0 -79
- data/config/syntax/Greasemonkey.json +0 -56
- data/config/syntax/Gri.json +0 -141
- data/config/syntax/HTML (ASP).json +0 -45
- data/config/syntax/HTML (ASP.net).json +0 -736
- data/config/syntax/HTML (Active4D).json +0 -540
- data/config/syntax/HTML (Erlang).json +0 -31
- data/config/syntax/HTML (Tcl).json +0 -42
- data/config/syntax/HTML.json +0 -614
- data/config/syntax/Haskell.json +0 -407
- data/config/syntax/Inform.json +0 -80
- data/config/syntax/Ini.json +0 -91
- data/config/syntax/Installer Distribution Script.json +0 -135
- data/config/syntax/Io.json +0 -142
- data/config/syntax/JSON.json +0 -151
- data/config/syntax/Java Properties.json +0 -42
- data/config/syntax/Java Server Page (JSP).json +0 -163
- data/config/syntax/Java.json +0 -745
- data/config/syntax/JavaDoc.json +0 -435
- data/config/syntax/JavaScript.json +0 -446
- data/config/syntax/LaTeX Beamer.json +0 -65
- data/config/syntax/LaTeX Log.json +0 -88
- data/config/syntax/LaTeX Memoir.json +0 -101
- data/config/syntax/LaTeX.json +0 -962
- data/config/syntax/Lex-Flex.json +0 -396
- data/config/syntax/Lighttpd.json +0 -93
- data/config/syntax/LilyPond.json +0 -608
- data/config/syntax/Lisp.json +0 -101
- data/config/syntax/Literate Haskell.json +0 -55
- data/config/syntax/Logo.json +0 -48
- data/config/syntax/Logtalk.json +0 -289
- data/config/syntax/Lua.json +0 -146
- data/config/syntax/MATLAB.json +0 -744
- data/config/syntax/MEL.json +0 -161
- data/config/syntax/MIPS Assembler.json +0 -114
- data/config/syntax/MacPorts Portfile.json +0 -298
- data/config/syntax/Mail.json +0 -224
- data/config/syntax/Makefile.json +0 -66
- data/config/syntax/Markdown.json +0 -644
- data/config/syntax/Maven POM.json +0 -774
- data/config/syntax/Mediawiki.json +0 -736
- data/config/syntax/Modula-3.json +0 -80
- data/config/syntax/MoinMoin.json +0 -335
- data/config/syntax/MultiMarkdown.json +0 -41
- data/config/syntax/Nemerle.json +0 -128
- data/config/syntax/OCaml.json +0 -1391
- data/config/syntax/OCamllex.json +0 -307
- data/config/syntax/OCamlyacc.json +0 -346
- data/config/syntax/Objective-C++.json +0 -21
- data/config/syntax/Objective-C.json +0 -979
- data/config/syntax/Octave.json +0 -417
- data/config/syntax/OpenGL.json +0 -24
- data/config/syntax/PHP.json +0 -2184
- data/config/syntax/Pascal.json +0 -128
- data/config/syntax/Perl.json +0 -2091
- data/config/syntax/Plain Text.json +0 -49
- data/config/syntax/PmWiki.json +0 -241
- data/config/syntax/Postscript.json +0 -206
- data/config/syntax/Processing.json +0 -188
- data/config/syntax/Prolog.json +0 -70
- data/config/syntax/Python.json +0 -1934
- data/config/syntax/Quake Style .cfg.json +0 -54
- data/config/syntax/R.json +0 -157
- data/config/syntax/Ragel.json +0 -362
- data/config/syntax/Rd (R Documentation).json +0 -119
- data/config/syntax/Regular Expressions (Oniguruma).json +0 -186
- data/config/syntax/Regular Expressions (Python).json +0 -188
- data/config/syntax/Release Notes.json +0 -78
- data/config/syntax/Remind.json +0 -461
- data/config/syntax/Rez.json +0 -137
- data/config/syntax/Ruby Sass.json +0 -497
- data/config/syntax/Ruby.json +0 -1753
- data/config/syntax/S5 Slide Show.json +0 -85
- data/config/syntax/SQL.json +0 -435
- data/config/syntax/SSH Config.json +0 -55
- data/config/syntax/SWIG.json +0 -96
- data/config/syntax/SWeave.json +0 -139
- data/config/syntax/Scheme.json +0 -359
- data/config/syntax/Scilab.json +0 -69
- data/config/syntax/Setext.json +0 -247
- data/config/syntax/Shell Script (Bash).json +0 -1198
- data/config/syntax/Slate.json +0 -265
- data/config/syntax/Strings File.json +0 -53
- data/config/syntax/TSV.json +0 -83
- data/config/syntax/Tcl.json +0 -278
- data/config/syntax/TeX Math.json +0 -83
- data/config/syntax/TeX.json +0 -157
- data/config/syntax/Textile.json +0 -273
- data/config/syntax/Thrift.json +0 -641
- data/config/syntax/Twiki.json +0 -436
- data/config/syntax/Txt2tags.json +0 -154
- data/config/syntax/Vectorscript.json +0 -97
- data/config/syntax/XML strict.json +0 -148
- data/config/syntax/XML.json +0 -301
- data/config/syntax/XSL.json +0 -96
- data/config/syntax/YAML.json +0 -293
- data/config/syntax/camlp4.json +0 -63
- data/config/syntax/iCalendar.json +0 -51
- data/config/syntax/mod_perl.json +0 -72
- data/config/syntax/reStructuredText.json +0 -403
- data/config/syntax/svn-commit.tmp.json +0 -62
- data/config/theme/Active4D.json +0 -260
- data/config/theme/All Hallow's Eve.json +0 -171
- data/config/theme/Amy.json +0 -359
- data/config/theme/BBEdit.json +0 -269
- data/config/theme/Bespin.json +0 -322
- data/config/theme/Blackboard.json +0 -215
- data/config/theme/BoysAndGirls01.json +0 -156
- data/config/theme/Brilliance Black.json +0 -1695
- data/config/theme/Brilliance Dull.json +0 -1451
- data/config/theme/Classic Modified.json +0 -288
- data/config/theme/Cobalt.json +0 -345
- data/config/theme/Cool Glow.json +0 -215
- data/config/theme/Dawn.json +0 -258
- data/config/theme/Eiffel.json +0 -270
- data/config/theme/Espresso Libre.json +0 -247
- data/config/theme/Fluidvision.json +0 -272
- data/config/theme/IDLE.json +0 -159
- data/config/theme/LAZY.json +0 -178
- data/config/theme/Mac Classic.json +0 -277
- data/config/theme/MagicWB (Amiga).json +0 -231
- data/config/theme/Merbivore Soft.json +0 -181
- data/config/theme/Merbivore.json +0 -181
- data/config/theme/Monokai.json +0 -177
- data/config/theme/Notepad2.json +0 -166
- data/config/theme/Pastels on Dark.json +0 -437
- data/config/theme/RubyBlue.json +0 -226
- data/config/theme/Sin City 2.json +0 -361
- data/config/theme/Slate.json +0 -270
- data/config/theme/Slush & Poppies.json +0 -232
- data/config/theme/SpaceCadet.json +0 -143
- data/config/theme/Sunburst.json +0 -415
- data/config/theme/Twilight BG FG.json +0 -633
- data/config/theme/Twilight.json +0 -321
- data/config/theme/Whys Poignant.json +0 -119
- data/config/theme/Zenburnesque.json +0 -237
- data/config/theme/barf.json +0 -155
- data/config/theme/fake.json +0 -418
- data/config/theme/happydeluxe.json +0 -114
- data/config/theme/iLife 05.json +0 -393
- data/config/theme/iPlastic.json +0 -177
- data/config/theme/mintBlue Dark.json +0 -414
- data/config/theme/mintBlue.json +0 -415
- data/config/theme/monoindustrial.json +0 -276
- data/config/theme/starlight.json +0 -67
- data/lib/ver/layout.rb +0 -177
- data/lib/ver/methods/select.rb +0 -322
- data/lib/ver/methods/shortcuts.rb +0 -21
- data/lib/ver/methods/views.rb +0 -81
- data/lib/ver/mode.rb +0 -207
- data/lib/ver/status/context.rb +0 -166
- data/lib/ver/view.rb +0 -190
- data/lib/ver/view/console.rb +0 -171
- data/lib/ver/view/entry.rb +0 -32
- data/lib/ver/view/list.rb +0 -152
- data/lib/ver/view/list/buffer.rb +0 -27
- data/lib/ver/view/list/ex.rb +0 -71
- data/lib/ver/view/list/fuzzy_file_finder.rb +0 -44
- data/lib/ver/view/list/grep.rb +0 -53
- data/lib/ver/view/list/methods.rb +0 -159
- data/lib/ver/view/list/syntax.rb +0 -13
- data/lib/ver/view/list/theme.rb +0 -13
- data/lib/ver/view/term.rb +0 -255
- data/tasks/plist2json.rake +0 -35
@@ -0,0 +1,11 @@
|
|
1
|
+
# Encoding: UTF-8
|
2
|
+
|
3
|
+
{"rd" =>
|
4
|
+
{scope: "text.tex.latex",
|
5
|
+
name: "\\begin{Rdaemon}…\\end{Rdaemon}",
|
6
|
+
content: "\\\\begin{Rdaemon}\n> $0\n\\\\end{Rdaemon}"},
|
7
|
+
"rdenv" =>
|
8
|
+
{scope: "text.tex.latex",
|
9
|
+
name: "\\newenvironment{Rdaemon}",
|
10
|
+
content:
|
11
|
+
"\\usepackage{moreverb}\n\\newenvironment{Rdaemon}% \n{\\endgraf\\noindent % \n \\endgraf\\verbatimtab}% \n{\\endverbatimtab}\n"}}
|
@@ -0,0 +1,79 @@
|
|
1
|
+
# Encoding: UTF-8
|
2
|
+
|
3
|
+
{"rug" =>
|
4
|
+
{scope: "source.r, source.rd.console",
|
5
|
+
name: "Add Tick Marks",
|
6
|
+
content: "rug(${1:jitter(${2:x})})"},
|
7
|
+
"att" =>
|
8
|
+
{scope: "source.r, source.rd.console",
|
9
|
+
name: "Attach",
|
10
|
+
content: "attach(${1:frame})"},
|
11
|
+
"cum" =>
|
12
|
+
{scope: "source.r, source.rd.console",
|
13
|
+
name: "Cummulative",
|
14
|
+
content: "cum${1:max}(${2:x})"},
|
15
|
+
"den" =>
|
16
|
+
{scope: "source.r, source.rd.console",
|
17
|
+
name: "Density",
|
18
|
+
content: "density(${1:x}${2:, bw = ${3:bandwidth}})"},
|
19
|
+
"det" =>
|
20
|
+
{scope: "source.r, source.rd.console",
|
21
|
+
name: "Detach",
|
22
|
+
content: "detach(${0:})"},
|
23
|
+
"cut" =>
|
24
|
+
{scope: "source.r, source.rd.console",
|
25
|
+
name: "Divide Into Intervals",
|
26
|
+
content: "cut(${1:x}, breaks = c(${2:${3:}, ${4:max(${1:x})}}))"},
|
27
|
+
"fac" =>
|
28
|
+
{scope: "source.r, source.rd.console",
|
29
|
+
name: "Factor",
|
30
|
+
content: "factor(${1:x})"},
|
31
|
+
"for" =>
|
32
|
+
{scope: "source.r, source.rd.console",
|
33
|
+
name: "For Loop",
|
34
|
+
content: "for (${1:i} in ${2:seq}) ${3:{$0\\}}"},
|
35
|
+
"fun" =>
|
36
|
+
{scope: "source.r, source.rd.console",
|
37
|
+
name: "Function",
|
38
|
+
content: "function(${1:x}) ${3:{$0\\}}"},
|
39
|
+
"ife" =>
|
40
|
+
{scope: "source.r, source.rd.console",
|
41
|
+
name: "Ifelse",
|
42
|
+
content: "ifelse(${1:test}, ${2:yes}, ${3:no})"},
|
43
|
+
"len" =>
|
44
|
+
{scope: "source.r, source.rd.console",
|
45
|
+
name: "Length",
|
46
|
+
content: "length(${1:x})"},
|
47
|
+
"dat" =>
|
48
|
+
{scope: "source.r, source.rd.console",
|
49
|
+
name: "Load Dataset",
|
50
|
+
content: "data(${1:name})"},
|
51
|
+
"lin" =>
|
52
|
+
{scope: "source.r, source.rd.console",
|
53
|
+
name: "Polygonal Line",
|
54
|
+
content: "lines(${1:x}${2:, color=${3:red}})"},
|
55
|
+
"rea" =>
|
56
|
+
{scope: "source.r, source.rd.console",
|
57
|
+
name: "Read From File",
|
58
|
+
content:
|
59
|
+
"read.table(\"${1:filename}\"${2:, header = ${3:TRUE}, sep = \"${4:\\t}\", stringsAsFactors = ${5:FALSE}})"},
|
60
|
+
"seq" =>
|
61
|
+
{scope: "source.r, source.rd.console",
|
62
|
+
name: "Sequence (from,to,by)",
|
63
|
+
content: "seq(${1:from}, ${2:to}, ${3:by})"},
|
64
|
+
"sor" =>
|
65
|
+
{scope: "source.r, source.rd.console",
|
66
|
+
name: "Sort",
|
67
|
+
content: "sort(${1:x})"},
|
68
|
+
"sou" =>
|
69
|
+
{scope: "source.r, source.rd.console",
|
70
|
+
name: "Source",
|
71
|
+
content: "source(${1:\"${2:}\"}${3:, chdir = ${4:TRUE}})"},
|
72
|
+
"fch" =>
|
73
|
+
{scope: "source.r, source.rd.console",
|
74
|
+
name: "file.choose",
|
75
|
+
content: "${1:file = }file.choose()${0:}"},
|
76
|
+
"nao" =>
|
77
|
+
{scope: "source.r, source.rd.console",
|
78
|
+
name: "na.omit",
|
79
|
+
content: "na.omit(${0:})"}}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# Encoding: UTF-8
|
2
|
+
|
3
|
+
{"bir" =>
|
4
|
+
{scope: "source.remind",
|
5
|
+
name: "Birthday",
|
6
|
+
content:
|
7
|
+
"REM ${1:`date +'%b'`} ${2:`date +'%e'`} MSG ${4:${3:Someone}’s birthday}${6: (19${5:??})}"},
|
8
|
+
"rem" =>
|
9
|
+
{scope: "source.remind",
|
10
|
+
name: "Date Only",
|
11
|
+
content:
|
12
|
+
"REM ${1:`LANG=en_US date +'%b'`} ${2:`date +'%e'`} ${3:`date +'%Y'`} MSG ${0:message…}"},
|
13
|
+
"at" =>
|
14
|
+
{scope: "source.remind",
|
15
|
+
name: "Date and Time",
|
16
|
+
content:
|
17
|
+
"REM ${1:`LANG=en_US date +'%b'`} ${2/^(.)$|.*/(?1: )/}${2:`date +'%e'`} ${3:`date +'%Y'`}${4: AT ${5:16}:${6:00}} MSG ${0:message…}"}}
|
@@ -0,0 +1,240 @@
|
|
1
|
+
# Encoding: UTF-8
|
2
|
+
|
3
|
+
{"mat" =>
|
4
|
+
{scope: "source.ruby.rspec",
|
5
|
+
name: "Custom Matcher",
|
6
|
+
content:
|
7
|
+
"class ${1:ReverseTo}\n def initialize($3)\n @$3 = $3\n end\n\n def matches?(actual)\n @actual = actual\n # Satisfy expectation here. Return false or raise an error if it's not met.\n ${0:@actual.reverse.should == @$3}\n true\n end\n\n def failure_message\n \"expected \#{@actual.inspect} to $2 \#{@$3.inspect}, but it didn't\"\n end\n\n def negative_failure_message\n \"expected \#{@actual.inspect} not to $2 \#{@$3.inspect}, but it did\"\n end\nend\n\ndef ${2:reverse_to}(${3:expected})\n $1.new($3)\nend"},
|
8
|
+
"des" =>
|
9
|
+
{scope: "source.ruby.rspec",
|
10
|
+
name: "describe (String)",
|
11
|
+
content:
|
12
|
+
"describe \"${1:description}\" do\n it \"should ${2:description}\" do\n $0\n end\nend"},
|
13
|
+
"dest" =>
|
14
|
+
{scope: "source.ruby.rspec",
|
15
|
+
name: "describe (type)",
|
16
|
+
content:
|
17
|
+
"describe ${1:Type} do\n it \"should ${2:description}\" do\n $0\n end\nend"},
|
18
|
+
"dests" =>
|
19
|
+
{scope: "source.ruby.rspec",
|
20
|
+
name: "describe (type, string)",
|
21
|
+
content:
|
22
|
+
"describe ${1:Type}, \"${2:description}\" do\n it \"should ${3:description}\" do\n $0\n end\nend"},
|
23
|
+
"it" =>
|
24
|
+
{scope: "source.ruby.rspec",
|
25
|
+
name: "it",
|
26
|
+
content: "it \"${2:should ${1:description}}\" ${3:do\n $0\nend}"},
|
27
|
+
"resh" =>
|
28
|
+
{scope: "source.ruby.rspec",
|
29
|
+
name: "Require spec_helper",
|
30
|
+
content: "require File.dirname(__FILE__) + '/../spec_helper'"},
|
31
|
+
"conn" =>
|
32
|
+
{scope: "source.ruby.rspec",
|
33
|
+
name: "controller_name",
|
34
|
+
content: "controller_name :${1:controller}"},
|
35
|
+
"st" =>
|
36
|
+
{scope: "source.ruby.rspec",
|
37
|
+
name: "Story",
|
38
|
+
content:
|
39
|
+
"Story \"${1:title}\", %{\n As a${2:role}\n I want ${3:feature}\n So that ${4:value} \n} do\nend"},
|
40
|
+
"anr" =>
|
41
|
+
{scope: "source.ruby.rspec",
|
42
|
+
name: "and_raise",
|
43
|
+
content: "and_raise(${1:exception})"},
|
44
|
+
"anrb" =>
|
45
|
+
{scope: "source.ruby.rspec",
|
46
|
+
name: "and_return with block",
|
47
|
+
content: "and_return { $1 }"},
|
48
|
+
"anra" =>
|
49
|
+
{scope: "source.ruby.rspec",
|
50
|
+
name: "and_return with args",
|
51
|
+
content: "and_return(${1:value})"},
|
52
|
+
"ant" =>
|
53
|
+
{scope: "source.ruby.rspec",
|
54
|
+
name: "and_throw",
|
55
|
+
content: "and_throw(${1:sym})"},
|
56
|
+
"any" =>
|
57
|
+
{scope: "source.ruby.rspec",
|
58
|
+
name: "and_yield",
|
59
|
+
content: "and_yield(${1:values})"},
|
60
|
+
"annot" =>
|
61
|
+
{scope: "source.ruby.rspec",
|
62
|
+
name: "any_number_of_times",
|
63
|
+
content: "any_number_of_times"},
|
64
|
+
"atl" =>
|
65
|
+
{scope: "source.ruby.rspec",
|
66
|
+
name: "at_least",
|
67
|
+
content: "at_least(${1:n}).times"},
|
68
|
+
"atm" =>
|
69
|
+
{scope: "source.ruby.rspec",
|
70
|
+
name: "at_most",
|
71
|
+
content: "at_most(${1:n}).times"},
|
72
|
+
"desc" =>
|
73
|
+
{scope: "source.ruby.rspec",
|
74
|
+
name: "describe (Controller)",
|
75
|
+
content:
|
76
|
+
"require File.dirname(__FILE__) + '/../spec_helper'\n\ndescribe ${1:controller} do\n $0\nend"},
|
77
|
+
"desrc" =>
|
78
|
+
{scope: "source.ruby.rspec",
|
79
|
+
name: "describe (RESTful Controller)",
|
80
|
+
content:
|
81
|
+
"describe ${1:controller}, \"${2:GET|POST|PUT|DELETE} ${3:/some/path}${4: with some parameters}\" do\n $0\nend"},
|
82
|
+
"ex" =>
|
83
|
+
{scope: "source.ruby.rspec",
|
84
|
+
name: "exactly",
|
85
|
+
content: "exactly(${1:n}).times"},
|
86
|
+
"itsbl" =>
|
87
|
+
{scope: "source.ruby.rspec",
|
88
|
+
name: "it_should_behave_like",
|
89
|
+
content: "it_should_behave_like ${2:\"$1\"}$0"},
|
90
|
+
"moc" =>
|
91
|
+
{scope: "source.ruby.rspec",
|
92
|
+
name: "mock",
|
93
|
+
content:
|
94
|
+
"${1:var} = mock(\"${2:mock_name}\"${3:, :null_object => true})\n$0"},
|
95
|
+
"on" => {scope: "source.ruby.rspec", name: "once", content: "once"},
|
96
|
+
"ord" => {scope: "source.ruby.rspec", name: "ordered", content: "ordered"},
|
97
|
+
"shbs" =>
|
98
|
+
{scope: "source.ruby.rspec",
|
99
|
+
name: "should be_success",
|
100
|
+
content: "response.should be_success\n$0"},
|
101
|
+
"shnbs" =>
|
102
|
+
{scope: "source.ruby.rspec",
|
103
|
+
name: "should_not be_success",
|
104
|
+
content: "response.should_not be_success\n$0"},
|
105
|
+
"bef" =>
|
106
|
+
{scope: "source.ruby.rspec",
|
107
|
+
name: "before",
|
108
|
+
content: "before(${1::each}) do\n $0\nend"},
|
109
|
+
"sh=" =>
|
110
|
+
{scope: "source.ruby.rspec",
|
111
|
+
name: "should ==",
|
112
|
+
content: "${1:target}.should == ${2:value}\n$0"},
|
113
|
+
"shm" =>
|
114
|
+
{scope: "source.ruby.rspec",
|
115
|
+
name: "should match",
|
116
|
+
content: "${1:target}.should match(/${2:regexp}/)\n$0"},
|
117
|
+
"she" =>
|
118
|
+
{scope: "source.ruby.rspec",
|
119
|
+
name: "should equal",
|
120
|
+
content: "${1:target}.should equal(${2:value})\n$0"},
|
121
|
+
"shb" =>
|
122
|
+
{scope: "source.ruby.rspec",
|
123
|
+
name: "should be",
|
124
|
+
content: "${1:target}.should be(${2:result})\n$0"},
|
125
|
+
"shbko" =>
|
126
|
+
{scope: "source.ruby.rspec",
|
127
|
+
name: "should be_kind_of",
|
128
|
+
content: "${1:target}.should be_a_kind_of(${2:klass})\n$0"},
|
129
|
+
"shbio" =>
|
130
|
+
{scope: "source.ruby.rspec",
|
131
|
+
name: "should_not be_instance_of",
|
132
|
+
content: "${1:target}.should_not be_instance_of(${2:klass})\n$0"},
|
133
|
+
"shbc" =>
|
134
|
+
{scope: "source.ruby.rspec",
|
135
|
+
name: "should be_close",
|
136
|
+
content: "${1:target}.should be_close(${2:result}, ${3:tolerance})\n$0"},
|
137
|
+
"shbr" =>
|
138
|
+
{scope: "source.ruby.rspec",
|
139
|
+
name: "should be_redirect",
|
140
|
+
content: "response.should be_redirect\n$0"},
|
141
|
+
"shh" =>
|
142
|
+
{scope: "source.ruby.rspec",
|
143
|
+
name: "should have",
|
144
|
+
content: "${1:target}.should have(${2:num}).${3:things}\n$0"},
|
145
|
+
"shhal" =>
|
146
|
+
{scope: "source.ruby.rspec",
|
147
|
+
name: "should have_at_least",
|
148
|
+
content: "${1:target}.should have_at_least(${2:num}).${3:things}\n$0"},
|
149
|
+
"shham" =>
|
150
|
+
{scope: "source.ruby.rspec",
|
151
|
+
name: "should have_at_most",
|
152
|
+
content: "${1:target}.should have_at_most(${2:num}).${3:things}\n$0"},
|
153
|
+
"shhr" =>
|
154
|
+
{scope: "source.ruby.rspec",
|
155
|
+
name: "should have_records",
|
156
|
+
content: "${1:target}.should have(${2:x}).records\n$0"},
|
157
|
+
"shn=" =>
|
158
|
+
{scope: "source.ruby.rspec",
|
159
|
+
name: "should_not ==",
|
160
|
+
content: "${1:target}.should_not == ${2:value}\n$0"},
|
161
|
+
"shnm" =>
|
162
|
+
{scope: "source.ruby.rspec",
|
163
|
+
name: "should_not match",
|
164
|
+
content: "${1:target}.should_not match(/${2:regexp}/)\n$0"},
|
165
|
+
"shne" =>
|
166
|
+
{scope: "source.ruby.rspec",
|
167
|
+
name: "should_not equal",
|
168
|
+
content: "${1:target}.should_not equal(${2:value})\n$0"},
|
169
|
+
"shnb" =>
|
170
|
+
{scope: "source.ruby.rspec",
|
171
|
+
name: "should_not be",
|
172
|
+
content: "${1:target}.should_not be(${2:result})\n$0"},
|
173
|
+
"shkof" =>
|
174
|
+
{scope: "source.ruby.rspec",
|
175
|
+
name: "should_not be_kind_of",
|
176
|
+
content: "${1:target}.should_not be_a_kind_of(${2:klass})\n$0"},
|
177
|
+
"shnbc" =>
|
178
|
+
{scope: "source.ruby.rspec",
|
179
|
+
name: "should_not be_close",
|
180
|
+
content:
|
181
|
+
"${1:target}.should_not be_close(${2:result}, ${3:tolerance})\n$0"},
|
182
|
+
"shnbr" =>
|
183
|
+
{scope: "source.ruby.rspec",
|
184
|
+
name: "should_not be_redirect",
|
185
|
+
content: "response.should_not be_redirect\n$0"},
|
186
|
+
"shnp" =>
|
187
|
+
{scope: "source.ruby.rspec",
|
188
|
+
name: "should_not predicate",
|
189
|
+
content: "${1:target}.should_not ${2:be_${3:predicate}} $4\n$0"},
|
190
|
+
"shnre" =>
|
191
|
+
{scope: "source.ruby.rspec",
|
192
|
+
name: "should_not raise_error",
|
193
|
+
content: "lambda { $1 }.should_not raise_error(${2:error})\n$0"},
|
194
|
+
"shnr" =>
|
195
|
+
{scope: "source.ruby.rspec",
|
196
|
+
name: "should_not_receive",
|
197
|
+
content: "${1:mock}${1/^.+$/./}should_not_receive(:${2:message})"},
|
198
|
+
"shnrt" =>
|
199
|
+
{scope: "source.ruby.rspec",
|
200
|
+
name: "should_not respond_to",
|
201
|
+
content: "${1:target}.should_not respond_to(:${2:sym})\n$0"},
|
202
|
+
"shns" =>
|
203
|
+
{scope: "source.ruby.rspec",
|
204
|
+
name: "should_not satisfy",
|
205
|
+
content: "${1:target}.should_not satisfy { |obj| $2 }\n$0"},
|
206
|
+
"shnt" =>
|
207
|
+
{scope: "source.ruby.rspec",
|
208
|
+
name: "should_not throw",
|
209
|
+
content: "lambda { $1 }.should_not throw_symbol(:${2:symbol})\n$0"},
|
210
|
+
"shp" =>
|
211
|
+
{scope: "source.ruby.rspec",
|
212
|
+
name: "should predicate",
|
213
|
+
content: "${1:target}.should ${2:be_${3:predicate}} $4\n$0"},
|
214
|
+
"shre" =>
|
215
|
+
{scope: "source.ruby.rspec",
|
216
|
+
name: "should raise_error",
|
217
|
+
content: "lambda { $1 }.should raise_error(${2:error})\n$0"},
|
218
|
+
"shr" =>
|
219
|
+
{scope: "source.ruby.rspec",
|
220
|
+
name: "should_receive",
|
221
|
+
content: "${1:mock}${1/^.+$/./}should_receive(:${2:message})"},
|
222
|
+
"wia" =>
|
223
|
+
{scope: "source.ruby.rspec", name: "with args", content: "with(${1:args})"},
|
224
|
+
"shrt" =>
|
225
|
+
{scope: "source.ruby.rspec",
|
226
|
+
name: "should respond_to",
|
227
|
+
content: "${1:target}.should respond_to(:${2:sym})\n$0"},
|
228
|
+
"shs" =>
|
229
|
+
{scope: "source.ruby.rspec",
|
230
|
+
name: "should satisfy",
|
231
|
+
content: "${1:target}.should satisfy { |obj| $2 }\n$0"},
|
232
|
+
"sht" =>
|
233
|
+
{scope: "source.ruby.rspec",
|
234
|
+
name: "should throw",
|
235
|
+
content: "lambda { $1 }.should throw_symbol(:${2:symbol})\n$0"},
|
236
|
+
"aft" =>
|
237
|
+
{scope: "source.ruby.rspec",
|
238
|
+
name: "after",
|
239
|
+
content: "after(${1::each}) do\n $0\nend"},
|
240
|
+
"tw" => {scope: "source.ruby.rspec", name: "twice", content: "twice"}}
|
@@ -0,0 +1,767 @@
|
|
1
|
+
# Encoding: UTF-8
|
2
|
+
|
3
|
+
{"ft" =>
|
4
|
+
{scope: "text.html.ruby, text.haml",
|
5
|
+
name: "form_tag",
|
6
|
+
content:
|
7
|
+
"${TM_RAILS_TEMPLATE_START_RUBY_INLINE}form_tag(${1::action => \"${5:update}\"}${6:, {:${8:class} => \"${9:form}\"\\}}) do${TM_RAILS_TEMPLATE_END_RUBY_EXPR}\n $0\n${TM_RAILS_TEMPLATE_END_RUBY_BLOCK}"},
|
8
|
+
"mcol" =>
|
9
|
+
{scope:
|
10
|
+
"meta.rails.migration - meta.rails.migration.create_table - meta.rails.migration.change_table",
|
11
|
+
name: "Remove / Add Column",
|
12
|
+
content:
|
13
|
+
"remove_column :${1:table}, :${2:column}${3: [press tab twice to generate add_column]}"},
|
14
|
+
"mccc" =>
|
15
|
+
{scope: "meta.rails.migration.create_table",
|
16
|
+
name: "Create Several Columns in Table",
|
17
|
+
content: "t.column ${1:title}, :${2:string}\nmccc$0"},
|
18
|
+
"mtab" =>
|
19
|
+
{scope:
|
20
|
+
"meta.rails.migration - meta.rails.migration.create_table - meta.rails.migration.change_table",
|
21
|
+
name: "Drop / Create Table",
|
22
|
+
content:
|
23
|
+
"drop_table :${1:table}${2: [press tab twice to generate create_table]}"},
|
24
|
+
"rdb" =>
|
25
|
+
{scope: "source.ruby.rails",
|
26
|
+
name: "RAILS_DEFAULT_LOGGER.debug",
|
27
|
+
content: "RAILS_DEFAULT_LOGGER.debug \"${1:message}\"$0"},
|
28
|
+
"art" =>
|
29
|
+
{scope: "source.ruby.rails",
|
30
|
+
name: "assert_redirected_to",
|
31
|
+
content: "assert_redirected_to ${2::action => \"${1:index}\"}"},
|
32
|
+
"asre" =>
|
33
|
+
{scope: "source.ruby.rails",
|
34
|
+
name: "assert_response",
|
35
|
+
content: "assert_response :${1:success}, @response.body$0"},
|
36
|
+
"bt" =>
|
37
|
+
{scope: "source.ruby.rails",
|
38
|
+
name: "belongs_to",
|
39
|
+
content:
|
40
|
+
"belongs_to :${1:object}${2:, :class_name => \"${3:${1/[[:alpha:]]+|(_)/(?1::\\u$0)/g}}\", :foreign_key => \"${4:${1}_id}\"}"},
|
41
|
+
"habtm" =>
|
42
|
+
{scope: "source.ruby.rails",
|
43
|
+
name: "has_and_belongs_to_many",
|
44
|
+
content:
|
45
|
+
"has_and_belongs_to_many :${1:object}${2:, :join_table => \"${3:table_name}\", :foreign_key => \"${4:${1}_id}\"}"},
|
46
|
+
"hm" =>
|
47
|
+
{scope: "source.ruby.rails",
|
48
|
+
name: "has_many",
|
49
|
+
content:
|
50
|
+
"has_many :${1:object}s${2:, :class_name => \"${1}\", :foreign_key => \"${4:reference}_id\"}"},
|
51
|
+
"ho" =>
|
52
|
+
{scope: "source.ruby.rails",
|
53
|
+
name: "has_one",
|
54
|
+
content:
|
55
|
+
"has_one :${1:object}${2:, :class_name => \"${3:${1/[[:alpha:]]+|(_)/(?1::\\u$0)/g}}\", :foreign_key => \"${4:${1}_id}\"}"},
|
56
|
+
"lia" =>
|
57
|
+
{scope: "text.html.ruby, text.haml",
|
58
|
+
name: "link_to (action)",
|
59
|
+
content:
|
60
|
+
"${TM_RAILS_TEMPLATE_START_RUBY_EXPR}link_to \"${1:link text...}\", :action => \"${2:index}\"${TM_RAILS_TEMPLATE_END_RUBY_EXPR}"},
|
61
|
+
"liai" =>
|
62
|
+
{scope: "text.html.ruby, text.haml",
|
63
|
+
name: "link_to (action, id)",
|
64
|
+
content:
|
65
|
+
"${TM_RAILS_TEMPLATE_START_RUBY_EXPR}link_to \"${1:link text...}\", :action => \"${2:edit}\", :id => ${3:@item}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}"},
|
66
|
+
"lic" =>
|
67
|
+
{scope: "text.html.ruby, text.haml",
|
68
|
+
name: "link_to (controller)",
|
69
|
+
content:
|
70
|
+
"${TM_RAILS_TEMPLATE_START_RUBY_EXPR}link_to \"${1:link text...}\", :controller => \"${2:items}\"${TM_RAILS_TEMPLATE_END_RUBY_EXPR}"},
|
71
|
+
"lica" =>
|
72
|
+
{scope: "text.html.ruby, text.haml",
|
73
|
+
name: "link_to (controller, action)",
|
74
|
+
content:
|
75
|
+
"${TM_RAILS_TEMPLATE_START_RUBY_EXPR}link_to \"${1:link text...}\", :controller => \"${2:items}\", :action => \"${3:index}\"${TM_RAILS_TEMPLATE_END_RUBY_EXPR}"},
|
76
|
+
"licai" =>
|
77
|
+
{scope: "text.html.ruby, text.haml",
|
78
|
+
name: "link_to (controller, action, id)",
|
79
|
+
content:
|
80
|
+
"${TM_RAILS_TEMPLATE_START_RUBY_EXPR}link_to \"${1:link text...}\", :controller => \"${2:items}\", :action => \"${3:edit}\", :id => ${4:@item}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}"},
|
81
|
+
"flash" =>
|
82
|
+
{scope: "source.ruby.rails",
|
83
|
+
name: "flash[…]",
|
84
|
+
content: "flash[:${1:notice}] = \"${2:Successfully created...}\"$0"},
|
85
|
+
nil =>
|
86
|
+
{scope: "meta.rails.controller",
|
87
|
+
name: "respond_to (html)",
|
88
|
+
content:
|
89
|
+
"respond_to do |wants|\n\twants.html do\n\t\t$TM_SELECTED_TEXT\n\tend\n\twants.${1:js} { $0 }\nend"},
|
90
|
+
"rea" =>
|
91
|
+
{scope: "source.ruby.rails",
|
92
|
+
name: "redirect_to (action)",
|
93
|
+
content: "redirect_to :action => \"${1:index}\""},
|
94
|
+
"reai" =>
|
95
|
+
{scope: "source.ruby.rails",
|
96
|
+
name: "redirect_to (action, id)",
|
97
|
+
content: "redirect_to :action => \"${1:show}\", :id => ${0:@item}"},
|
98
|
+
"rec" =>
|
99
|
+
{scope: "source.ruby.rails",
|
100
|
+
name: "redirect_to (controller)",
|
101
|
+
content: "redirect_to :controller => \"${1:items}\""},
|
102
|
+
"reca" =>
|
103
|
+
{scope: "source.ruby.rails",
|
104
|
+
name: "redirect_to (controller, action)",
|
105
|
+
content:
|
106
|
+
"redirect_to :controller => \"${1:items}\", :action => \"${2:list}\""},
|
107
|
+
"recai" =>
|
108
|
+
{scope: "source.ruby.rails",
|
109
|
+
name: "redirect_to (controller, action, id)",
|
110
|
+
content:
|
111
|
+
"redirect_to :controller => \"${1:items}\", :action => \"${2:show}\", :id => ${0:@item}"},
|
112
|
+
"ra" =>
|
113
|
+
{scope: "source.ruby.rails",
|
114
|
+
name: "render (action)",
|
115
|
+
content: "render :action => \"${1:action}\""},
|
116
|
+
"ral" =>
|
117
|
+
{scope: "source.ruby.rails",
|
118
|
+
name: "render (action, layout)",
|
119
|
+
content:
|
120
|
+
"render :action => \"${1:action}\", :layout => \"${2:layoutname}\""},
|
121
|
+
"rf" =>
|
122
|
+
{scope: "source.ruby.rails",
|
123
|
+
name: "render (file)",
|
124
|
+
content: "render :file => \"${1:filepath}\""},
|
125
|
+
"rfu" =>
|
126
|
+
{scope: "source.ruby.rails",
|
127
|
+
name: "render (file, use_full_path)",
|
128
|
+
content: "render :file => \"${1:filepath}\", :use_full_path => ${2:false}"},
|
129
|
+
"ri" =>
|
130
|
+
{scope: "source.ruby.rails",
|
131
|
+
name: "render (inline)",
|
132
|
+
content: "render :inline => \"${1:<%= 'hello' %>}\""},
|
133
|
+
"ril" =>
|
134
|
+
{scope: "source.ruby.rails",
|
135
|
+
name: "render (inline, locals)",
|
136
|
+
content:
|
137
|
+
"render :inline => \"${1:<%= 'hello' %>}\", :locals => { ${2::name} => \"${3:value}\"$4 }"},
|
138
|
+
"rit" =>
|
139
|
+
{scope: "source.ruby.rails",
|
140
|
+
name: "render (inline, type)",
|
141
|
+
content: "render :inline => \"${1:<%= 'hello' %>}\", :type => ${2::rxml}"},
|
142
|
+
"rl" =>
|
143
|
+
{scope: "source.ruby.rails",
|
144
|
+
name: "render (layout)",
|
145
|
+
content: "render :layout => \"${1:layoutname}\""},
|
146
|
+
"rn" =>
|
147
|
+
{scope: "source.ruby.rails",
|
148
|
+
name: "render (nothing)",
|
149
|
+
content: "render :nothing => ${1:true}"},
|
150
|
+
"rns" =>
|
151
|
+
{scope: "source.ruby.rails",
|
152
|
+
name: "render (nothing, status)",
|
153
|
+
content: "render :nothing => ${1:true}, :status => ${2:401}"},
|
154
|
+
"rp" =>
|
155
|
+
{scope: "source.ruby.rails",
|
156
|
+
name: "render (partial)",
|
157
|
+
content: "render :partial => \"${1:item}\""},
|
158
|
+
"rpc" =>
|
159
|
+
{scope: "source.ruby.rails",
|
160
|
+
name: "render (partial, collection)",
|
161
|
+
content: "render :partial => \"${1:item}\", :collection => ${2:@$1s}"},
|
162
|
+
"rpl" =>
|
163
|
+
{scope: "source.ruby.rails",
|
164
|
+
name: "render (partial, locals)",
|
165
|
+
content:
|
166
|
+
"render :partial => \"${1:item}\", :locals => { :${2:$1} => ${3:@$1}$0 }"},
|
167
|
+
"rpo" =>
|
168
|
+
{scope: "source.ruby.rails",
|
169
|
+
name: "render (partial, object)",
|
170
|
+
content: "render :partial => \"${1:item}\", :object => ${2:@$1}"},
|
171
|
+
"rps" =>
|
172
|
+
{scope: "source.ruby.rails",
|
173
|
+
name: "render (partial, status)",
|
174
|
+
content: "render :partial => \"${1:item}\", :status => ${2:500}"},
|
175
|
+
"rt" =>
|
176
|
+
{scope: "source.ruby.rails",
|
177
|
+
name: "render (text)",
|
178
|
+
content: "render :text => \"${1:text to render...}\""},
|
179
|
+
"rtl" =>
|
180
|
+
{scope: "source.ruby.rails",
|
181
|
+
name: "render (text, layout)",
|
182
|
+
content:
|
183
|
+
"render :text => \"${1:text to render...}\", :layout => \"${2:layoutname}\""},
|
184
|
+
"rtlt" =>
|
185
|
+
{scope: "source.ruby.rails",
|
186
|
+
name: "render (text, layout => true)",
|
187
|
+
content:
|
188
|
+
"render :text => \"${1:text to render...}\", :layout => ${2:true}"},
|
189
|
+
"rts" =>
|
190
|
+
{scope: "source.ruby.rails",
|
191
|
+
name: "render (text, status)",
|
192
|
+
content: "render :text => \"${1:text to render...}\", :status => ${2:401}"},
|
193
|
+
"va" =>
|
194
|
+
{scope: "source.ruby.rails",
|
195
|
+
name: "validates_associated",
|
196
|
+
content: "validates_associated :${1:attribute}${2:, :on => :${3:create}}"},
|
197
|
+
"vaif" =>
|
198
|
+
{scope: "source.ruby.rails",
|
199
|
+
name: "validates_associated if",
|
200
|
+
content:
|
201
|
+
"validates_associated :${1:attribute}${2:, :on => :${3:create}, :if => proc { |obj| ${5:obj.condition?} }}"},
|
202
|
+
"vc" =>
|
203
|
+
{scope: "source.ruby.rails",
|
204
|
+
name: "validates_confirmation_of",
|
205
|
+
content:
|
206
|
+
"validates_confirmation_of :${1:attribute}${2:, :on => :${3:create}, :message => \"${4:should match confirmation}\"}"},
|
207
|
+
"vcif" =>
|
208
|
+
{scope: "source.ruby.rails",
|
209
|
+
name: "validates_confirmation_of if",
|
210
|
+
content:
|
211
|
+
"validates_confirmation_of :${1:attribute}${2:, :on => :${3:create}, :message => \"${4:should match confirmation}\", :if => proc { |obj| ${5:obj.condition?} }}"},
|
212
|
+
"ve" =>
|
213
|
+
{scope: "source.ruby.rails",
|
214
|
+
name: "validates_exclusion_of",
|
215
|
+
content:
|
216
|
+
"validates_exclusion_of :${1:attribute}${2:, :in => ${3:%w( ${4:mov avi} )}, :on => :${5:create}, :message => \"${6:extension %s is not allowed}\"}"},
|
217
|
+
"veif" =>
|
218
|
+
{scope: "source.ruby.rails",
|
219
|
+
name: "validates_exclusion_of if",
|
220
|
+
content:
|
221
|
+
"validates_exclusion_of :${1:attribute}${2:, :in => ${3:%w( ${4:mov avi} )}, :on => :${5:create}, :message => \"${6:extension %s is not allowed}\"}, :if => proc { |obj| ${7:obj.condition?} }}"},
|
222
|
+
"vl" =>
|
223
|
+
{scope: "source.ruby.rails",
|
224
|
+
name: "validates_length_of",
|
225
|
+
content:
|
226
|
+
"validates_length_of :${1:attribute}, :within => ${2:3..20}${3:, :on => :${4:create}, :message => \"${5:must be present}\"}"},
|
227
|
+
"vp" =>
|
228
|
+
{scope: "source.ruby.rails",
|
229
|
+
name: "validates_presence_of",
|
230
|
+
content:
|
231
|
+
"validates_presence_of :${1:attribute}${2:, :on => :${3:create}, :message => \"${4:can't be blank}\"}"},
|
232
|
+
"vpif" =>
|
233
|
+
{scope: "source.ruby.rails",
|
234
|
+
name: "validates_presence_of if",
|
235
|
+
content:
|
236
|
+
"validates_presence_of :${1:attribute}${2:, :on => :${3:create}, :message => \"${4:can't be blank}\"}, :if => proc { |obj| ${5:obj.condition?} }}"},
|
237
|
+
"vu" =>
|
238
|
+
{scope: "source.ruby.rails",
|
239
|
+
name: "validates_uniqueness_of",
|
240
|
+
content:
|
241
|
+
"validates_uniqueness_of :${1:attribute}${2:, :on => :${3:create}, :message => \"${4:must be unique}\"}"},
|
242
|
+
"vuif" =>
|
243
|
+
{scope: "source.ruby.rails",
|
244
|
+
name: "validates_uniqueness_of if",
|
245
|
+
content:
|
246
|
+
"validates_uniqueness_of :${1:attribute}${2:, :on => :${3:create}, :message => \"${4:must be unique}\", :if => proc { |obj| ${6:obj.condition?} }}"},
|
247
|
+
"verify" =>
|
248
|
+
{scope: "source.ruby.rails",
|
249
|
+
name: "verify — redirect",
|
250
|
+
content:
|
251
|
+
"verify :only => [:$1], :session => :user, :params => :id, :redirect_to => {:action => '${2:index}'}\n"},
|
252
|
+
"$L" => {scope: "source.yaml", name: "$LABEL", content: "\\$LABEL"},
|
253
|
+
"fi" =>
|
254
|
+
{scope: "source.yaml",
|
255
|
+
name: "<%= Fixtures.identify(:symbol) %>",
|
256
|
+
content:
|
257
|
+
"${TM_RAILS_TEMPLATE_START_RUBY_EXPR}Fixtures.identify(:${1:name})${TM_RAILS_TEMPLATE_END_RUBY_EXPR}$0"},
|
258
|
+
"tcbi" =>
|
259
|
+
{scope:
|
260
|
+
"meta.rails.migration.create_table, meta.rails.migration.change_table",
|
261
|
+
name: "Table column binary",
|
262
|
+
content: "t.binary :${1:title}${2:, :limit => ${3:2}.megabytes}\n$0"},
|
263
|
+
"tcb" =>
|
264
|
+
{scope:
|
265
|
+
"meta.rails.migration.create_table, meta.rails.migration.change_table",
|
266
|
+
name: "Table column boolean",
|
267
|
+
content: "t.boolean :${1:title}\n$0"},
|
268
|
+
"cla" =>
|
269
|
+
{scope: "source.ruby",
|
270
|
+
name: "Create functional test class",
|
271
|
+
content:
|
272
|
+
"require File.dirname(__FILE__) + '/../test_helper'\n\nclass ${1:Model}ControllerTest < ActionController::TestCase\n\tdeft$0\nend\n"},
|
273
|
+
"tcda" =>
|
274
|
+
{scope:
|
275
|
+
"meta.rails.migration.create_table, meta.rails.migration.change_table",
|
276
|
+
name: "Table column date",
|
277
|
+
content: "t.date :${1:title}\n$0"},
|
278
|
+
"tcdt" =>
|
279
|
+
{scope:
|
280
|
+
"meta.rails.migration.create_table, meta.rails.migration.change_table",
|
281
|
+
name: "Table column datetime",
|
282
|
+
content: "t.datetime :${1:title}\n$0"},
|
283
|
+
"tcd" =>
|
284
|
+
{scope:
|
285
|
+
"meta.rails.migration.create_table, meta.rails.migration.change_table",
|
286
|
+
name: "Table column decimal",
|
287
|
+
content:
|
288
|
+
"t.decimal :${1:title}${2:${3:, :precision => ${4:10}}${5:, :scale => ${6:2}}}\n$0"},
|
289
|
+
"tcf" =>
|
290
|
+
{scope:
|
291
|
+
"meta.rails.migration.create_table, meta.rails.migration.change_table",
|
292
|
+
name: "Table column float",
|
293
|
+
content: "t.float :${1:title}\n$0"},
|
294
|
+
"tci" =>
|
295
|
+
{scope:
|
296
|
+
"meta.rails.migration.create_table, meta.rails.migration.change_table",
|
297
|
+
name: "Table column integer",
|
298
|
+
content: "t.integer :${1:title}\n$0"},
|
299
|
+
"tcl" =>
|
300
|
+
{scope:
|
301
|
+
"meta.rails.migration.create_table, meta.rails.migration.change_table",
|
302
|
+
name: "Table column lock_version",
|
303
|
+
content: "t.integer :lock_version, :null => false, :default => 0\n$0"},
|
304
|
+
"tcr" =>
|
305
|
+
{scope:
|
306
|
+
"meta.rails.migration.create_table, meta.rails.migration.change_table",
|
307
|
+
name: "Table column(s) references",
|
308
|
+
content:
|
309
|
+
"t.references :${1:taggable}${2:, :polymorphic => ${3:{ :default => '${4:Photo}' \\}}}\n$0"},
|
310
|
+
"tcs" =>
|
311
|
+
{scope:
|
312
|
+
"meta.rails.migration.create_table, meta.rails.migration.change_table",
|
313
|
+
name: "Table column string",
|
314
|
+
content: "t.string :${1:title}\n$0"},
|
315
|
+
"tct" =>
|
316
|
+
{scope:
|
317
|
+
"meta.rails.migration.create_table, meta.rails.migration.change_table",
|
318
|
+
name: "Table column text",
|
319
|
+
content: "t.text :${1:title}\n$0"},
|
320
|
+
"tcti" =>
|
321
|
+
{scope:
|
322
|
+
"meta.rails.migration.create_table, meta.rails.migration.change_table",
|
323
|
+
name: "Table column time",
|
324
|
+
content: "t.time :${1:title}\n$0"},
|
325
|
+
"tcts" =>
|
326
|
+
{scope:
|
327
|
+
"meta.rails.migration.create_table, meta.rails.migration.change_table",
|
328
|
+
name: "Table column timestamp",
|
329
|
+
content: "t.timestamp :${1:title}\n$0"},
|
330
|
+
"tctss" =>
|
331
|
+
{scope:
|
332
|
+
"meta.rails.migration.create_table, meta.rails.migration.change_table",
|
333
|
+
name: "Table column timestamps",
|
334
|
+
content: "t.timestamps\n$0"},
|
335
|
+
"tre" =>
|
336
|
+
{scope:
|
337
|
+
"meta.rails.migration.create_table, meta.rails.migration.change_table",
|
338
|
+
name: "Table column(s) rename",
|
339
|
+
content: "t.rename(:${1:old_column_name}, :${2:new_column_name})\n$0"},
|
340
|
+
"aftc" =>
|
341
|
+
{scope: "source.ruby.rails", name: "after_create", content: "after_create "},
|
342
|
+
"aftd" =>
|
343
|
+
{scope: "source.ruby.rails",
|
344
|
+
name: "after_destroy",
|
345
|
+
content: "after_destroy "},
|
346
|
+
"afts" =>
|
347
|
+
{scope: "source.ruby.rails", name: "after_save", content: "after_save "},
|
348
|
+
"aftu" =>
|
349
|
+
{scope: "source.ruby.rails", name: "after_update", content: "after_update "},
|
350
|
+
"aftv" =>
|
351
|
+
{scope: "source.ruby.rails",
|
352
|
+
name: "after_validation",
|
353
|
+
content: "after_validation "},
|
354
|
+
"aftvoc" =>
|
355
|
+
{scope: "source.ruby.rails",
|
356
|
+
name: "after_validation_on_create",
|
357
|
+
content: "after_validation_on_create "},
|
358
|
+
"aftvou" =>
|
359
|
+
{scope: "source.ruby.rails",
|
360
|
+
name: "after_validation_on_update",
|
361
|
+
content: "after_validation_on_update "},
|
362
|
+
"asg" =>
|
363
|
+
{scope: "source.ruby",
|
364
|
+
name: "assert(var = assigns(:var))",
|
365
|
+
content: "assert(${1:var} = assigns(:${1}), \"Cannot find @${1}\")\n$0"},
|
366
|
+
"asd" =>
|
367
|
+
{scope: "source.ruby",
|
368
|
+
name: "assert_difference",
|
369
|
+
content:
|
370
|
+
"assert_difference \"${1:Model}.${2:count}\", ${3:1} do\n $0\nend"},
|
371
|
+
"asnd" =>
|
372
|
+
{scope: "source.ruby",
|
373
|
+
name: "assert_no_difference",
|
374
|
+
content: "assert_no_difference \"${1:Model}.${2:count}\" do\n $0\nend"},
|
375
|
+
"artnpp" =>
|
376
|
+
{scope: "source.ruby.rails",
|
377
|
+
name: "assert_redirected_to (nested path plural)",
|
378
|
+
content:
|
379
|
+
"assert_redirected_to ${10:${2:parent}_${3:child}_path(${4:@}${5:${2}})}"},
|
380
|
+
"artnp" =>
|
381
|
+
{scope: "source.ruby.rails",
|
382
|
+
name: "assert_redirected_to (nested path)",
|
383
|
+
content:
|
384
|
+
"assert_redirected_to ${2:${12:parent}_${13:child}_path(${14:@}${15:${12}}, ${16:@}${17:${13}})}"},
|
385
|
+
"artpp" =>
|
386
|
+
{scope: "source.ruby.rails",
|
387
|
+
name: "assert_redirected_to (path plural)",
|
388
|
+
content: "assert_redirected_to ${10:${2:model}s_path}"},
|
389
|
+
"artp" =>
|
390
|
+
{scope: "source.ruby.rails",
|
391
|
+
name: "assert_redirected_to (path)",
|
392
|
+
content: "assert_redirected_to ${2:${12:model}_path(${13:@}${14:${12}})}"},
|
393
|
+
"asrj" =>
|
394
|
+
{scope: "source.ruby.rails",
|
395
|
+
name: "assert_rjs",
|
396
|
+
content: "assert_rjs :${1:replace}, ${2:\"${3:dom id}\"}"},
|
397
|
+
"ass" =>
|
398
|
+
{scope: "source.ruby.rails",
|
399
|
+
name: "assert_select",
|
400
|
+
content:
|
401
|
+
"assert_select '${1:path}'${2:, :${3:text} => ${4:'${5:inner_html}'}}${6: do\n\t$0\nend}"},
|
402
|
+
"befc" =>
|
403
|
+
{scope: "source.ruby.rails",
|
404
|
+
name: "before_create",
|
405
|
+
content: "before_create "},
|
406
|
+
"befd" =>
|
407
|
+
{scope: "source.ruby.rails",
|
408
|
+
name: "before_destroy",
|
409
|
+
content: "before_destroy "},
|
410
|
+
"befs" =>
|
411
|
+
{scope: "source.ruby.rails", name: "before_save", content: "before_save "},
|
412
|
+
"befu" =>
|
413
|
+
{scope: "source.ruby.rails",
|
414
|
+
name: "before_update",
|
415
|
+
content: "before_update "},
|
416
|
+
"befv" =>
|
417
|
+
{scope: "source.ruby.rails",
|
418
|
+
name: "before_validation",
|
419
|
+
content: "before_validation "},
|
420
|
+
"befvoc" =>
|
421
|
+
{scope: "source.ruby.rails",
|
422
|
+
name: "before_validation_on_create",
|
423
|
+
content: "before_validation_on_create "},
|
424
|
+
"befvou" =>
|
425
|
+
{scope: "source.ruby.rails",
|
426
|
+
name: "before_validation_on_update",
|
427
|
+
content: "before_validation_on_update"},
|
428
|
+
"crw" =>
|
429
|
+
{scope: "source.ruby.rails",
|
430
|
+
name: "cattr_accessor",
|
431
|
+
content: "cattr_accessor :${0:attr_names}"},
|
432
|
+
"defcreate" =>
|
433
|
+
{scope: "meta.rails.controller",
|
434
|
+
name: "def create - resource",
|
435
|
+
content:
|
436
|
+
"def create\n\t@${1:model} = ${2:${1/[[:alpha:]]+|(_)/(?1::\\u$0)/g}}.new(params[:$1])\n\t$0\n\trespond_to do |wants|\n\t\tif @$1.save\n\t\t\tflash[:notice] = '$2 was successfully created.'\n\t\t\twants.html { redirect_to(@$1) }\n\t\t\twants.xml { render :xml => @$1, :status => :created, :location => @$1 }\n\t\telse\n\t\t\twants.html { render :action => \"new\" }\n\t\t\twants.xml { render :xml => @$1.errors, :status => :unprocessable_entity }\n\t\tend\n\tend\nend\n"},
|
437
|
+
"deftg" =>
|
438
|
+
{scope: "meta.rails.functional_test",
|
439
|
+
name: "def test_should_get_action",
|
440
|
+
content:
|
441
|
+
"def test_should_get_${1:action}\n\t${2:@${3:model} = ${4:$3s}(:${5:fixture_name})\n\t}get :${1}${6:, :id => @$3.to_param}\n\tassert_response :success\n\t$0\nend"},
|
442
|
+
"deftp" =>
|
443
|
+
{scope: "meta.rails.functional_test",
|
444
|
+
name: "def test_should_post_action",
|
445
|
+
content:
|
446
|
+
"def test_should_post_${1:action}\n\t${3:@$2 = ${4:$2s}(:${5:fixture_name})\n\t}post :${1}${6:, :id => @$2.to_param}, :${2:model} => { $0 }\n\tassert_response :redirect\n\nend"},
|
447
|
+
"end" => {scope: "text.html.ruby", name: "end (ERB)", content: "<% end -%>"},
|
448
|
+
"fina" =>
|
449
|
+
{scope: "source.ruby.rails",
|
450
|
+
name: "find(:all)",
|
451
|
+
content:
|
452
|
+
"find(:all${1:, :conditions => ['${2:${3:field} = ?}', ${5:true}]})"},
|
453
|
+
"finf" =>
|
454
|
+
{scope: "source.ruby.rails",
|
455
|
+
name: "find(:first)",
|
456
|
+
content:
|
457
|
+
"find(:first${1:, :conditions => ['${2:${3:field} = ?}', ${5:true}]})"},
|
458
|
+
"fini" =>
|
459
|
+
{scope: "source.ruby.rails", name: "find(id)", content: "find(${1:id})"},
|
460
|
+
"for" =>
|
461
|
+
{scope: "text.html.ruby",
|
462
|
+
name: "for loop in rhtml",
|
463
|
+
content:
|
464
|
+
"<% if !${1:list}.blank? %>\n <% for ${2:item} in ${1} %>\n $3\n <% end %>\n<% else %>\n $4\n<% end %>\n"},
|
465
|
+
"ffcb" =>
|
466
|
+
{scope: "text.html.ruby, text.haml",
|
467
|
+
name: "form_for check_box",
|
468
|
+
content:
|
469
|
+
"${TM_RAILS_TEMPLATE_START_RUBY_EXPR}f.check_box :${1:attribute}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}"},
|
470
|
+
"f." =>
|
471
|
+
{scope: "text.html.ruby, text.haml",
|
472
|
+
name: "f.text_field (fftf)",
|
473
|
+
content:
|
474
|
+
"${TM_RAILS_TEMPLATE_START_RUBY_EXPR}f.text_field :${1:attribute}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}"},
|
475
|
+
"ffff" =>
|
476
|
+
{scope: "text.html.ruby, text.haml",
|
477
|
+
name: "form_for file_field",
|
478
|
+
content:
|
479
|
+
"${TM_RAILS_TEMPLATE_START_RUBY_EXPR}f.file_field :${1:attribute}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}"},
|
480
|
+
"ffhf" =>
|
481
|
+
{scope: "text.html.ruby, text.haml",
|
482
|
+
name: "form_for hidden_field",
|
483
|
+
content:
|
484
|
+
"${TM_RAILS_TEMPLATE_START_RUBY_EXPR}f.hidden_field :${1:attribute}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}"},
|
485
|
+
"ffl" =>
|
486
|
+
{scope: "text.html.ruby, text.haml",
|
487
|
+
name: "form_for label",
|
488
|
+
content:
|
489
|
+
"${TM_RAILS_TEMPLATE_START_RUBY_EXPR}f.label :${1:attribute}${2:, \"${3:${1/[[:alpha:]]+|(_)/(?1: :\\u$0)/g}}\"}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}"},
|
490
|
+
"ffpf" =>
|
491
|
+
{scope: "text.html.ruby, text.haml",
|
492
|
+
name: "form_for password_field",
|
493
|
+
content:
|
494
|
+
"${TM_RAILS_TEMPLATE_START_RUBY_EXPR}f.password_field :${1:attribute}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}"},
|
495
|
+
"ffrb" =>
|
496
|
+
{scope: "text.html.ruby, text.haml",
|
497
|
+
name: "form_for radio_box",
|
498
|
+
content:
|
499
|
+
"${TM_RAILS_TEMPLATE_START_RUBY_EXPR}f.radio_box :${1:attribute}, :${2:tag_value}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}"},
|
500
|
+
"ffs" =>
|
501
|
+
{scope: "text.html.ruby, text.haml",
|
502
|
+
name: "form_for submit",
|
503
|
+
content:
|
504
|
+
"${TM_RAILS_TEMPLATE_START_RUBY_EXPR}f.submit \"${1:Submit}\"${2:, :disable_with => '${3:$1ing...}'}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}"},
|
505
|
+
"ffta" =>
|
506
|
+
{scope: "text.html.ruby, text.haml",
|
507
|
+
name: "form_for text_area",
|
508
|
+
content:
|
509
|
+
"${TM_RAILS_TEMPLATE_START_RUBY_EXPR}f.text_area :${1:attribute}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}"},
|
510
|
+
"fftf" =>
|
511
|
+
{scope: "text.html.ruby, text.haml",
|
512
|
+
name: "form_for text_field",
|
513
|
+
content:
|
514
|
+
"${TM_RAILS_TEMPLATE_START_RUBY_EXPR}f.text_field :${1:attribute}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}"},
|
515
|
+
"ffe" =>
|
516
|
+
{scope: "text.html.ruby, text.haml",
|
517
|
+
name: "form_for with errors",
|
518
|
+
content:
|
519
|
+
"${TM_RAILS_TEMPLATE_START_RUBY_EXPR}error_messages_for :${1:model}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}\n\n${TM_RAILS_TEMPLATE_START_RUBY_INLINE}form_for @${2:$1} do |f|${TM_RAILS_TEMPLATE_END_RUBY_INLINE}\n $0\n${TM_RAILS_TEMPLATE_END_RUBY_BLOCK}"},
|
520
|
+
"ff" =>
|
521
|
+
{scope: "text.html.ruby, text.haml",
|
522
|
+
name: "form_for",
|
523
|
+
content:
|
524
|
+
"${TM_RAILS_TEMPLATE_START_RUBY_INLINE}form_for @${1:model} do |f|${TM_RAILS_TEMPLATE_END_RUBY_INLINE}\n $0\n${TM_RAILS_TEMPLATE_END_RUBY_BLOCK}"},
|
525
|
+
"hmt" =>
|
526
|
+
{scope: "source.ruby.rails",
|
527
|
+
name: "has_many (through)",
|
528
|
+
content:
|
529
|
+
"has_many :${1:objects}, :through => :${2:join_association}${3:, :source => :${4:${2}_table_foreign_key_to_${1}_table}}"},
|
530
|
+
"hmd" =>
|
531
|
+
{scope: "source.ruby.rails",
|
532
|
+
name: "has_many :dependent => :destroy",
|
533
|
+
content:
|
534
|
+
"has_many :${1:object}s${2:, :class_name => \"${1}\", :foreign_key => \"${4:reference}_id\"}, :dependent => :destroy$0"},
|
535
|
+
"ist" =>
|
536
|
+
{scope: "text.html.ruby, text.haml",
|
537
|
+
name: "image_submit_tag",
|
538
|
+
content:
|
539
|
+
"${TM_RAILS_TEMPLATE_START_RUBY_EXPR}image_submit_tag(\"${1:agree.png}\"${2:${3:, :id => \"${4:${1/^(\\w+)(\\.\\w*)?$/$1/}}\"}${5:, :name => \"${6:${1/^(\\w+)(\\.\\w*)?$/$1/}}\"}${7:, :class => \"${8:${1/^(\\w+)(\\.\\w*)?$/$1/}-button}\"}${9:, :disabled => ${10:false}}})${TM_RAILS_TEMPLATE_END_RUBY_EXPR}"},
|
540
|
+
"jit" =>
|
541
|
+
{scope: "text.html.ruby",
|
542
|
+
name: "javascript_include_tag",
|
543
|
+
content:
|
544
|
+
"${TM_RAILS_TEMPLATE_START_RUBY_EXPR}javascript_include_tag ${1::all}${2:, :cache => ${3:true}}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}"},
|
545
|
+
"linpp" =>
|
546
|
+
{scope: "text.html.ruby, text.haml",
|
547
|
+
name: "link_to (nested path plural)",
|
548
|
+
content:
|
549
|
+
"${TM_RAILS_TEMPLATE_START_RUBY_EXPR}link_to ${1:\"${2:link text...}\"}, ${3:${10:parent}_${11:child}_path(${12:@}${13:${10}})}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}"},
|
550
|
+
"linp" =>
|
551
|
+
{scope: "text.html.ruby, text.haml",
|
552
|
+
name: "link_to (nested path)",
|
553
|
+
content:
|
554
|
+
"${TM_RAILS_TEMPLATE_START_RUBY_EXPR}link_to ${1:\"${2:link text...}\"}, ${3:${12:parent}_${13:child}_path(${14:@}${15:${12}}, ${16:@}${17:${13}})}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}"},
|
555
|
+
"lipp" =>
|
556
|
+
{scope: "text.html.ruby, text.haml",
|
557
|
+
name: "link_to (path plural)",
|
558
|
+
content:
|
559
|
+
"${TM_RAILS_TEMPLATE_START_RUBY_EXPR}link_to ${1:\"${2:link text...}\"}, ${3:${4:model}s_path}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}"},
|
560
|
+
"lip" =>
|
561
|
+
{scope: "text.html.ruby, text.haml",
|
562
|
+
name: "link_to (path)",
|
563
|
+
content:
|
564
|
+
"${TM_RAILS_TEMPLATE_START_RUBY_EXPR}link_to ${1:\"${2:link text...}\"}, ${3:${12:model}_path(${13:@}${14:${12}})}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}"},
|
565
|
+
"lim" =>
|
566
|
+
{scope: "text.html.ruby, text.haml",
|
567
|
+
name: "link_to model",
|
568
|
+
content:
|
569
|
+
"${TM_RAILS_TEMPLATE_START_RUBY_EXPR}link_to ${1:model}.${2:name}, ${3:${4:$1}_path(${14:$1})}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}"},
|
570
|
+
"logd" =>
|
571
|
+
{scope: "source.ruby.rails",
|
572
|
+
name: "logger.debug",
|
573
|
+
content: "logger.debug { \"${1:message}\" }$0"},
|
574
|
+
"loge" =>
|
575
|
+
{scope: "source.ruby.rails",
|
576
|
+
name: "logger.error",
|
577
|
+
content: "logger.error { \"${1:message}\" }$0"},
|
578
|
+
"logf" =>
|
579
|
+
{scope: "source.ruby.rails",
|
580
|
+
name: "logger.fatal",
|
581
|
+
content: "logger.fatal { \"${1:message}\" }$0"},
|
582
|
+
"logi" =>
|
583
|
+
{scope: "source.ruby.rails",
|
584
|
+
name: "logger.info",
|
585
|
+
content: "logger.info { \"${1:message}\" }$0"},
|
586
|
+
"logw" =>
|
587
|
+
{scope: "source.ruby.rails",
|
588
|
+
name: "logger.warn",
|
589
|
+
content: "logger.warn { \"${1:message}\" }$0"},
|
590
|
+
"mp" =>
|
591
|
+
{scope: "source.ruby.rails",
|
592
|
+
name: "map(&:sym_proc)",
|
593
|
+
content: "map(&:${1:id})"},
|
594
|
+
"mapca" =>
|
595
|
+
{scope: "meta.rails.routes",
|
596
|
+
name: "map.catch_all",
|
597
|
+
content:
|
598
|
+
"${1:map}.catch_all \"*${2:anything}\", :controller => \"${3:default}\", :action => \"${4:error}\"\n"},
|
599
|
+
"map" =>
|
600
|
+
{scope: "meta.rails.routes",
|
601
|
+
name: "map.named_route",
|
602
|
+
content: "${1:map}.${2:connect} '${3::controller/:action/:id}'"},
|
603
|
+
"mapr" =>
|
604
|
+
{scope: "meta.rails.routes",
|
605
|
+
name: "map.resource",
|
606
|
+
content: "${1:map}.resource :${2:resource}${10: do |${11:$2}|\n $0\nend}"},
|
607
|
+
"maprs" =>
|
608
|
+
{scope: "meta.rails.routes",
|
609
|
+
name: "map.resources",
|
610
|
+
content:
|
611
|
+
"${1:map}.resources :${2:resource}${10: do |${11:$2}|\n $0\nend}"},
|
612
|
+
"mapwo" =>
|
613
|
+
{scope: "meta.rails.routes",
|
614
|
+
name: "map.with_options",
|
615
|
+
content:
|
616
|
+
"${1:map}.with_options :${2:controller} => '${3:thing}' do |${4:$3}|\n\t$0\nend\n"},
|
617
|
+
"mrw" =>
|
618
|
+
{scope: "source.ruby.rails",
|
619
|
+
name: "mattr_accessor",
|
620
|
+
content: "mattr_accessor :${0:attr_names}"},
|
621
|
+
"ncl" =>
|
622
|
+
{scope: "source.ruby.rails",
|
623
|
+
name: "named_scope lambda",
|
624
|
+
content:
|
625
|
+
"named_scope :name, lambda { |${1:param}| { :conditions => ${3:['${4:${5:field} = ?}', ${6:$1}]} } }\n"},
|
626
|
+
"nc" =>
|
627
|
+
{scope: "source.ruby.rails",
|
628
|
+
name: "named_scope",
|
629
|
+
content:
|
630
|
+
"named_scope :name${1:, :joins => :${2:table}}, :conditions => ${3:['${4:${5:field} = ?}', ${6:true}]}\n"},
|
631
|
+
"hide" =>
|
632
|
+
{scope: "source.ruby.rails.rjs",
|
633
|
+
name: "page.hide (*ids)",
|
634
|
+
content: "page.hide ${1:\"${2:id(s)}\"}"},
|
635
|
+
"ins" =>
|
636
|
+
{scope: "source.ruby.rails.rjs",
|
637
|
+
name: "page.insert_html (position, id, partial)",
|
638
|
+
content:
|
639
|
+
"page.insert_html :${1:top}, ${2:\"${3:id}\"}, :${4:partial => \"${5:template}\"}"},
|
640
|
+
"rep" =>
|
641
|
+
{scope: "source.ruby.rails",
|
642
|
+
name: "redirect_to (path)",
|
643
|
+
content: "redirect_to(${2:${12:model}_path(${13:@}${14:${12}})})"},
|
644
|
+
"reph" =>
|
645
|
+
{scope: "source.ruby.rails.rjs",
|
646
|
+
name: "page.replace_html (id, partial)",
|
647
|
+
content:
|
648
|
+
"page.replace_html ${1:\"${2:id}\"}, :${3:partial => \"${4:template}\"}"},
|
649
|
+
"show" =>
|
650
|
+
{scope: "source.ruby.rails.rjs",
|
651
|
+
name: "page.show (*ids)",
|
652
|
+
content: "page.show ${1:\"${2:id(s)}\"}"},
|
653
|
+
"tog" =>
|
654
|
+
{scope: "source.ruby.rails.rjs",
|
655
|
+
name: "page.toggle (*ids)",
|
656
|
+
content: "page.toggle ${1:\"${2:id(s)}\"}"},
|
657
|
+
"vis" =>
|
658
|
+
{scope: "source.ruby.rails.rjs",
|
659
|
+
name: "page.visual_effect (effect, id)",
|
660
|
+
content: "page.visual_effect :${1:toggle_slide}, ${2:\"${3:DOM ID}\"}"},
|
661
|
+
"renpp" =>
|
662
|
+
{scope: "source.ruby.rails",
|
663
|
+
name: "redirect_to (nested path plural)",
|
664
|
+
content:
|
665
|
+
"redirect_to(${2:${10:parent}_${11:child}_path(${12:@}${13:${10}})})"},
|
666
|
+
"renp" =>
|
667
|
+
{scope: "source.ruby.rails",
|
668
|
+
name: "redirect_to (nested path)",
|
669
|
+
content:
|
670
|
+
"redirect_to(${2:${12:parent}_${13:child}_path(${14:@}${15:${12}}, ${16:@}${17:${13}})})"},
|
671
|
+
"repp" =>
|
672
|
+
{scope: "source.ruby.rails",
|
673
|
+
name: "redirect_to (path plural)",
|
674
|
+
content: "redirect_to(${2:${10:model}s_path})"},
|
675
|
+
"ru" =>
|
676
|
+
{scope: "source.ruby.rails",
|
677
|
+
name: "render (update)",
|
678
|
+
content: "render :update do |${2:page}|\n\t$2.$0\nend"},
|
679
|
+
"rest" =>
|
680
|
+
{scope: "meta.rails.controller",
|
681
|
+
name: "respond_to",
|
682
|
+
content: "respond_to do |wants|\n\twants.${1:html}${2: { $0 \\}}\nend"},
|
683
|
+
"returning" =>
|
684
|
+
{scope: "source.ruby.rails",
|
685
|
+
name: "returning do |variable| … end",
|
686
|
+
content:
|
687
|
+
"returning ${1:variable} do${2/(^(?<var>\\s*[a-z_][a-zA-Z0-9_]*\\s*)(,\\g<var>)*,?\\s*$)|.*/(?1: |)/}${2:v}${2/(^(?<var>\\s*[a-z_][a-zA-Z0-9_]*\\s*)(,\\g<var>)*,?\\s*$)|.*/(?1:|)/}\n\t$0\nend"},
|
688
|
+
"slt" =>
|
689
|
+
{scope: "text.html.ruby",
|
690
|
+
name: "stylesheet_link_tag",
|
691
|
+
content:
|
692
|
+
"${TM_RAILS_TEMPLATE_START_RUBY_EXPR}stylesheet_link_tag {1::all}${2:, :cache => ${3:true}}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}"},
|
693
|
+
"st" =>
|
694
|
+
{scope: "text.html.ruby, text.haml",
|
695
|
+
name: "submit_tag",
|
696
|
+
content:
|
697
|
+
"${TM_RAILS_TEMPLATE_START_RUBY_EXPR}submit_tag \"${1:Save changes}\"${2:, :id => \"${3:submit}\"}${4:, :name => \"${5:$3}\"}${6:, :class => \"${7:form_$3}\"}${8:, :disabled => ${9:false}}${10:, :disable_with => \"${11:Please wait...}\"}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}"},
|
698
|
+
"t." =>
|
699
|
+
{scope:
|
700
|
+
"meta.rails.migration.create_table, meta.rails.migration.change_table",
|
701
|
+
name: "t.timestamps (tctss)",
|
702
|
+
content: "t.timestamps\nt.$0"},
|
703
|
+
"vaoif" =>
|
704
|
+
{scope: "source.ruby.rails",
|
705
|
+
name: "validates_acceptance_of if",
|
706
|
+
content:
|
707
|
+
"validates_acceptance_of :${1:terms}${2:${3:, :accept => \"${4:1}\"}${5:, :message => \"${6:You must accept the terms of service}\"}}, :if => proc { |obj| ${7:obj.condition?} }}"},
|
708
|
+
"vao" =>
|
709
|
+
{scope: "source.ruby.rails",
|
710
|
+
name: "validates_acceptance_of",
|
711
|
+
content:
|
712
|
+
"validates_acceptance_of :${1:terms}${2:${3:, :accept => \"${4:1}\"}${5:, :message => \"${6:You must accept the terms of service}\"}}"},
|
713
|
+
"vfif" =>
|
714
|
+
{scope: "source.ruby.rails",
|
715
|
+
name: "validates_format_of if",
|
716
|
+
content:
|
717
|
+
"validates_format_of :${1:attribute}, :with => /${2:^[${3:\\w\\d}]+\\$}/${4:, :on => :${5:create}, :message => \"${6:is invalid}\"}, :if => proc { |obj| ${7:obj.condition?} }}"},
|
718
|
+
"vf" =>
|
719
|
+
{scope: "source.ruby.rails",
|
720
|
+
name: "validates_format_of",
|
721
|
+
content:
|
722
|
+
"validates_format_of :${1:attribute}, :with => /${2:^[${3:\\w\\d}]+\\$}/${4:, :on => :${5:create}, :message => \"${6:is invalid}\"}"},
|
723
|
+
"viif" =>
|
724
|
+
{scope: "source.ruby.rails",
|
725
|
+
name: "validates_inclusion_of if",
|
726
|
+
content:
|
727
|
+
"validates_inclusion_of :${1:attribute}${2:, :in => ${3:%w( ${4:mov avi} )}, :on => :${5:create}, :message => \"${6:extension %s is not included in the list}\"}, :if => proc { |obj| ${7:obj.condition?} }}"},
|
728
|
+
"vi" =>
|
729
|
+
{scope: "source.ruby.rails",
|
730
|
+
name: "validates_inclusion_of",
|
731
|
+
content:
|
732
|
+
"validates_inclusion_of :${1:attribute}${2:, :in => ${3:%w( ${4:mov avi} )}, :on => :${5:create}, :message => \"${6:extension %s is not included in the list}\"}"},
|
733
|
+
"vlif" =>
|
734
|
+
{scope: "source.ruby.rails",
|
735
|
+
name: "validates_length_of if",
|
736
|
+
content:
|
737
|
+
"validates_length_of :${1:attribute}, :within => ${2:3..20}${3:, :on => :${4:create}, :message => \"${5:must be present}\"}, :if => proc { |obj| ${6:obj.condition?} }}"},
|
738
|
+
"vnif" =>
|
739
|
+
{scope: "source.ruby.rails",
|
740
|
+
name: "validates_numericality_of if",
|
741
|
+
content:
|
742
|
+
"validates_numericality_of :${1:attribute}${2:, :on => :${3:create}, :message => \"${4:is not a number}\"}, :if => proc { |obj| ${5:obj.condition?} }}"},
|
743
|
+
"vn" =>
|
744
|
+
{scope: "source.ruby.rails",
|
745
|
+
name: "validates_numericality_of",
|
746
|
+
content:
|
747
|
+
"validates_numericality_of :${1:attribute}${2:, :on => :${3:create}, :message => \"${4:is not a number}\"}"},
|
748
|
+
"wants" =>
|
749
|
+
{scope: "meta.rails.controller",
|
750
|
+
name: "wants.format",
|
751
|
+
content: "wants.${1:js|xml|html}${2: { $0 \\}}"},
|
752
|
+
"xdelete" =>
|
753
|
+
{scope: "source.ruby.rails",
|
754
|
+
name: "xhr delete",
|
755
|
+
content: "xhr :delete, :${1:destroy}, :id => ${2:1}$0"},
|
756
|
+
"xget" =>
|
757
|
+
{scope: "source.ruby.rails",
|
758
|
+
name: "xhr get",
|
759
|
+
content: "xhr :get, :${1:show}${2:, :id => ${3:1}}$0"},
|
760
|
+
"xpost" =>
|
761
|
+
{scope: "source.ruby.rails",
|
762
|
+
name: "xhr post",
|
763
|
+
content: "xhr :post, :${1:create}, :${2:object} => { $3 }"},
|
764
|
+
"xput" =>
|
765
|
+
{scope: "source.ruby.rails",
|
766
|
+
name: "xhr put",
|
767
|
+
content: "xhr :put, :${1:update}, :id => ${2:1}, :${3:object} => { $4 }$0"}}
|