ver 2010.02 → 2010.08
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/.yardopts +1 -1
- data/AUTHORS +2 -2
- data/CHANGELOG +1160 -0
- data/MANIFEST +212 -62
- data/README.textile +68 -9
- data/Rakefile +2 -2
- data/bin/ver +33 -8
- data/config/commands/ANTLR.rb +11 -0
- data/config/commands/ActionScript.rb +102 -0
- data/config/commands/Active4D.rb +30 -0
- data/config/commands/Ada.rb +11 -0
- data/config/commands/Ant.rb +90 -0
- data/config/commands/Apache.rb +98 -0
- data/config/commands/AppleScript.rb +169 -0
- data/config/commands/Blogging.rb +72 -0
- data/config/commands/Bulletin Board.rb +10 -0
- data/config/commands/Bundle Development.rb +83 -0
- data/config/commands/C++ Qt.rb +158 -0
- data/config/commands/C.rb +82 -0
- data/config/commands/CMake.rb +32 -0
- data/config/commands/CSS.rb +76 -0
- data/config/commands/CTags.rb +29 -0
- data/config/commands/CVS.rb +114 -0
- data/config/commands/CoffeeScript.rb +58 -0
- data/config/commands/Context Free.rb +20 -0
- data/config/commands/Cucumber.rb +94 -0
- data/config/commands/D.rb +47 -0
- data/config/commands/Darcs.rb +72 -0
- data/config/commands/Diff.rb +76 -0
- data/config/commands/Doxygen.rb +9 -0
- data/config/commands/Experimental Wiki.rb +9 -0
- data/config/commands/Experimental.rb +172 -0
- data/config/commands/F-Script.rb +13 -0
- data/config/commands/FXScript.rb +11 -0
- data/config/commands/FileMerge.rb +42 -0
- data/config/commands/Fortran.rb +58 -0
- data/config/commands/GTD2.rb +134 -0
- data/config/commands/GTDAlt.rb +225 -0
- data/config/commands/GetBundle.rb +41 -0
- data/config/commands/Go.rb +29 -0
- data/config/commands/Graphviz.rb +11 -0
- data/config/commands/Greasemonkey.rb +158 -0
- data/config/commands/Gri.rb +11 -0
- data/config/commands/Groovy Grails.rb +174 -0
- data/config/commands/Groovy.rb +66 -0
- data/config/commands/HTML.rb +206 -0
- data/config/commands/Haskell.rb +48 -0
- data/config/commands/Hotkey.rb +50 -0
- data/config/commands/Hyperlink Helper.rb +81 -0
- data/config/commands/ImageBrowser.rb +10 -0
- data/config/commands/Io.rb +11 -0
- data/config/commands/JSFL.rb +29 -0
- data/config/commands/JSON.rb +11 -0
- data/config/commands/Java.rb +45 -0
- data/config/commands/JavaDoc.rb +12 -0
- data/config/commands/JavaScript Prototype & Script.aculo.us.rb +51 -0
- data/config/commands/JavaScript YUI.rb +12 -0
- data/config/commands/JavaScript jQuery.rb +12 -0
- data/config/commands/JavaScript.rb +50 -0
- data/config/commands/LaTeX.rb +423 -0
- data/config/commands/Lisp.rb +20 -0
- data/config/commands/Logo.rb +10 -0
- data/config/commands/Logtalk.rb +34 -0
- data/config/commands/Lua.rb +29 -0
- data/config/commands/MEL.rb +20 -0
- data/config/commands/Mail.rb +73 -0
- data/config/commands/Make.rb +20 -0
- data/config/commands/Man Pages.rb +20 -0
- data/config/commands/Markdown.rb +194 -0
- data/config/commands/Math.rb +79 -0
- data/config/commands/Matlab.rb +188 -0
- data/config/commands/Maven.rb +162 -0
- data/config/commands/Mediawiki.rb +12 -0
- data/config/commands/Mercurial.rb +185 -0
- data/config/commands/MoinMoin.rb +74 -0
- data/config/commands/Movable Type.rb +68 -0
- data/config/commands/Nemerle.rb +29 -0
- data/config/commands/OCaml Experimental Completions.rb +22 -0
- data/config/commands/OCaml.rb +99 -0
- data/config/commands/Objective-C.rb +181 -0
- data/config/commands/Outlines.rb +54 -0
- data/config/commands/PHP Smarty.rb +10 -0
- data/config/commands/Pascal.rb +11 -0
- data/config/commands/Perforce.rb +102 -0
- data/config/commands/Perl.rb +78 -0
- data/config/commands/Processing.rb +11 -0
- data/config/commands/Prolog.rb +11 -0
- data/config/commands/Property List.rb +38 -0
- data/config/commands/Python Django.rb +11 -0
- data/config/commands/Python.rb +131 -0
- data/config/commands/R Console (R.app).rb +80 -0
- data/config/commands/R Console (Rdaemon).rb +414 -0
- data/config/commands/R.rb +337 -0
- data/config/commands/Ragel.rb +10 -0
- data/config/commands/Regular Expressions.rb +18 -0
- data/config/commands/Remind.rb +44 -0
- data/config/commands/Ruby RSpec.rb +40 -0
- data/config/commands/Ruby on Rails.rb +331 -0
- data/config/commands/Ruby.rb +220 -0
- data/config/commands/S5 Slide Show.rb +37 -0
- data/config/commands/SCons.rb +24 -0
- data/config/commands/SQL.rb +60 -0
- data/config/commands/SVK.rb +83 -0
- data/config/commands/SWeave.rb +63 -0
- data/config/commands/Scheme.rb +30 -0
- data/config/commands/Scilab.rb +28 -0
- data/config/commands/Setext.rb +20 -0
- data/config/commands/Shell Script.rb +59 -0
- data/config/commands/Slate.rb +9 -0
- data/config/commands/Source.rb +84 -0
- data/config/commands/Standard ML.rb +38 -0
- data/config/commands/Subversion.rb +181 -0
- data/config/commands/TODO.rb +32 -0
- data/config/commands/Tcl.rb +21 -0
- data/config/commands/TerminalMate.rb +30 -0
- data/config/commands/Text.rb +137 -0
- data/config/commands/TextMate.rb +100 -0
- data/config/commands/Textile.rb +58 -0
- data/config/commands/Thrift.rb +20 -0
- data/config/commands/Transmit.rb +34 -0
- data/config/commands/Txt2tags.rb +213 -0
- data/config/commands/Vectorscript.rb +19 -0
- data/config/commands/Widget Creator.rb +23 -0
- data/config/commands/XML.rb +29 -0
- data/config/commands/Xcode.rb +106 -0
- data/config/commands/YAML.rb +39 -0
- data/config/commands/YARD.rb +12 -0
- data/config/commands/iTerm.rb +26 -0
- data/config/commands/reStructuredText.rb +126 -0
- data/config/detect.rb +13 -1
- data/config/keymap/diakonos.rb +113 -115
- data/config/keymap/emacs.rb +6 -2
- data/config/keymap/nano.rb +104 -112
- data/config/keymap/vim.rb +329 -258
- data/config/plugin/autosave.rb +3 -6
- data/config/plugin/git.rb +18 -12
- data/config/plugin/soma.rb +1 -1
- data/config/preferences/Apache.rb +17 -17
- data/config/preferences/AppleScript.rb +5 -5
- data/config/preferences/Bundle Development.rb +10 -10
- data/config/preferences/C.rb +38 -30
- data/config/preferences/CoffeeScript.rb +28 -0
- data/config/preferences/ColdFusion.rb +6 -6
- data/config/preferences/Cucumber.rb +40 -0
- data/config/preferences/Diff.rb +4 -4
- data/config/preferences/Eiffel.rb +6 -6
- data/config/preferences/Erlang.rb +16 -16
- data/config/preferences/F-Script.rb +12 -12
- data/config/preferences/FXScript.rb +5 -5
- data/config/preferences/Fortran.rb +17 -17
- data/config/preferences/Go.rb +23 -0
- data/config/preferences/Groovy.rb +29 -0
- data/config/preferences/HTML.rb +44 -44
- data/config/preferences/Haskell.rb +14 -14
- data/config/preferences/Io.rb +11 -11
- data/config/preferences/Java.rb +8 -8
- data/config/preferences/LaTeX.rb +24 -24
- data/config/preferences/Logo.rb +6 -6
- data/config/preferences/Logtalk.rb +5 -5
- data/config/preferences/Markdown.rb +43 -0
- data/config/preferences/Maven.rb +42 -42
- data/config/preferences/Mediawiki.rb +8 -8
- data/config/preferences/Movable Type.rb +14 -14
- data/config/preferences/OCaml.rb +15 -15
- data/config/preferences/Objective-C.rb +5 -5
- data/config/preferences/PHP.rb +2564 -0
- data/config/preferences/Property List.rb +8 -8
- data/config/preferences/R.rb +5 -5
- data/config/preferences/Ruby.rb +24 -24
- data/config/preferences/Source.rb +13 -13
- data/config/preferences/Standard ML.rb +9 -9
- data/config/preferences/Tcl.rb +5 -5
- data/config/preferences/Text.rb +14 -14
- data/config/preferences/TextMate.rb +5 -5
- data/config/preferences/Textile.rb +8 -8
- data/config/preferences/YARD.rb +9 -0
- data/config/preferences/iTerm.rb +9 -9
- data/config/rc.rb +5 -2
- data/config/snippets/ASP vb.NET.rb +203 -54
- data/config/snippets/ASP.rb +51 -36
- data/config/snippets/ActionScript.rb +332 -205
- data/config/snippets/Active4D.rb +325 -256
- data/config/snippets/Ada.rb +106 -60
- data/config/snippets/Ant.rb +7 -5
- data/config/snippets/Apache.rb +24 -20
- data/config/snippets/AppleScript.rb +213 -82
- data/config/snippets/Blogging.rb +41 -18
- data/config/snippets/Bulletin Board.rb +56 -21
- data/config/snippets/Bundle Development.rb +108 -63
- data/config/snippets/C++ Qt.rb +72 -57
- data/config/snippets/C.rb +128 -100
- data/config/snippets/CMake.rb +42 -32
- data/config/snippets/CSS.rb +515 -115
- data/config/snippets/CoffeeScript.rb +85 -0
- data/config/snippets/ColdFusion.rb +2228 -1547
- data/config/snippets/Context Free.rb +35 -28
- data/config/snippets/Cucumber.rb +55 -0
- data/config/snippets/D.rb +164 -111
- data/config/snippets/DokuWiki.rb +103 -54
- data/config/snippets/Doxygen.rb +87 -40
- data/config/snippets/Eiffel.rb +121 -18
- data/config/snippets/Erlang.rb +109 -68
- data/config/snippets/F-Script.rb +30 -24
- data/config/snippets/FXScript.rb +364 -210
- data/config/snippets/Fortran.rb +462 -280
- data/config/snippets/GTDAlt.rb +10 -4
- data/config/snippets/Gettext.rb +10 -8
- data/config/snippets/Go.rb +52 -0
- data/config/snippets/Greasemonkey.rb +52 -42
- data/config/snippets/Gri.rb +12 -10
- data/config/snippets/Groovy Grails.rb +313 -0
- data/config/snippets/Groovy.rb +685 -0
- data/config/snippets/HTML.rb +325 -126
- data/config/snippets/Haskell.rb +32 -24
- data/config/snippets/Io.rb +53 -42
- data/config/snippets/Java.rb +204 -92
- data/config/snippets/JavaDoc.rb +105 -56
- data/config/snippets/JavaScript MooTools.rb +208 -13
- data/config/snippets/JavaScript Objective-J.rb +18 -15
- data/config/snippets/JavaScript Prototype & Script.aculo.us.rb +362 -107
- data/config/snippets/JavaScript YUI.rb +1245 -186
- data/config/snippets/JavaScript jQuery.rb +693 -375
- data/config/snippets/JavaScript.rb +71 -53
- data/config/snippets/LaTeX.rb +188 -0
- data/config/snippets/Lisp.rb +59 -40
- data/config/snippets/Logo.rb +12 -6
- data/config/snippets/Logtalk.rb +131 -60
- data/config/snippets/Lua.rb +43 -33
- data/config/snippets/MIPS Assembler.rb +7 -5
- data/config/snippets/Mail.rb +10 -1
- data/config/snippets/Markdown.rb +7 -0
- data/config/snippets/Matlab.rb +232 -178
- data/config/snippets/Maven.rb +6 -5
- data/config/snippets/Mediawiki.rb +43 -12
- data/config/snippets/MoinMoin.rb +50 -10
- data/config/snippets/Movable Type.rb +368 -53
- data/config/snippets/Nemerle.rb +127 -79
- data/config/snippets/OCaml Code Completion Misc.rb +1716 -72
- data/config/snippets/OCaml Code Completion Unix.rb +2128 -203
- data/config/snippets/OCaml.rb +107 -73
- data/config/snippets/ODCompletion.rb +169 -118
- data/config/snippets/Objective-C.rb +281 -193
- data/config/snippets/PHP Smarty.rb +149 -79
- data/config/snippets/PHP.rb +186 -0
- data/config/snippets/Pascal.rb +47 -33
- data/config/snippets/Perl HTML-Template.rb +33 -0
- data/config/snippets/Perl Mason.rb +50 -30
- data/config/snippets/Perl Template Toolkit.rb +25 -20
- data/config/snippets/Perl.rb +91 -72
- data/config/snippets/Processing.rb +55 -33
- data/config/snippets/Propel.rb +36 -30
- data/config/snippets/Property List.rb +57 -24
- data/config/snippets/Python Django Templates.rb +381 -95
- data/config/snippets/Python Django.rb +159 -132
- data/config/snippets/Python.rb +88 -0
- data/config/snippets/R Console (Rdaemon).rb +11 -9
- data/config/snippets/R.rb +96 -77
- data/config/snippets/Remind.rb +18 -15
- data/config/snippets/Ruby RSpec.rb +343 -238
- data/config/snippets/Ruby on Rails.rb +1116 -765
- data/config/snippets/Ruby.rb +770 -545
- data/config/snippets/S5 Slide Show.rb +32 -24
- data/config/snippets/SSH Config.rb +21 -17
- data/config/snippets/SWIG.rb +30 -18
- data/config/snippets/Scilab.rb +98 -79
- data/config/snippets/Setext.rb +10 -8
- data/config/snippets/Shell Script.rb +52 -42
- data/config/snippets/Slate.rb +62 -48
- data/config/snippets/Source.rb +24 -1
- data/config/snippets/Standard ML.rb +37 -27
- data/config/snippets/Tcl.rb +32 -26
- data/config/snippets/Text.rb +28 -15
- data/config/snippets/Textile.rb +130 -45
- data/config/snippets/Thrift.rb +22 -18
- data/config/snippets/Twiki.rb +158 -105
- data/config/snippets/Txt2tags.rb +166 -79
- data/config/snippets/Vectorscript.rb +47 -38
- data/config/snippets/Widget Creator.rb +5 -5
- data/config/snippets/XML.rb +30 -18
- data/config/snippets/YAML.rb +5 -4
- data/config/snippets/YARD.rb +93 -0
- data/config/snippets/reStructuredText.rb +25 -20
- data/config/syntax/ANTLR.rb +17 -15
- data/config/syntax/ASP vb.NET.rb +27 -24
- data/config/syntax/ASP.rb +21 -19
- data/config/syntax/ActionScript.rb +16 -16
- data/config/syntax/Active4D Config.rb +5 -5
- data/config/syntax/Active4D Library.rb +2 -2
- data/config/syntax/Active4D.rb +32 -30
- data/config/syntax/Ada.rb +13 -10
- data/config/syntax/Ant.rb +9 -7
- data/config/syntax/Apache.rb +22 -18
- data/config/syntax/AppleScript.rb +486 -192
- data/config/syntax/AsciiDoc.rb +21 -0
- data/config/syntax/BibTeX.rb +7 -7
- data/config/syntax/Blog - HTML.rb +7 -7
- data/config/syntax/Blog - Markdown.rb +6 -6
- data/config/syntax/Blog - Text.rb +2 -2
- data/config/syntax/Blog - Textile.rb +2 -2
- data/config/syntax/Bulletin Board.rb +33 -32
- data/config/syntax/C++ Qt.rb +7 -6
- data/config/syntax/C++.rb +31 -28
- data/config/syntax/C.rb +55 -51
- data/config/syntax/CMake Listfile.rb +12 -11
- data/config/syntax/CSS.rb +24 -23
- data/config/syntax/CSV.rb +3 -3
- data/config/syntax/CoffeeScript.rb +161 -0
- data/config/syntax/ColdFusion.rb +8 -8
- data/config/syntax/Context Free.rb +18 -16
- data/config/syntax/Cucumber Steps.rb +108 -0
- data/config/syntax/D.rb +70 -69
- data/config/syntax/Diff.rb +13 -10
- data/config/syntax/DokuWiki.rb +22 -18
- data/config/syntax/Doxygen.rb +1 -1
- data/config/syntax/Dylan.rb +8 -8
- data/config/syntax/Eiffel.rb +12 -12
- data/config/syntax/Erlang.rb +96 -89
- data/config/syntax/F-Script.rb +11 -9
- data/config/syntax/FXScript.rb +16 -14
- data/config/syntax/Fortran - Modern.rb +25 -24
- data/config/syntax/Fortran - Punchcard.rb +43 -40
- data/config/syntax/GTD.rb +1 -1
- data/config/syntax/GTDalt.rb +14 -11
- data/config/syntax/Gettext.rb +10 -9
- data/config/syntax/Gherkin.rb +65 -0
- data/config/syntax/Go.rb +256 -0
- data/config/syntax/Grails Server Page.rb +108 -0
- data/config/syntax/Graphviz (DOT).rb +6 -6
- data/config/syntax/Greasemonkey.rb +3 -3
- data/config/syntax/Gri.rb +12 -12
- data/config/syntax/Groovy.rb +502 -0
- data/config/syntax/HTML (ASP).rb +3 -3
- data/config/syntax/HTML (ASP.net).rb +31 -31
- data/config/syntax/HTML (Active4D).rb +19 -19
- data/config/syntax/HTML (Django).rb +6 -6
- data/config/syntax/HTML (Erlang).rb +4 -4
- data/config/syntax/HTML (Mason).rb +13 -13
- data/config/syntax/HTML (Rails).rb +5 -5
- data/config/syntax/HTML (Tcl).rb +3 -3
- data/config/syntax/HTML (Template Toolkit).rb +9 -9
- data/config/syntax/HTML.rb +27 -27
- data/config/syntax/Haskell.rb +31 -28
- data/config/syntax/Inform.rb +5 -5
- data/config/syntax/Ini.rb +4 -4
- data/config/syntax/Installer Distribution Script.rb +19 -18
- data/config/syntax/Io.rb +17 -15
- data/config/syntax/JSFL.rb +7 -6
- data/config/syntax/Java Properties.rb +3 -3
- data/config/syntax/Java Server Page (JSP).rb +5 -4
- data/config/syntax/Java.rb +40 -33
- data/config/syntax/JavaDoc.rb +24 -22
- data/config/syntax/JavaScript (Rails).rb +1 -1
- data/config/syntax/JavaScript.rb +41 -34
- data/config/syntax/Javascript YUI.rb +109 -101
- data/config/syntax/LaTeX Beamer.rb +3 -3
- data/config/syntax/LaTeX Log.rb +3 -3
- data/config/syntax/LaTeX Memoir.rb +7 -5
- data/config/syntax/LaTeX Rdaemon.rb +1 -1
- data/config/syntax/LaTeX.rb +52 -47
- data/config/syntax/Language Grammar.rb +58 -55
- data/config/syntax/Lex-Flex.rb +13 -13
- data/config/syntax/Lighttpd.rb +7 -7
- data/config/syntax/Lisp.rb +6 -5
- data/config/syntax/Literate Haskell.rb +2 -2
- data/config/syntax/Logo.rb +4 -4
- data/config/syntax/Logtalk.rb +64 -49
- data/config/syntax/Lua.rb +12 -12
- data/config/syntax/MATLAB.rb +71 -70
- data/config/syntax/MEL.rb +16 -15
- data/config/syntax/MIPS Assembler.rb +11 -11
- data/config/syntax/MacPorts Portfile.rb +16 -15
- data/config/syntax/Mail.rb +5 -4
- data/config/syntax/Makefile.rb +3 -3
- data/config/syntax/Man.rb +2 -2
- data/config/syntax/Markdown.rb +440 -0
- data/config/syntax/Maven POM.rb +17 -16
- data/config/syntax/Mediawiki.rb +46 -46
- data/config/syntax/Modula-3.rb +7 -6
- data/config/syntax/MoinMoin.rb +16 -16
- data/config/syntax/MooTools.rb +75 -65
- data/config/syntax/Movable Type (MT only).rb +18 -18
- data/config/syntax/Movable Type.rb +20 -20
- data/config/syntax/MultiMarkdown.rb +35 -0
- data/config/syntax/Nemerle.rb +12 -12
- data/config/syntax/OCaml.rb +79 -71
- data/config/syntax/OCamllex.rb +14 -14
- data/config/syntax/OCamlyacc.rb +14 -12
- data/config/syntax/Objective-C++.rb +2 -2
- data/config/syntax/Objective-C.rb +76 -70
- data/config/syntax/Objective-J.rb +30 -29
- data/config/syntax/Octave.rb +27 -27
- data/config/syntax/OpenGL.rb +4 -4
- data/config/syntax/PHP.rb +1154 -0
- data/config/syntax/Pascal.rb +8 -8
- data/config/syntax/Perl HTML-Template.rb +5 -5
- data/config/syntax/Perl.rb +80 -76
- data/config/syntax/Plain Text.rb +5 -5
- data/config/syntax/Postscript.rb +6 -6
- data/config/syntax/Processing.rb +20 -20
- data/config/syntax/Prolog.rb +2 -2
- data/config/syntax/Property List.rb +50 -47
- data/config/syntax/Prototype & Script.aculo.us (JavaScript) Bracketed.rb +15 -13
- data/config/syntax/Prototype & Script.aculo.us (JavaScript).rb +9 -8
- data/config/syntax/Python Django.rb +6 -6
- data/config/syntax/Python.rb +94 -87
- data/config/syntax/Quake Style .cfg.rb +4 -4
- data/config/syntax/R Console (Rdaemon) Plain.rb +2 -2
- data/config/syntax/R Console (Rdaemon).rb +2 -2
- data/config/syntax/R.rb +21 -20
- data/config/syntax/RSpec.rb +15 -15
- data/config/syntax/Ragel.rb +14 -13
- data/config/syntax/Rd (R Documentation).rb +4 -4
- data/config/syntax/Regular Expressions (Oniguruma).rb +11 -10
- data/config/syntax/Regular Expressions (Python).rb +9 -9
- data/config/syntax/Release Notes.rb +7 -6
- data/config/syntax/Remind.rb +19 -17
- data/config/syntax/Rez.rb +10 -9
- data/config/syntax/Ruby Haml.rb +11 -11
- data/config/syntax/Ruby on Rails.rb +26 -24
- data/config/syntax/Ruby.rb +73 -71
- data/config/syntax/S5 Slide Show.rb +9 -9
- data/config/syntax/SQL.rb +29 -27
- data/config/syntax/SSH Config.rb +4 -4
- data/config/syntax/SWIG.rb +12 -11
- data/config/syntax/SWeave.rb +8 -7
- data/config/syntax/Scheme.rb +56 -54
- data/config/syntax/Scilab.rb +7 -6
- data/config/syntax/Setext.rb +14 -13
- data/config/syntax/Shell Script (Bash).rb +42 -42
- data/config/syntax/Slate.rb +24 -19
- data/config/syntax/Smarty.rb +11 -10
- data/config/syntax/Standard ML - CM.rb +2 -2
- data/config/syntax/Standard ML.rb +26 -23
- data/config/syntax/Strings File.rb +6 -6
- data/config/syntax/TSV.rb +2 -2
- data/config/syntax/Tcl.rb +10 -9
- data/config/syntax/TeX Math.rb +7 -6
- data/config/syntax/TeX.rb +7 -7
- data/config/syntax/Textile.rb +33 -27
- data/config/syntax/Thrift.rb +37 -29
- data/config/syntax/Twiki.rb +19 -18
- data/config/syntax/Txt2tags.rb +26 -23
- data/config/syntax/Vectorscript.rb +9 -7
- data/config/syntax/XML strict.rb +6 -4
- data/config/syntax/XML.rb +55 -30
- data/config/syntax/XSL.rb +5 -5
- data/config/syntax/YAML.rb +14 -12
- data/config/syntax/camlp4.rb +5 -5
- data/config/syntax/iCalendar.rb +3 -3
- data/config/syntax/jQuery (JavaScript).rb +9 -9
- data/config/syntax/mod_perl.rb +6 -6
- data/config/syntax/qmake Project file.rb +16 -15
- data/config/syntax/reStructuredText.rb +23 -21
- data/config/syntax/svn-commit.tmp.rb +5 -5
- data/lib/ver.rb +169 -85
- data/lib/ver/action.rb +39 -30
- data/lib/ver/buffer.rb +962 -144
- data/lib/ver/buffer/frame.rb +23 -0
- data/lib/ver/buffer/invalid_trailing_whitespace.rb +17 -0
- data/lib/ver/buffer/markup_underline_link.rb +30 -0
- data/lib/ver/buffer/matching_brace.rb +22 -0
- data/lib/ver/buffer/term.rb +1 -1
- data/lib/ver/clipboard.rb +107 -0
- data/lib/ver/digraphs.rb +1373 -0
- data/lib/ver/entry.rb +54 -43
- data/lib/ver/event.rb +335 -0
- data/lib/ver/exception_view.rb +3 -1
- data/lib/ver/executor.rb +7 -7
- data/lib/ver/executor/buffer.rb +4 -4
- data/lib/ver/executor/encoding.rb +19 -0
- data/lib/ver/executor/entry.rb +9 -9
- data/lib/ver/executor/fuzzy_file_finder.rb +1 -1
- data/lib/ver/executor/label.rb +2 -0
- data/lib/ver/executor/method.rb +2 -3
- data/lib/ver/help/describe_key.rb +44 -44
- data/lib/ver/hover_completion.rb +11 -6
- data/lib/ver/keymap.rb +68 -39
- data/lib/ver/layout/paned.rb +56 -44
- data/lib/ver/layout/toplevel.rb +68 -0
- data/lib/ver/layout/vim.rb +919 -0
- data/lib/ver/major_mode.rb +49 -49
- data/lib/ver/methods.rb +22 -25
- data/lib/ver/methods/basic.rb +49 -20
- data/lib/ver/methods/bookmark.rb +33 -33
- data/lib/ver/methods/clipboard.rb +186 -49
- data/lib/ver/methods/completion.rb +5 -5
- data/lib/ver/methods/control.rb +47 -66
- data/lib/ver/methods/delete.rb +5 -122
- data/lib/ver/methods/help.rb +2 -2
- data/lib/ver/methods/insert.rb +101 -29
- data/lib/ver/methods/layout.rb +62 -64
- data/lib/ver/methods/macro.rb +45 -0
- data/lib/ver/methods/move.rb +63 -349
- data/lib/ver/methods/nano.rb +99 -71
- data/lib/ver/methods/open.rb +8 -7
- data/lib/ver/methods/preview.rb +34 -14
- data/lib/ver/methods/save.rb +194 -163
- data/lib/ver/methods/search.rb +169 -81
- data/lib/ver/methods/search_and_replace.rb +62 -49
- data/lib/ver/methods/selection.rb +26 -54
- data/lib/ver/methods/snippet.rb +79 -54
- data/lib/ver/methods/undo.rb +12 -16
- data/lib/ver/minibuffer.rb +283 -134
- data/lib/ver/minor_mode.rb +36 -47
- data/lib/ver/mode_resolving.rb +71 -0
- data/lib/ver/platform.rb +41 -0
- data/lib/ver/plist.rb +16 -4
- data/lib/ver/register.rb +86 -0
- data/lib/ver/status.rb +44 -6
- data/lib/ver/status/battery.rb +1 -1
- data/lib/ver/status/buffer_position.rb +2 -2
- data/lib/ver/status/diakonos_position.rb +3 -3
- data/lib/ver/status/encoding.rb +1 -1
- data/lib/ver/status/filename.rb +1 -1
- data/lib/ver/status/label.rb +20 -20
- data/lib/ver/status/mode.rb +1 -1
- data/lib/ver/status/nano_help.rb +3 -14
- data/lib/ver/status/nano_position.rb +6 -6
- data/lib/ver/status/percent.rb +2 -2
- data/lib/ver/status/position.rb +2 -2
- data/lib/ver/status/short_filename.rb +1 -1
- data/lib/ver/status/syntax.rb +1 -1
- data/lib/ver/struct.rb +28 -0
- data/lib/ver/syntax/processor.rb +2 -1
- data/lib/ver/text.rb +48 -520
- data/lib/ver/text/end.rb +14 -0
- data/lib/ver/text/index.rb +16 -101
- data/lib/ver/text/insert.rb +138 -0
- data/lib/ver/text/mark.rb +559 -0
- data/lib/ver/text/position.rb +240 -0
- data/lib/ver/text/range.rb +74 -0
- data/lib/ver/text/selection.rb +402 -0
- data/lib/ver/text/selection/block.rb +69 -0
- data/lib/ver/text/selection/char.rb +93 -0
- data/lib/ver/text/selection/line.rb +64 -0
- data/lib/ver/text/tag.rb +322 -0
- data/lib/ver/undo.rb +109 -34
- data/lib/ver/vendor/eval_completer.rb +184 -0
- data/lib/ver/vendor/json_store.rb +23 -0
- data/lib/ver/vendor/open3.rb +729 -0
- data/lib/ver/vendor/pathname.rb +73 -0
- data/lib/ver/vendor/textpow.rb +1 -1
- data/lib/ver/version.rb +1 -1
- data/lib/ver/widget_event.rb +9 -5
- data/lib/ver/widget_major_mode.rb +69 -23
- data/spec/helper.rb +124 -8
- data/spec/ver/action.rb +160 -46
- data/spec/ver/buffer.rb +23 -0
- data/spec/ver/clipboard.rb +92 -0
- data/spec/ver/keymap.rb +63 -61
- data/spec/ver/keymap/diakonos.rb +88 -0
- data/spec/ver/keymap/emacs.rb +65 -0
- data/spec/ver/keymap/general.rb +98 -0
- data/spec/ver/keymap/nano.rb +84 -0
- data/spec/ver/keymap/vim.rb +205 -0
- data/spec/ver/keymap/vim/changing_text.rb +489 -0
- data/spec/ver/keymap/vim/complex_changes.rb +53 -0
- data/spec/ver/keymap/vim/copying_and_moving_text.rb +258 -0
- data/spec/ver/keymap/vim/deleting_text.rb +188 -0
- data/spec/ver/keymap/vim/digraphs.rb +52 -0
- data/spec/ver/keymap/vim/external_commands.rb +21 -0
- data/spec/ver/keymap/vim/inserting_mode_keys.rb +115 -0
- data/spec/ver/keymap/vim/inserting_mode_special.rb +168 -0
- data/spec/ver/keymap/vim/inserting_text.rb +108 -0
- data/spec/ver/keymap/vim/left_right_motion.rb +120 -0
- data/spec/ver/keymap/vim/mark_motion.rb +73 -0
- data/spec/ver/keymap/vim/repeating_commands.rb +64 -0
- data/spec/ver/keymap/vim/text_object_motion.rb +137 -0
- data/spec/ver/keymap/vim/text_objects.rb +101 -0
- data/spec/ver/keymap/vim/undo_redo.rb +21 -0
- data/spec/ver/keymap/vim/up_down_motion.rb +94 -0
- data/spec/ver/keymap/vim/various_motion.rb +33 -0
- data/spec/ver/keysyms.rb +13 -0
- data/spec/ver/major_mode.rb +37 -37
- data/spec/ver/minor_mode.rb +21 -20
- data/spec/ver/plugin/smart_autoindent.rb +2 -2
- data/spec/ver/text/index.rb +122 -0
- data/spec/ver/text/insert.rb +299 -0
- data/spec/ver/text/mark.rb +94 -0
- data/spec/ver/text/range.rb +71 -0
- data/spec/ver/text/selection.rb +315 -0
- data/spec/ver/text/tag.rb +93 -0
- data/spec/ver/undo.rb +133 -0
- data/spec/ver/undo/record_sanitize.rb +85 -0
- data/spec/ver/vendor/eval_completer.rb +91 -0
- data/spec/ver/widget_major_mode.rb +4 -3
- data/ver.gemspec +8 -8
- metadata +234 -72
- data/.todo +0 -102
- data/ROADMAP.textile +0 -187
- data/config/snippets/ANTLR.rb +0 -3
- data/config/snippets/Bison.rb +0 -3
- data/config/snippets/CTags.rb +0 -3
- data/config/snippets/CVS.rb +0 -3
- data/config/snippets/Darcs.rb +0 -3
- data/config/snippets/Diff.rb +0 -3
- data/config/snippets/Dylan.rb +0 -3
- data/config/snippets/Experimental Wiki.rb +0 -3
- data/config/snippets/Experimental.rb +0 -3
- data/config/snippets/FileMerge.rb +0 -3
- data/config/snippets/GTD2.rb +0 -3
- data/config/snippets/GetBundle.rb +0 -3
- data/config/snippets/Graphviz.rb +0 -3
- data/config/snippets/Hotkey.rb +0 -3
- data/config/snippets/Hyperlink Helper.rb +0 -3
- data/config/snippets/ImageBrowser.rb +0 -3
- data/config/snippets/Inform.rb +0 -3
- data/config/snippets/Ini.rb +0 -3
- data/config/snippets/Installer.rb +0 -3
- data/config/snippets/JSFL.rb +0 -3
- data/config/snippets/JSON.rb +0 -3
- data/config/snippets/Lex-Flex.rb +0 -3
- data/config/snippets/Lighttpd.rb +0 -3
- data/config/snippets/MEL.rb +0 -3
- data/config/snippets/MacPorts.rb +0 -3
- data/config/snippets/Make.rb +0 -3
- data/config/snippets/Man Pages.rb +0 -3
- data/config/snippets/Math.rb +0 -3
- data/config/snippets/Mercurial.rb +0 -3
- data/config/snippets/Modula.rb +0 -3
- data/config/snippets/Navigation.rb +0 -3
- data/config/snippets/OCaml Experimental Completions.rb +0 -3
- data/config/snippets/OpenGL.rb +0 -3
- data/config/snippets/Outlines.rb +0 -3
- data/config/snippets/Perforce.rb +0 -3
- data/config/snippets/Perl HTML::Template.rb +0 -27
- data/config/snippets/Postscript.rb +0 -3
- data/config/snippets/Prolog.rb +0 -3
- data/config/snippets/Quake.rb +0 -3
- data/config/snippets/R Console (R.app).rb +0 -3
- data/config/snippets/Ragel.rb +0 -3
- data/config/snippets/Regular Expressions.rb +0 -3
- data/config/snippets/Rez.rb +0 -3
- data/config/snippets/Ruby Haml.rb +0 -3
- data/config/snippets/SCons.rb +0 -3
- data/config/snippets/SQL.rb +0 -3
- data/config/snippets/SVK.rb +0 -3
- data/config/snippets/SWeave.rb +0 -3
- data/config/snippets/Scheme.rb +0 -3
- data/config/snippets/Subversion.rb +0 -3
- data/config/snippets/TODO.rb +0 -3
- data/config/snippets/Tabular.rb +0 -3
- data/config/snippets/TerminalMate.rb +0 -3
- data/config/snippets/TextMate.rb +0 -3
- data/config/snippets/Transmit.rb +0 -3
- data/config/snippets/Xcode.rb +0 -3
- data/config/snippets/iCalendar.rb +0 -3
- data/config/snippets/iTerm.rb +0 -3
- data/lib/ver/keysyms.rb +0 -104
- data/spec/ver/methods/move.rb +0 -150
@@ -0,0 +1,188 @@
|
|
1
|
+
# Encoding: UTF-8
|
2
|
+
|
3
|
+
[{beforeRunningCommand: "nop",
|
4
|
+
command:
|
5
|
+
"#!/usr/bin/env ruby\n# Replace != with ~= for the novice user\nline = ENV['TM_LINE_NUMBER'].to_i\ncolumns = ENV['TM_LINE_INDEX'].to_i-1\ntextArray = STDIN.readlines\nprint textArray.last. to_s.sub(/\\!/,'~=')\n",
|
6
|
+
fallbackInput: "line",
|
7
|
+
input: "selection",
|
8
|
+
keyEquivalent: "=",
|
9
|
+
name: "= after !",
|
10
|
+
output: "insertAsSnippet",
|
11
|
+
scope: "variable.other.exclamation.matlab",
|
12
|
+
uuid: "563CDF89-C286-4CDB-94AB-30819104470F"},
|
13
|
+
{beforeRunningCommand: "nop",
|
14
|
+
command:
|
15
|
+
"#!/usr/bin/env ruby\n\nif ENV.has_key?('TM_SELECTED_TEXT') then\n\tresult = ENV['TM_SELECTED_TEXT'].strip\n\tcase result\n\twhen /'.*'/\n\t\t@pad = \"' '\"\n\telse\n\t\t@pad = \"0\"\n\tend\n\t@input_table = result.to_a.collect {|row| row.chomp.split(/\\s+|,/)}\n\trows = @input_table.length\n\tcolumns = @input_table.inject { |memo, row| memo.length > row.length ? memo : row }.length\nelse\n\tresult=`\"$TM_SUPPORT_PATH/bin\"/CocoaDialog.app/Contents/MacOS/CocoaDialog standard-inputbox \\\n\t--title 'Matlab Array Creation' \\\n\t--informative-text 'Number of rows and columns:' \\\n\t--text '6 4'`.split\n\texit if result[0] == \"2\" || result.length == 1\n\t@input_table = nil\n\tresult.collect! { |num| num.to_i}\n\tresult[2] = result[1] if result.length == 2\n\t# We'll only create up to two-dimensional arrays\n\t# with up to N elements\n\tN = 200\n\tproduct = result[1..2].inject(1) {|product, num| product * num }\n\tif product.zero?\n\t\t# give error message\n\t\texit\n\telsif product > N\n\t\topen('|\"$DIALOG\" tooltip', 'w') do |io|\n\t\t\tio << \"The matrix dimensions are too large.\\nThe maximum is set to \#{N} elements.\"\n\t\tend\n\t\texit\n\telse\n\t\trows, columns = result[1..2]\n\tend\nend\n\n@pos = 0\ndef self.insert(row,column)\n\tif @input_table.nil?\n\t\t@pos += 1\n\t\t\"${\#{@pos}:\#{@pos}}\"\n\telse\n\t\tret = @input_table[row][column]\n\t\tif ret.nil?\n\t\t\t@pos += 1\n\t\t\t\"${\#{@pos}:\#{@pad}}\"\n\t\telse\n\t\t\tret\n\t\tend\n\tend\nend\n\ntable = \"\"\ntable += \"[\" if rows > 1\nrows.times do |m|\n\ttable += \"[\"\n\tcolumns.times do |n|\n\t\ttable += insert(m,n)\n\t\ttable += (n == columns-1) ? \"]\" : \"\\t\"\n\tend\n\ttable += \";\\n\" unless (m == rows-1)\nend\ntable += \"]\" if rows > 1\ntable += \"${\#{@pos+1}:;}\\n$0\"\nputs table\n",
|
16
|
+
fallbackInput: "none",
|
17
|
+
input: "selection",
|
18
|
+
keyEquivalent: "^@T",
|
19
|
+
name: "Create matrix",
|
20
|
+
output: "insertAsSnippet",
|
21
|
+
scope: "source.matlab, source.octave",
|
22
|
+
uuid: "F23DAE9B-A27A-41D3-B57B-DED30729243C"},
|
23
|
+
{beforeRunningCommand: "nop",
|
24
|
+
command:
|
25
|
+
"#!/usr/bin/env ruby\n\ntextarray = STDIN.readlines\ncurrentline = ENV['TM_LINE_NUMBER'].to_i\nnumlines = textarray.size.to_i\nlineindex = ENV['TM_LINE_INDEX'].to_i\nthisline = ENV['TM_CURRENT_LINE']\ncolumns = ENV['TM_LINE_INDEX'].to_i\n\n\nif (textarray.size == currentline) && (textarray.last.length == lineindex)\n # We're at the very end.\n if thisline.slice(0...lineindex).slice(/(\\)|\\])$/)\n # We're outside closed brackets/parens. Just insert an enter\n print \"\\n\"\n else\n print \" ...\\n\"\n end\nelse\n # Let's add some dots. If we already have a dot or two, we won't print all three dots\n dots = thisline.slice(0...lineindex).slice(/\\.+$/).to_s.length\n case dots\n when 0\n print \" ...\"\n when 1\n print \"..\"\n when 2\n print \".\"\n end\n print \"\\n\"\nend\n",
|
26
|
+
fallbackInput: "scope",
|
27
|
+
input: "document",
|
28
|
+
keyEquivalent: "\n",
|
29
|
+
name: "Enter in Brackets or Parens Scope",
|
30
|
+
output: "insertAsSnippet",
|
31
|
+
scope:
|
32
|
+
"(meta.brackets.matlab|meta.brackets.octave) - string.quoted.single.matlab,(meta.parens.matlab|meta.parens.octave) - string.quoted.single.matlab,(meta.brackets.curly.matlab|meta.brackets.curly.octave) - string.quoted.single.matlab",
|
33
|
+
uuid: "8A857EDA-B07B-4304-BA10-29C3D22A3B1B"},
|
34
|
+
{beforeRunningCommand: "nop",
|
35
|
+
command:
|
36
|
+
"#!/usr/bin/env ruby\nthisline = ENV['TM_CURRENT_LINE']\nsoft_tabs = ENV['TM_SOFT_TABS']\ntab_size = ENV['TM_TAB_SIZE'].to_i\n# thisline = \"asdfasd f\t\t\t\t% asdfasdfadsfasd\"\n# thisline = \"aasdfasd ff\t\t\t\t% asdfasdfadsfasd\"\n# thisline = \"aasdfasd fff\t\t\t\t% asdfasdfadsfasd\"\nspaces = thisline.match(/^(.*?)(%%|%|#)(\\s*).*$/)\n\nleading_spaces = spaces.captures[0].gsub(/[^\\t]{4}/,\"\\t\").gsub(/[^\\t]{1,3}\\t/,\"\\t\")\n\nif spaces.captures[0] =~ /\\S/\n\tleading_spaces.gsub!(/\\t/,\"\".ljust(tab_size)) if ENV['TM_SOFT_TABS'] == \"YES\"\nelse\n\tleading_spaces = \"\"\nend\n\nprint \"\\n\#{leading_spaces}\#{spaces.captures[1] + spaces.captures[2]}$1\"\n",
|
37
|
+
input: "none",
|
38
|
+
keyEquivalent: "",
|
39
|
+
name: "Enter in Comment",
|
40
|
+
output: "insertAsSnippet",
|
41
|
+
scope:
|
42
|
+
"comment.line.percentage.matlab, comment.double.percentage.matlab, comment.line.percentage.octave, comment.double.percentage.octave, comment.line.pound.octave",
|
43
|
+
uuid: "615CF7DB-FDB1-4013-9725-FDF4BE64E8A4"},
|
44
|
+
{beforeRunningCommand: "nop",
|
45
|
+
command:
|
46
|
+
"#!/usr/bin/env ruby\nlineindex = ENV['TM_LINE_INDEX'].to_i\nthisline = ENV['TM_CURRENT_LINE']\nscopes = ENV['TM_SCOPE'].split\n\nfirsthalf = thisline.slice(0...lineindex)\nsecondhalf = thisline.slice(lineindex..-1)\n\nif scopes[0] == \"source.matlab\"\n\tfirsthalf.sub!(/\\s*\\.*\\s*$/,\" ...\")\nelsif scopes[0] == \"source.octave\"\n\tfirsthalf.sub!(/\\s*(\\.*|\\\\)\\s*$/,\" ...\")\nend\nfirsthalf += \"\\n\"\nprint firsthalf, '$1', secondhalf\n\n",
|
47
|
+
fallbackInput: "line",
|
48
|
+
input: "selection",
|
49
|
+
keyEquivalent: "\n",
|
50
|
+
name: "Enter in Incomplete Variable Assignment",
|
51
|
+
output: "insertAsSnippet",
|
52
|
+
scope:
|
53
|
+
"source.matlab invalid.illegal.incomplete-variable-assignment.matlab, source.octave invalid.illegal.incomplete-variable-assignment.matlab",
|
54
|
+
uuid: "FD9512A7-561A-4140-A425-567B8D2862EA"},
|
55
|
+
{beforeRunningCommand: "nop",
|
56
|
+
command:
|
57
|
+
"#!/usr/bin/env ruby\n\n# Due to many special cases, this is rather ugly.\n\n# Set up all parameters\ndebug = false\ntextarray = STDIN.readlines\nlinenumber = ENV['TM_LINE_NUMBER'].to_i\nnumlines = textarray.size\n# Adjust for missing empty last line if last character is a newline\nnumlines += 1 if textarray.last[-1] == 10\nlineindex = ENV['TM_LINE_INDEX'].to_i\nscopes = ENV['TM_SCOPE'].split\npreceding_string = scopes.index(\"punctuation.definition.string.begin.matlab\")\nescaped_quote = scopes.index(\"constant.character.escape.matlab\")\nif debug\n print \"preceding_string\", \"\\t\\t= ___\", preceding_string, \"___\\n\"\n print \"escaped_quote\", \"\\t\\t= ___\", escaped_quote, \"___\\n\"\nend\n\nthisline = ENV['TM_CURRENT_LINE']\nfirsthalf = thisline.slice(0...lineindex).gsub(/\\$/,\"\\\\\\$\")\nsecondhalf = thisline.slice(lineindex...thisline.length).gsub(/\\$/,\"\\\\\\$\")\n\natEOL = (thisline.length == lineindex)\natEOF = (atEOL && numlines == linenumber)\nfirstmatch = firsthalf.match(/(')(('{2}|[^'])*)(')?$/)\nsecondmatch = secondhalf.match(/(')?(('{2}|[^'])*)(')?/)\n\nif atEOF\n if firstmatch.nil?\n puts \"we have no quotes on this line\" if debug\n # insert closing quote on preceding line and an enter\n elsif firstmatch.captures.last == \"'\"\n puts \"we have a closing quote. insert enter\" if debug\n firsthalf += \"\\n\"\n else\n puts \"we must close the string and insert an enter\" if debug\n firsthalf += \"'\\n\"\n end\nelse\n if preceding_string\n puts \"we're preceding a string. insert dots and an enter\" if debug\n # check for =-+/*\n firsthalf += \" ...\" unless firsthalf.match(/[\\=\\+\\-\\*\\/]\\s*$/).nil?\n firsthalf += \"\\n\"\n elsif atEOL\n puts \"we're at the end of the line. insert a quote and an enter\" if debug\n firsthalf += \"'\" if secondmatch.captures.first.nil? && secondmatch.captures.last.nil? && firstmatch.captures.last.nil?\n firsthalf += \"\\n\"\n else\n # check if firsthalf is a closed string\n firsthalf.insert(firstmatch.begin(0),\"[\")\n if firstmatch.captures.last == \"'\"\n puts \"first half is a closed string. insert brackets and dots\" if debug\n else\n puts \"first half is not closed. insert brackets, closing quote, and dots\" if debug\n firsthalf += \"'\"\n end\n firsthalf += \" ...\\n\"\n \n if secondmatch.captures.first.nil?\n puts \"second half has no opening quote. insert leading quote and closing bracket\" if debug\n secondhalf = \"'\" + secondhalf\n end\n if secondmatch.captures.last.nil?\n puts \"second half has no closing quote. insert ending quote\" if debug\n secondhalf += \"']\"\n else\n puts \"second half has no closing bracket. insert ending bracket\" if debug\n bias = secondmatch.captures.first.nil? ? 1 : 0 # compensate index for added quote\n secondhalf.insert(secondmatch.end(0) + bias,\"]\")\n end\n end\nend\n\nif debug\n print \"linenumber\", \"\\t= ___\", linenumber, \"___\\n\"\n print \"numlines\", \"\\t= ___\", numlines, \"___\\n\"\n print \"lineindex\", \"\\t= ___\", lineindex, \"___\\n\"\n print \"firsthalf\", \"\\t= ___\", firsthalf, \"___\\n\"\n print \"secondhalf\", \"\\t= ___\", secondhalf, \"___\\n\"\n print \"scopes\", \"\\t\\t= ___\", scopes, \"___\\n\"\n print \"preceding_string\", \"\\t\\t= ___\", preceding_string, \"___\\n\"\n print \"escaped_quote\", \"\\t\\t= ___\", escaped_quote, \"___\\n\"\n print \"atEOL\", \"\\t\\t= ___\", atEOL, \"___\\n\"\n print \"atEOF\", \"\\t\\t= ___\", atEOF, \"___\\n\"\n print \"debug\", \"\\t\\t= ___\", debug, \"___\\n\"\n print \"firstmatch\", \"\\t= ___\", firstmatch, \"___\\n\"\n print \"firstmatch.begin(0)\", \"\\t= ___\", firstmatch.begin(0), \"___\\n\"\n print \"secondmatch\", \"\\t= ___\", secondmatch, \"___\\n\"\n print \"secondmatch.end(3)\", \"\\t= ___\", firstmatch.begin(3), \"___\\n\"\n print \"firstmatch.captures\\t\\t\", firstmatch.captures.inspect, \"\\n\"\n print \"secondmatch.captures\\t\", secondmatch.captures.inspect, \"\\n\"\nend\n\nprint firsthalf, '$1', secondhalf\n",
|
58
|
+
fallbackInput: "line",
|
59
|
+
input: "selection",
|
60
|
+
keyEquivalent: "\n",
|
61
|
+
name: "Enter in String",
|
62
|
+
output: "insertAsSnippet",
|
63
|
+
scope:
|
64
|
+
"string.quoted.single.matlab - meta.brackets.matlab, string.quoted.single.matlab - meta.parens.matlab",
|
65
|
+
uuid: "12A5489D-0A50-4420-A53D-FB0C6A2794CD"},
|
66
|
+
{beforeRunningCommand: "nop",
|
67
|
+
command:
|
68
|
+
"#!/usr/bin/env ruby\n\ntextarray = STDIN.readlines\ncurrentline = ENV['TM_LINE_NUMBER'].to_i\nnumlines = textarray.size.to_i\nlineindex = ENV['TM_LINE_INDEX'].to_i\nthisline = ENV['TM_CURRENT_LINE']\ncolumns = ENV['TM_LINE_INDEX'].to_i\nif columns == 0 && thisline[0] == ?'\n print \"...\\n\"\nelse\n if thisline.slice(0...lineindex).slice(/\\'+$/).to_s.length.modulo(2) == 0\n # We must insert a quote\n print \"'\"\n end\n if (textarray.size == currentline) && (textarray.last.length == lineindex)\n # We're at the very end. If the last character is a quotation mark\n # we'll not add a leading quote.\n print \" ...\\n'$1']\"\n else\n print \" ...\\n'\"\n end\nend",
|
69
|
+
input: "document",
|
70
|
+
keyEquivalent: "\n",
|
71
|
+
name: "Enter in String in Brackets Scope",
|
72
|
+
output: "insertAsSnippet",
|
73
|
+
scope: "meta.brackets.matlab string.quoted.single.matlab",
|
74
|
+
uuid: "732F1DA4-166B-44AF-88CD-5A944574D3CC"},
|
75
|
+
{beforeRunningCommand: "nop",
|
76
|
+
command:
|
77
|
+
"if grep <<<${TM_CURRENT_WORD:-!} -Esq '[a-zA-Z0-9_]+'\n\tthen exit_show_html \"<meta http-equiv='Refresh' content='0;URL=http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/${TM_CURRENT_WORD}.html'>\"\n\telse echo \"Nothing to lookup (hint: place the caret on a function name)\"\nfi\n",
|
78
|
+
fallbackInput: "word",
|
79
|
+
input: "selection",
|
80
|
+
keyEquivalent: "^h",
|
81
|
+
name: "Function Documentation",
|
82
|
+
output: "showAsHTML",
|
83
|
+
scope: "source.matlab",
|
84
|
+
uuid: "033730AF-96F5-4F0C-9199-E0683D40A22C"},
|
85
|
+
{beforeRunningCommand: "nop",
|
86
|
+
command:
|
87
|
+
"#!/usr/bin/env ruby\n\nwidth = 80\n\ntopbottom = \"%%\".ljust(width,\"=\") + \"\\n\"\n\nprint topbottom\nprint \"%%${1/^\" + \"(.)?\"*(width-2) + \".*$/\"\n1.upto(width-2) { |i| print \"(?\#{i}:: )\" }\nprint \"/}${1:Header}\" + \"\\n\"\nprint topbottom\n",
|
88
|
+
input: "none",
|
89
|
+
name: "Insert header comment",
|
90
|
+
output: "insertAsSnippet",
|
91
|
+
scope: "source.matlab, source.octave",
|
92
|
+
tabTrigger: "head",
|
93
|
+
uuid: "AD7201FB-23AD-4105-B8E3-5AAD29419FA6"},
|
94
|
+
{beforeRunningCommand: "nop",
|
95
|
+
command:
|
96
|
+
"#!/usr/bin/env ruby\n\nwidth = 80\nbuffer = 5\n\nprint \"%%${1/^\" + \"(.)?\"*(width) + \".*$/\"\n1.upto(width-2-buffer) { |i| print \"(?\#{i}::=)\" }\nprint \"/}\".ljust(buffer+2)\nprint \"${1:Header}\" + \"\\n$0\"\n",
|
97
|
+
input: "none",
|
98
|
+
name: "Insert section division",
|
99
|
+
output: "insertAsSnippet",
|
100
|
+
scope: "source.matlab, source.octave",
|
101
|
+
tabTrigger: "div",
|
102
|
+
uuid: "D21BACE2-24A1-43EF-854C-460F5A55694E"},
|
103
|
+
{beforeRunningCommand: "nop",
|
104
|
+
command:
|
105
|
+
"#!/usr/bin/env python\n\nimport sys,os\nsys.path.append(os.environ['TM_SUPPORT_PATH'] + '/lib')\n\nimport dialog\n\nline_no = int(os.environ.get('TM_LINE_NUMBER'))-1\nlines = sys.stdin.readlines()\n\ntry: \n sel = os.environ['TM_SELECTED_TEXT']\nexcept KeyError:\n pass\nelse:\n try:\n var = dialog.get_string(text='Enter new variable name', \n prompt='Variable name:')\n except AttributeError:\n print '% Please update your support directory'\n var = 'var'\n\n term = os.environ.get('TM_LINE_TERMINATOR') or ';'\n lines[line_no] = lines[line_no].replace(sel, var)\n lines.insert(line_no, '%s = %s%s\\n' % (var, sel, term))\n\nfor line in lines:\n\tprint line,",
|
106
|
+
input: "document",
|
107
|
+
keyEquivalent: "^C",
|
108
|
+
name: "Introduce variable (line)",
|
109
|
+
output: "replaceDocument",
|
110
|
+
scope: "source.matlab,source.python",
|
111
|
+
uuid: "40B52D65-1B7C-4874-AA30-B4C95089CE55"},
|
112
|
+
{beforeRunningCommand: "nop",
|
113
|
+
command:
|
114
|
+
"#!/usr/bin/env python\n\nimport sys,os\nsys.path.append(os.environ['TM_SUPPORT_PATH'] + '/lib')\n\nimport dialog\n\ndef first_occurance(arr, str):\n \"\"\"find first_occurance of str in an array of strings\"\"\"\n line_no = 0\n # Find first instance of `sel`\n for line in lines:\n try:\n line.index(sel)\n line_no = lines.index(line)\n break\n except ValueError:\n pass\n \n return line_no\n\nlines = sys.stdin.readlines()\nsel = ''\nvar = ''\n\ntry: \n sel = os.environ['TM_SELECTED_TEXT']\nexcept KeyError:\n pass\nelse:\n line_no = first_occurance(lines, sel)-1\n try:\n var = dialog.get_string(text='Enter new variable name', \n prompt='Variable name:')\n except AttributeError:\n print '% Please update your support directory'\n var = 'var'\n\nfor line in lines[0:line_no]:\n\tprint line.replace(sel, var),\n\nterm = os.environ.get('TM_LINE_TERMINATOR') or ';'\nprint '%s = %s%s\\n' % (var, sel, term),\n\nfor line in lines[line_no:]:\n\tprint line.replace(sel, var),\n\n",
|
115
|
+
input: "document",
|
116
|
+
keyEquivalent: "^C",
|
117
|
+
name: "Introduce variable (throughout)",
|
118
|
+
output: "replaceDocument",
|
119
|
+
scope: "source.matlab,source.python",
|
120
|
+
uuid: "4B350792-24A2-4083-A8FB-509DF4BD709A"},
|
121
|
+
{beforeRunningCommand: "nop",
|
122
|
+
command:
|
123
|
+
"f=`find . \"$HOME/matlab\" /Applications/MATLAB* -name \"${TM_SELECTED_TEXT:-$TM_CURRENT_WORD}.m\"|head -1`\n\nif [[ -e \"$f\" ]]\n then open -a TextMate \"$f\"\n else echo \"File could not be found.\"\nfi\n",
|
124
|
+
input: "none",
|
125
|
+
keyEquivalent: "@O",
|
126
|
+
name: "Open Function",
|
127
|
+
output: "showAsTooltip",
|
128
|
+
scope: "source.matlab",
|
129
|
+
uuid: "D7A8ED42-49E0-4CF3-A6C8-BE8DAB76267A"},
|
130
|
+
{beforeRunningCommand: "nop",
|
131
|
+
command:
|
132
|
+
"#!/usr/bin/env ruby\n\ninput = STDIN.readlines\n\ninput.each do |str|\n puts case str\n when /\\A(.*?)#+\\s*(.*)$/: $1 + ENV['TM_COMMENT_START'] + $2 \n when /\\A(.*?)%+\\s*(.*)$/: $1 + ENV['TM_COMMENT_START'] + $2 \n # Default case\n else str\n end\nend\n",
|
133
|
+
fallbackInput: "line",
|
134
|
+
input: "document",
|
135
|
+
keyEquivalent: "^@C",
|
136
|
+
name: "Replace comments with default",
|
137
|
+
output: "replaceDocument",
|
138
|
+
scope: "source.matlab, source.octave",
|
139
|
+
uuid: "321567FE-2E57-4D5C-BEFB-98FE869FF4D7"},
|
140
|
+
{beforeRunningCommand: "nop",
|
141
|
+
command:
|
142
|
+
"#!/usr/bin/env ruby\n\nprint case str = STDIN.read\n when /\\A(.*?)\\%(.*)$/: $1 + '#' + $2 \n when /\\A(.*?)#(.*)$/: $1 + '%' + $2\n # Default case\n else str\nend\n",
|
143
|
+
fallbackInput: "line",
|
144
|
+
input: "selection",
|
145
|
+
keyEquivalent: "@C",
|
146
|
+
name: "Toggle comment style",
|
147
|
+
output: "replaceSelectedText",
|
148
|
+
scope: "source.matlab, source.octave",
|
149
|
+
uuid: "BEAE3101-B710-4BDE-A178-247F9FB6C018"},
|
150
|
+
{beforeRunningCommand: "nop",
|
151
|
+
command:
|
152
|
+
"#!/usr/bin/env ruby\nrequire ENV[\"TM_BUNDLE_SUPPORT\"] + \"/lib/MATLABUtils.rb\"\ninclude MATLAB\nvariables = MATLAB.get_variables\nputs \"clear('${1:\#{variables.join(\"','\")}}'$2);\"\n",
|
153
|
+
input: "document",
|
154
|
+
name: "clear",
|
155
|
+
output: "insertAsSnippet",
|
156
|
+
scope: "source.matlab, source.octave",
|
157
|
+
tabTrigger: "cl",
|
158
|
+
uuid: "31D0DE27-0382-4F5F-B005-351F9D9B4589"},
|
159
|
+
{beforeRunningCommand: "nop",
|
160
|
+
command:
|
161
|
+
"#!/usr/bin/env ruby\n# Wrap the current word or selected text in num2str()\n# or insert \" if there is no word\n\nseltext = ENV['TM_SELECTED_TEXT'].to_s \ncurword = ENV['TM_CURRENT_WORD'].to_s\n\nif !seltext.empty?\n\tprint \"num2str(\", seltext, \")\"\nelsif !curword.empty?\n\tprint \"num2str(\", curword, \")\"\nelse\n print \"\\\"\"\nend",
|
162
|
+
fallbackInput: "word",
|
163
|
+
input: "selection",
|
164
|
+
keyEquivalent: "^'",
|
165
|
+
name: "num2str",
|
166
|
+
output: "insertAsSnippet",
|
167
|
+
scope:
|
168
|
+
"(source.matlab|source.octave) - (string.quoted.single.matlab | comment.line.percentage.matlab | comment.double.percentage.matlab)",
|
169
|
+
uuid: "6F519B71-2D99-455B-9E4A-F614FD9CA253"},
|
170
|
+
{beforeRunningCommand: "nop",
|
171
|
+
command:
|
172
|
+
"#!/usr/bin/env ruby\nrequire ENV[\"TM_BUNDLE_SUPPORT\"] + \"/lib/MATLABUtils.rb\"\ninclude MATLAB\nvariables = MATLAB.get_variables\nputs \"save(${1:'${2:filename}'},${3:'${4:\#{variables.join(\"','\")}}'}$5);\"\n",
|
173
|
+
input: "document",
|
174
|
+
name: "save",
|
175
|
+
output: "insertAsSnippet",
|
176
|
+
scope: "source.matlab, source.octave",
|
177
|
+
tabTrigger: "save",
|
178
|
+
uuid: "EA2AB0C2-A215-4503-930C-785CDF66F95B"},
|
179
|
+
{beforeRunningCommand: "nop",
|
180
|
+
command:
|
181
|
+
"#!/usr/bin/env ruby\n#\n# Looks through code, finds the last subplot function\n# and pre-populates the new subplot call with values\n# from last function. If the input values are numeric,\n# we increment the last argument.\n#\nlinesbefore = ENV['TM_LINE_NUMBER'].to_i-1\ncolumns = ENV['TM_LINE_INDEX'].to_i\ntextArray = STDIN.readlines\nmyStr = textArray[0...linesbefore].join\nmyStr << textArray[linesbefore].to_s.slice(0...columns)\n\nif myStr =~ /.*(subplot\\()(\\w+[*]?)(\\,)(\\w+[*]?)(\\,)(\\w+[*]?)(\\))/m\n subrows, subcols, subthis = $2, $4, $6\n\n # We have a pure number\n subthis = subthis.to_i + 1 if subthis =~ /\\A\\d+\\z/\nelse\n subrows = \"rows\"\n subcols = \"cols\"\n subthis = \"current\"\nend\n\nprint \"subplot(${1:\", subrows, \"},\"\nprint \"${2:\", subcols, \"},\"\nprint \"${3:\", subthis, \"})${4:, }$0\"",
|
182
|
+
fallbackInput: "document",
|
183
|
+
input: "document",
|
184
|
+
name: "subplot",
|
185
|
+
output: "insertAsSnippet",
|
186
|
+
scope: "source.matlab, source.octave",
|
187
|
+
tabTrigger: "sub",
|
188
|
+
uuid: "F674E1B2-5BA5-4397-9D54-D48623E9F2FD"}]
|
@@ -0,0 +1,162 @@
|
|
1
|
+
# Encoding: UTF-8
|
2
|
+
|
3
|
+
[{autoScrollOutput: true,
|
4
|
+
beforeRunningCommand: "nop",
|
5
|
+
command: "mavenmate.sh -t clean",
|
6
|
+
input: "none",
|
7
|
+
keyEquivalent: "^@M",
|
8
|
+
name: "Clean",
|
9
|
+
output: "showAsHTML",
|
10
|
+
uuid: "B1E0991E-106F-452B-8AA5-17564847EDA6"},
|
11
|
+
{autoScrollOutput: true,
|
12
|
+
beforeRunningCommand: "nop",
|
13
|
+
command: "mavenmate.sh -t compile",
|
14
|
+
input: "none",
|
15
|
+
keyEquivalent: "^@M",
|
16
|
+
name: "Compile",
|
17
|
+
output: "showAsHTML",
|
18
|
+
uuid: "BDD18676-3D30-41CD-A556-548838A41F3E"},
|
19
|
+
{autoScrollOutput: true,
|
20
|
+
beforeRunningCommand: "nop",
|
21
|
+
command: "mavenmate.sh -t deploy",
|
22
|
+
input: "none",
|
23
|
+
keyEquivalent: "^@M",
|
24
|
+
name: "Deploy",
|
25
|
+
output: "showAsHTML",
|
26
|
+
uuid: "A3443F7C-CBE3-4698-BE25-040AF1297E29"},
|
27
|
+
{autoScrollOutput: true,
|
28
|
+
beforeRunningCommand: "nop",
|
29
|
+
command: "mavenmate.sh -t install",
|
30
|
+
input: "none",
|
31
|
+
keyEquivalent: "^@M",
|
32
|
+
name: "Install",
|
33
|
+
output: "showAsHTML",
|
34
|
+
uuid: "A2EAF58E-7C18-4E5A-93B9-6C249696CAFD"},
|
35
|
+
{autoScrollOutput: true,
|
36
|
+
beforeRunningCommand: "nop",
|
37
|
+
command: "mavenmate.sh -t integration-test",
|
38
|
+
input: "none",
|
39
|
+
keyEquivalent: "^@M",
|
40
|
+
name: "Integration Test",
|
41
|
+
output: "showAsHTML",
|
42
|
+
uuid: "F1DA338C-FD12-4EFF-9BA6-67EFA3DCDFF3"},
|
43
|
+
{beforeRunningCommand: "nop",
|
44
|
+
command:
|
45
|
+
"settings=~/.m2/settings.xml\nif [ -f \"$settings\" ]\nthen\n\topen -a TextMate ~/.m2/settings.xml\nelse\n\tTextMate.exit_show_tooltip \"‘$settings’ does not exist\"\nfi ",
|
46
|
+
input: "none",
|
47
|
+
keyEquivalent: "^@S",
|
48
|
+
name: "Open personal settings.xml",
|
49
|
+
output: "showAsTooltip",
|
50
|
+
uuid: "A69B943D-83B8-467E-A6AC-0CDF9A288EB9"},
|
51
|
+
{autoScrollOutput: true,
|
52
|
+
beforeRunningCommand: "nop",
|
53
|
+
command: "mavenmate.sh -t package",
|
54
|
+
input: "none",
|
55
|
+
keyEquivalent: "^@M",
|
56
|
+
name: "Package",
|
57
|
+
output: "showAsHTML",
|
58
|
+
uuid: "D421D75D-DBDE-4993-9686-E4208DD4A87E"},
|
59
|
+
{autoScrollOutput: true,
|
60
|
+
beforeRunningCommand: "nop",
|
61
|
+
command: "mavenmate.sh -P",
|
62
|
+
input: "none",
|
63
|
+
keyEquivalent: "^@M",
|
64
|
+
name: "Profiles",
|
65
|
+
output: "showAsTooltip",
|
66
|
+
uuid: "E7EA03BE-2FE5-45E7-A0C6-64B0BBCBA738"},
|
67
|
+
{autoScrollOutput: true,
|
68
|
+
beforeRunningCommand: "nop",
|
69
|
+
command: "mavenmate.sh -p ",
|
70
|
+
input: "none",
|
71
|
+
keyEquivalent: "^@M",
|
72
|
+
name: "Redo Previous Task",
|
73
|
+
output: "showAsHTML",
|
74
|
+
uuid: "862B0BB5-7D5D-42FC-BF41-E0A773A6590F"},
|
75
|
+
{autoScrollOutput: true,
|
76
|
+
beforeRunningCommand: "nop",
|
77
|
+
command: "mavenmate.sh -t release:branch",
|
78
|
+
input: "none",
|
79
|
+
keyEquivalent: "^@M",
|
80
|
+
name: "Release Branch",
|
81
|
+
output: "showAsHTML",
|
82
|
+
uuid: "1BFA4873-D0F9-47A1-B4D4-22325F5FD4F3"},
|
83
|
+
{autoScrollOutput: true,
|
84
|
+
beforeRunningCommand: "nop",
|
85
|
+
command: "mavenmate.sh -t release:clean",
|
86
|
+
input: "none",
|
87
|
+
keyEquivalent: "^@M",
|
88
|
+
name: "Release Clean",
|
89
|
+
output: "showAsHTML",
|
90
|
+
uuid: "9F2DDE9A-18C6-43B1-8F1C-A05776AF3663"},
|
91
|
+
{autoScrollOutput: true,
|
92
|
+
beforeRunningCommand: "nop",
|
93
|
+
command: "mavenmate.sh -t release:perform",
|
94
|
+
input: "none",
|
95
|
+
keyEquivalent: "^@M",
|
96
|
+
name: "Release Perform",
|
97
|
+
output: "showAsHTML",
|
98
|
+
uuid: "DBCA3485-7EAE-46DE-ADA7-1CB754F6A7A8"},
|
99
|
+
{autoScrollOutput: true,
|
100
|
+
beforeRunningCommand: "nop",
|
101
|
+
command: "mavenmate.sh -t release:prepare",
|
102
|
+
input: "none",
|
103
|
+
keyEquivalent: "^@M",
|
104
|
+
name: "Release Prepare",
|
105
|
+
output: "showAsHTML",
|
106
|
+
uuid: "73AF2F5B-353A-40C7-A72F-50D4AF95450D"},
|
107
|
+
{autoScrollOutput: true,
|
108
|
+
beforeRunningCommand: "nop",
|
109
|
+
command: "mavenmate.sh -t release:rollback",
|
110
|
+
input: "none",
|
111
|
+
keyEquivalent: "^@M",
|
112
|
+
name: "Release Rollback",
|
113
|
+
output: "showAsHTML",
|
114
|
+
uuid: "AFC4DAFC-92ED-467D-89F1-F4ECFD784C4F"},
|
115
|
+
{autoScrollOutput: true,
|
116
|
+
beforeRunningCommand: "nop",
|
117
|
+
command: "mavenmate.sh -t",
|
118
|
+
input: "none",
|
119
|
+
keyEquivalent: "^@M",
|
120
|
+
name: "Run Arbitrary Task …",
|
121
|
+
output: "showAsHTML",
|
122
|
+
uuid: "797B1987-A4CD-48D9-BE92-56351F22F6AB"},
|
123
|
+
{autoScrollOutput: true,
|
124
|
+
beforeRunningCommand: "nop",
|
125
|
+
command: "mavenmate.sh -t site:site",
|
126
|
+
input: "none",
|
127
|
+
keyEquivalent: "^@M",
|
128
|
+
name: "Site Generate",
|
129
|
+
output: "showAsHTML",
|
130
|
+
uuid: "A66DFCA3-C5F5-48F2-AB48-D0CC38436E76"},
|
131
|
+
{autoScrollOutput: true,
|
132
|
+
beforeRunningCommand: "nop",
|
133
|
+
command: "mavenmate.sh -t site:run\n\nopen 'http://localhost:8080/'",
|
134
|
+
input: "none",
|
135
|
+
keyEquivalent: "^@M",
|
136
|
+
name: "Site Run",
|
137
|
+
output: "showAsHTML",
|
138
|
+
uuid: "E7AF434A-F2F7-431B-B796-403C35E2EBDF"},
|
139
|
+
{autoScrollOutput: true,
|
140
|
+
beforeRunningCommand: "nop",
|
141
|
+
command: "mavenmate.sh -t test",
|
142
|
+
input: "none",
|
143
|
+
keyEquivalent: "^@M",
|
144
|
+
name: "Test",
|
145
|
+
output: "showAsHTML",
|
146
|
+
uuid: "C72F43DD-60E7-4F7C-B63B-84ADC3E1B67A"},
|
147
|
+
{autoScrollOutput: true,
|
148
|
+
beforeRunningCommand: "nop",
|
149
|
+
command: "mavenmate.sh -f \"$TM_FILENAME\"",
|
150
|
+
input: "none",
|
151
|
+
keyEquivalent: "^@M",
|
152
|
+
name: "Test Current File",
|
153
|
+
output: "showAsHTML",
|
154
|
+
uuid: "2D3E0685-1F92-47E8-AE17-07F7B15AEDD2"},
|
155
|
+
{autoScrollOutput: true,
|
156
|
+
beforeRunningCommand: "nop",
|
157
|
+
command: "mavenmate.sh -t verify",
|
158
|
+
input: "none",
|
159
|
+
keyEquivalent: "^@M",
|
160
|
+
name: "Verify",
|
161
|
+
output: "showAsHTML",
|
162
|
+
uuid: "2FF6439B-3FB8-4502-825C-D1ED23F4D982"}]
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# Encoding: UTF-8
|
2
|
+
|
3
|
+
[{beforeRunningCommand: "nop",
|
4
|
+
bundleUUID: "D99E8C0C-792F-11D9-A212-000D93B3A10E",
|
5
|
+
command:
|
6
|
+
". \"$TM_SUPPORT_PATH/lib/webpreview.sh\"\nhtml_header \"Mediawiki Cheat Sheet\"\nMarkdown.pl <<MARKDOWN\n## Paragraphs ##\n\n Two line breaks\n will signify\n a paragraph.\n \n New paragraph starts\n here.\n \n For a linebreak, just\n use <br/> the html tag\n\n## Phrase Emphasis ##\n\n\t''italics''\n\t'''bold'''\n\n## Links ##\n\nExternal:\n\n\tAn [http://url.com/ example].\n\nWiki-links:\n\n\tAn [[example]] wikilink, possibly even\n\tfrom another namespace: [[talk:example]].\n\tRenaming [[hyperlink|links]] is easy.\n\nCategories: add the page to a category as follows:\n\n [[category:example]]\n\n## Images ##\n\nNot floated:\n\n\t[[Image:example.png]]\n\nThumbnail, with a caption, floated left, 200 pixels wide:\n\n [[Image:example.png|left|200px|Floating!]]\n\nLink to the image, but don't show it on the page:\n\n [[:Image:example.png|example.png]]\n\n## Headers ##\n\n\n\t== Header 2 ==\n\n\t=== Header 3 ===\n\n\t====== Header 6 ======\n\n\n## Lists ##\n\nOrdered:\n\n\t# Foo\n\t# Bar\n\nUnordered:\n\n\t* A list item. <br> With a line break.\n\t* Bar\n\nDefinition:\n\n ; a term\n : some defining\n : and more defining\n ; and another term : definition\n\nThey can be nested:\n\n\t* Abacus\n ** answer\n\t* Bubbles\n\t*# bunk\n *# bupkis\n *#; BELITTLER : one who belittles\n\t*# burper\n\t* Cunning\n\nDefinitions, without the word they are defining, are used\nto indent talk pages:\n\n Delete this article! [[user:spam]]\n : No, it's great! [[user:eggs]]\n\n## Signatures ##\n\nComments should be signed:\n\n ~~~ is my signature\n ~~~~ is my signature with datestamp\n ~~~~~ is just the datestamp\n\n## Use HTML for other formatting ##\n\nFor a monospaced font:\n\n use the <tt>tt</tt> tag.\n\nTo center text:\n\n <center>put me in the middle</center>\n\nFor a blockquote:\n\n <blockquote>To be or not to be…</blockquote>\n\n\n## Prevent wiki formatting ##\n\n Use the <nowiki>'''tag'' to write\n '''about''</nowiki> mediawiki code\n itself, or suppress rendering for\n some other reason.\n\n## Templates ##\n\nOne page can be transcluded in another page\nby using a template:\n\n {{templates}} go in curly braces\n\n## Horizontal Rules ##\n\nFour or more dashes:\n\n\t----\n\nMARKDOWN\nhtml_footer",
|
7
|
+
input: "none",
|
8
|
+
keyEquivalent: "^h",
|
9
|
+
name: "Syntax Cheat Sheet",
|
10
|
+
output: "showAsHTML",
|
11
|
+
scope: "text.html.mediawiki",
|
12
|
+
uuid: "873BDE02-80C9-44F4-910B-234EF7702D01"}]
|
@@ -0,0 +1,185 @@
|
|
1
|
+
# Encoding: UTF-8
|
2
|
+
|
3
|
+
[{beforeRunningCommand: "nop",
|
4
|
+
command:
|
5
|
+
"require_cmd \"${TM_HG:=hg}\" \"If you have installed hg, then you need to either update your <tt>PATH</tt> or set the <tt>TM_HG</tt> shell variable (e.g. in Preferences / Advanced)\"\n\n\"${TM_RUBY:-ruby}\" -r \"$TM_SUPPORT_PATH/lib/shelltokenize.rb\" <<END\n\thg = ENV['TM_HG'] || \"hg\"\n\tputs %x{\#{hg} add \#{TextMate.selected_paths_for_shell}}\nEND\n\n",
|
6
|
+
input: "none",
|
7
|
+
keyEquivalent: "^M",
|
8
|
+
name: "Add",
|
9
|
+
output: "showAsTooltip",
|
10
|
+
uuid: "A6F3AB3E-FB21-4E93-B672-E41100E88E41"},
|
11
|
+
{beforeRunningCommand: "nop",
|
12
|
+
command:
|
13
|
+
"require_cmd \"${TM_HG:=hg}\" \"If you have installed hg, then you need to either update your <tt>PATH</tt> or set the <tt>TM_HG</tt> shell variable (e.g. in Preferences / Advanced)\"\n\n$TM_HG add\n$TM_HG remove --after\n\n",
|
14
|
+
input: "none",
|
15
|
+
keyEquivalent: "^M",
|
16
|
+
name: "AddRemove",
|
17
|
+
output: "showAsTooltip",
|
18
|
+
uuid: "865D7DE7-A07B-47C1-AEDC-4A88317A0EB1"},
|
19
|
+
{beforeRunningCommand: "nop",
|
20
|
+
command:
|
21
|
+
"require_cmd \"${TM_HG:=hg}\" \"If you have installed hg, then you need to either update your <tt>PATH</tt> or set the <tt>TM_HG</tt> shell variable (e.g. in Preferences / Advanced)\"\n\n\"$TM_HG\" annotate -nud \"$TM_FILEPATH\" 2>&1 \\\n|\"${TM_RUBY:-ruby}\" -- \"${TM_BUNDLE_SUPPORT}/format_annotate.rb\"",
|
22
|
+
input: "none",
|
23
|
+
keyEquivalent: "^M",
|
24
|
+
name: "Annotate",
|
25
|
+
output: "showAsHTML",
|
26
|
+
uuid: "2593B8FB-279E-4BD1-8935-0D9B1699526F"},
|
27
|
+
{beforeRunningCommand: "saveModifiedFiles",
|
28
|
+
command:
|
29
|
+
"require_cmd \"${TM_HG:=hg}\" \"If you have installed hg, then you need to either update your <tt>PATH</tt> or set the <tt>TM_HG</tt> shell variable (e.g. in Preferences / Advanced)\"\n\nexport TM_HG\nexport CommitWindow=\"$TM_SUPPORT_PATH/bin/CommitWindow.app/Contents/MacOS/CommitWindow\"\n\ncd \"${TM_PROJECT_DIRECTORY:-$TM_DIRECTORY}\"\n\"${TM_RUBY:-ruby}\" -- \"${TM_BUNDLE_SUPPORT}/hg_commit.rb\"",
|
30
|
+
input: "none",
|
31
|
+
keyEquivalent: "^M",
|
32
|
+
name: "Commit",
|
33
|
+
output: "showAsHTML",
|
34
|
+
uuid: "A6254651-3866-4F78-8774-10FA1C1D7A6B"},
|
35
|
+
{beforeRunningCommand: "nop",
|
36
|
+
command:
|
37
|
+
"require_cmd \"${TM_HG:=hg}\" \"If you have installed hg, then you need to either update your <tt>PATH</tt> or set the <tt>TM_HG</tt> shell variable (e.g. in Preferences / Advanced)\"\n\nif [[ -d \"$TM_PROJECT_DIRECTORY\" ]]\n then export WorkPath=\"$TM_PROJECT_DIRECTORY\"; cd \"$TM_PROJECT_DIRECTORY\"\n else export WorkPath=\"$TM_DIRECTORY\"\nfi\n\nrevs=$(\"$TM_HG\" log -q \"$TM_FILEPATH\" \\\n\t2> >(CocoaDialog progressbar --indeterminate \\\n\t\t--title \"Diff Revisions…\" \\\n\t\t--text \"Retrieving List of Revisions…\" \\\n\t))\n\nrevs=`osascript <<END\n\tset theResult to false\n\tset AppleScript's text item delimiters to {\"\\n\",\"\\r\"}\n\ttell app \"SystemUIServer\"\n\t\tactivate\n\t\tset ourList to (every text item of \"$revs\")\n\t\tif the count of items in ourList is 0 then\n\t\t\tdisplay dialog \"No revisions of file '$TM_FILENAME' found\" buttons (\"Continue\") default button 1\n\t\telse\n\t\t\ttell app \"SystemUIServer\" to choose from list (every text item of \"$revs\") with prompt \"Please choose two revisions of '$TM_FILENAME':\" with multiple selections allowed\n\n\t\t\tset theitems to the result\n\t\t\tif theitems is not false then\n\t\t\t\tif the count of items in the theitems is less than 2 then\n\t\t\t\t\tdisplay dialog \"Please select two revisions (hold down the shift key to select multiple revisions).\" buttons (\"Continue\") default button 1\n\t\t\t\telse\n\t\t\t\t\tset theResult to (item 1 of theitems) & return & (item 2 of theitems)\n\t\t\t\tend if\n\t\t\tend if \n\t\tend if\n\t\tset the result to theResult\n\tend tell\nEND`\n\n# exit if user canceled\nif [[ $revs = \"false\" ]]; then\n\tosascript -e 'tell app \"TextMate\" to activate' &>/dev/null &\texit_discard\nfi\n\n\nrevs=`echo \"$revs\" | tr '\\r' '\\n' | cut -d \":\" -f 1`\nrevs=( $revs )\n\n\n\nrev1=${revs[0]#r}\nrev2=${revs[1]#r}\n\n\"${TM_RUBY:=ruby}\" -I \"$TM_BUNDLE_SUPPORT/\" <<END\n\tif ENV['TM_HG_EXT_DIFF']\n\t\trequire 'hg_extdiff'\n\telse\n\t\trequire 'hg_diff'\n\tend\n\tMercurial::diff_active_file(\"-r$rev2 -r$rev1\", \"Diff Revisions…\")\nEND\n",
|
38
|
+
input: "none",
|
39
|
+
keyEquivalent: "^M",
|
40
|
+
name: "Diff Revisions...",
|
41
|
+
output: "openAsNewDocument",
|
42
|
+
uuid: "A60EB1AE-66C8-4791-940B-6601635A7899"},
|
43
|
+
{beforeRunningCommand: "nop",
|
44
|
+
command:
|
45
|
+
"require_cmd \"${TM_HG:=hg}\" \"If you have installed hg, then you need to either update your <tt>PATH</tt> or set the <tt>TM_HG</tt> shell variable (e.g. in Preferences / Advanced)\"\n\nif [[ -d \"$TM_PROJECT_DIRECTORY\" ]]\n then export WorkPath=\"$TM_PROJECT_DIRECTORY\"; cd \"$TM_PROJECT_DIRECTORY\"\n else export WorkPath=\"$TM_DIRECTORY\"; cd \"$TM_PROJECT_DIRECTORY\"\nfi\n\n\"${TM_RUBY:=ruby}\" -I \"$TM_BUNDLE_SUPPORT/\" <<END\n\tif ENV['TM_HG_EXT_DIFF']\n\t\trequire 'hg_extdiff'\n\telse\n\t\trequire 'hg_diff'\n\tend\n\tMercurial::diff_active_file(\"-r tip\", \"Diff With Tip\")\nEND\n",
|
46
|
+
input: "none",
|
47
|
+
keyEquivalent: "^M",
|
48
|
+
name: "Diff with Newest (Tip)",
|
49
|
+
output: "openAsNewDocument",
|
50
|
+
uuid: "F56EB32C-F574-4865-83BF-976D8A826FC1"},
|
51
|
+
{beforeRunningCommand: "nop",
|
52
|
+
command:
|
53
|
+
"require_cmd \"${TM_HG:=hg}\" \"If you have installed hg, then you need to either update your <tt>PATH</tt> or set the <tt>TM_HG</tt> shell variable (e.g. in Preferences / Advanced)\"\n\nif [[ -d \"$TM_PROJECT_DIRECTORY\" ]]\n then export WorkPath=\"$TM_PROJECT_DIRECTORY\"; cd \"$TM_PROJECT_DIRECTORY\"\n else export WorkPath=\"$TM_DIRECTORY\"\nfi\n\nrevs=$(\"$TM_HG\" log -q \"$TM_FILEPATH\" \\\n\t2> >(CocoaDialog progressbar --indeterminate \\\n\t\t--title \"Diff Revisions…\" \\\n\t\t--text \"Retrieving List of Revisions…\" \\\n\t))\n\nrevs=`osascript<<END\n\tset AppleScript's text item delimiters to {\"\\n\",\"\\r\"}\n\ttell app \"SystemUIServer\"\n\t\tactivate\n\t\tset ourList to (every text item of \"$revs\")\n\t\tif the count of items in ourList is 0 then\n\t\t\tdisplay dialog \"No older revisions of file '$(basename \"$TM_FILEPATH\")' found\" buttons (\"OK\")\n\t\t\tset the result to false\n\t\telse\n\t\t\tchoose from list ourList with prompt \"Diff '$(basename \"$TM_FILEPATH\")' with older revision:\"\n\t\tend if\n\tend tell\nEND`\n\n# exit if user canceled\nif [[ $revs = \"false\" ]]; then\n\tosascript -e 'tell app \"TextMate\" to activate' &>/dev/null &\texit_discard\nfi\n\n\nrevs=`echo \"$revs\" | tr '\\r' '\\n' | cut -d \":\" -f 1`\nrevs=( $revs )\n\n\"${TM_RUBY:=ruby}\" -I \"$TM_BUNDLE_SUPPORT/\" <<END\n\tif ENV['TM_HG_EXT_DIFF']\n\t\trequire 'hg_extdiff'\n\telse\n\t\trequire 'hg_diff'\n\tend\n\tMercurial::diff_active_file(\"-r${revs[0]#r}\", \"Diff With Revision…\")\nEND\n",
|
54
|
+
input: "none",
|
55
|
+
keyEquivalent: "^M",
|
56
|
+
name: "Diff with Revision…",
|
57
|
+
output: "openAsNewDocument",
|
58
|
+
uuid: "7D88D67B-C562-41DB-B25B-0AA8EAF3DC36"},
|
59
|
+
{beforeRunningCommand: "nop",
|
60
|
+
command:
|
61
|
+
"require_cmd \"${TM_HG:=hg}\" \"If you have installed hg, then you need to either update your <tt>PATH</tt> or set the <tt>TM_HG</tt> shell variable (e.g. in Preferences / Advanced)\"\n\nif [[ -d \"$TM_PROJECT_DIRECTORY\" ]]\n then export WorkPath=\"$TM_PROJECT_DIRECTORY\"; cd \"$TM_PROJECT_DIRECTORY\"\n else export WorkPath=\"$TM_DIRECTORY\"; cd \"$TM_PROJECT_DIRECTORY\"\nfi\n\n\"${TM_RUBY:=ruby}\" -I \"$TM_BUNDLE_SUPPORT/\" <<END\n\tif ENV['TM_HG_EXT_DIFF']\n\t\trequire 'hg_extdiff'\n\telse\n\t\trequire 'hg_diff'\n\tend\n\tMercurial::diff_active_file(\"\", \"Diff With Working Copy\")\nEND",
|
62
|
+
input: "none",
|
63
|
+
keyEquivalent: "^M",
|
64
|
+
name: "Diff with Working Copy",
|
65
|
+
output: "openAsNewDocument",
|
66
|
+
uuid: "D8C78EA6-68A7-4625-826A-C64E51EF0724"},
|
67
|
+
{beforeRunningCommand: "nop",
|
68
|
+
command: "\"${TM_RUBY:-ruby}\" \"$TM_BUNDLE_SUPPORT/hg_show_help.rb\"",
|
69
|
+
input: "none",
|
70
|
+
keyEquivalent: "^M",
|
71
|
+
name: "Help",
|
72
|
+
output: "showAsHTML",
|
73
|
+
uuid: "296CC34F-72CA-4720-A77D-0452EEB3813C"},
|
74
|
+
{beforeRunningCommand: "nop",
|
75
|
+
command:
|
76
|
+
"require_cmd \"${TM_HG:=hg}\" \"If you have installed Mercurial, then you need to either update your <tt>PATH</tt> or set the <tt>TM_HG</tt> shell variable (e.g. in Preferences / Advanced)\"\n\ncd \"$TM_PROJECT_DIRECTORY\"\n\n\"${TM_RUBY:-ruby}\" -r \"$TM_SUPPORT_PATH/lib/shelltokenize.rb\" <<END\n\thg = ENV['TM_HG'] || \"hg\"\n\toutput = puts %x{\#{hg} init}\n\tputs output\nEND\n\n# will cause current file to be re-loaded\nrescan_project",
|
77
|
+
input: "none",
|
78
|
+
keyEquivalent: "^M",
|
79
|
+
name: "Init",
|
80
|
+
output: "showAsTooltip",
|
81
|
+
uuid: "60838383-D23C-465B-9414-A1EC148F6D1D"},
|
82
|
+
{beforeRunningCommand: "nop",
|
83
|
+
command:
|
84
|
+
"require_cmd \"${TM_HG:=hg}\" \"If you have installed hg, then you need to either update your <tt>PATH</tt> or set the <tt>TM_HG</tt> shell variable (e.g. in Preferences / Advanced)\"\n\nif [[ -d \"$TM_PROJECT_DIRECTORY\" ]]\n then export WorkPath=\"$TM_PROJECT_DIRECTORY\"; cd \"$TM_PROJECT_DIRECTORY\"\n else export WorkPath=\"$TM_DIRECTORY\"; cd \"$TM_DIRECTORY\"\nfi\n \n: ${TM_RUBY:=ruby}\nFORMAT_LOG=\"${TM_BUNDLE_SUPPORT}/format_log.rb\"\nHG_STYLE=\"${TM_BUNDLE_SUPPORT}/map-log.changelog\"\n\nif [[ $TM_HG_LOG_LIMIT != 0 ]]\n\tthen HG_LIMIT=\"-l ${TM_HG_LOG_LIMIT:=10}\"\nfi\n\nHG_STYLE_TMP='\"$HG_STYLE\"'\nTM_HG_TMP='\"$TM_HG\"'\n\nif [[ -z $TM_SELECTED_FILES ]]; then\n \"$TM_HG\" log $HG_LIMIT --style \"$HG_STYLE\" \"$TM_FILEPATH\" 2>&1 |\"$TM_RUBY\" -- \"$FORMAT_LOG\"\nelse\n eval \"$TM_HG_TMP\" log $HG_LIMIT --style \"$HG_STYLE_TMP\" \"$TM_SELECTED_FILES\" 2>&1 |\"$TM_RUBY\" -- \"$FORMAT_LOG\"\nfi",
|
85
|
+
input: "none",
|
86
|
+
keyEquivalent: "^M",
|
87
|
+
name: "Log",
|
88
|
+
output: "showAsHTML",
|
89
|
+
uuid: "DF26FEB2-2E2C-4764-B766-869113AF6E00"},
|
90
|
+
{beforeRunningCommand: "nop",
|
91
|
+
command:
|
92
|
+
"require_cmd \"${TM_HG:=hg}\" \"If you have installed hg, then you need to either update your <tt>PATH</tt> or set the <tt>TM_HG</tt> shell variable (e.g. in Preferences / Advanced)\"\n\n\nif [[ -d \"$TM_PROJECT_DIRECTORY\" ]]\n then export WorkPath=\"$TM_PROJECT_DIRECTORY\"; cd \"$TM_PROJECT_DIRECTORY\"\n else export WorkPath=\"$TM_DIRECTORY\"; cd \"$TM_DIRECTORY\"\nfi\n \n: ${TM_RUBY:=ruby}\nFORMAT_LOG=\"${TM_BUNDLE_SUPPORT}/format_log.rb\"\nHG_STYLE=\"${TM_BUNDLE_SUPPORT}/map-log.changelog\"\n\nif [[ $TM_HG_LOG_LIMIT != 0 ]]\n\tthen HG_LIMIT=\"-l ${TM_HG_LOG_LIMIT:=10}\"\nfi\n\nHG_STYLE_TMP='\"$HG_STYLE\"'\nTM_HG_TMP='\"$TM_HG\"'\n\nif [[ -z $TM_SELECTED_FILES ]]; then\n \"$TM_HG\" log --debug $HG_LIMIT --style \"$HG_STYLE\" \"$TM_FILEPATH\" 2>&1 |\"$TM_RUBY\" -- \"$FORMAT_LOG\"\nelse\n eval \"$TM_HG_TMP\" log --debug $HG_LIMIT --style \"$HG_STYLE_TMP\" \"$TM_SELECTED_FILES\" 2>&1 |\"$TM_RUBY\" -- \"$FORMAT_LOG\"\nfi",
|
93
|
+
input: "none",
|
94
|
+
keyEquivalent: "^M",
|
95
|
+
name: "Log -v",
|
96
|
+
output: "showAsHTML",
|
97
|
+
uuid: "CFC80127-ED10-465E-9CCE-D9282FD7893D"},
|
98
|
+
{beforeRunningCommand: "nop",
|
99
|
+
command:
|
100
|
+
"require_cmd \"${TM_HG:=hg}\" \"If you have installed hg, then you need to either update your <tt>PATH</tt> or set the <tt>TM_HG</tt> shell variable (e.g. in Preferences / Advanced)\"\n\nif [[ -d \"$TM_PROJECT_DIRECTORY\" ]]\n then export WorkPath=\"$TM_PROJECT_DIRECTORY\"; cd \"$TM_PROJECT_DIRECTORY\"\n else export WorkPath=\"$TM_DIRECTORY\"\nfi\n\nexport TM_HG\n\ncd \"${TM_PROJECT_DIRECTORY:-$TM_DIRECTORY}\"\n\"${TM_RUBY:-ruby}\" -- \"${TM_BUNDLE_SUPPORT}/hg_pull.rb\"\n",
|
101
|
+
input: "none",
|
102
|
+
keyEquivalent: "^M",
|
103
|
+
name: "Pull from default repo",
|
104
|
+
output: "showAsTooltip",
|
105
|
+
uuid: "46E15B5C-A621-48E5-AD2B-A893532695A6"},
|
106
|
+
{beforeRunningCommand: "nop",
|
107
|
+
command:
|
108
|
+
"require_cmd \"${TM_HG:=hg}\" \"If you have installed hg, then you need to either update your <tt>PATH</tt> or set the <tt>TM_HG</tt> shell variable (e.g. in Preferences / Advanced)\"\n\nif [[ -d \"$TM_PROJECT_DIRECTORY\" ]]\n then export WorkPath=\"$TM_PROJECT_DIRECTORY\"; cd \"$TM_PROJECT_DIRECTORY\"\n else export WorkPath=\"$TM_DIRECTORY\"\nfi\n\nexport TM_HG\n\ncd \"${TM_PROJECT_DIRECTORY:-$TM_DIRECTORY}\"\n\"${TM_RUBY:-ruby}\" -- \"${TM_BUNDLE_SUPPORT}/hg_push.rb\"\n",
|
109
|
+
input: "none",
|
110
|
+
keyEquivalent: "^M",
|
111
|
+
name: "Push to default repo",
|
112
|
+
output: "showAsTooltip",
|
113
|
+
uuid: "75575B16-87B9-40A3-9101-B027DD43D31F"},
|
114
|
+
{beforeRunningCommand: "nop",
|
115
|
+
command:
|
116
|
+
"require_cmd \"${TM_HG:=hg}\" \"If you have installed hg, then you need to either update your <tt>PATH</tt> or set the <tt>TM_HG</tt> shell variable (e.g. in Preferences / Advanced)\"\n\n\"${TM_RUBY:-ruby}\" -r \"$TM_SUPPORT_PATH/lib/shelltokenize.rb\" <<END\n\thg = ENV['TM_HG'] || \"hg\"\n\tputs %x{\#{hg} remove \#{TextMate.selected_paths_for_shell}}\nEND",
|
117
|
+
input: "none",
|
118
|
+
keyEquivalent: "^M",
|
119
|
+
name: "Remove",
|
120
|
+
output: "showAsTooltip",
|
121
|
+
uuid: "0210BC81-D701-4836-A188-42D9A79F292B"},
|
122
|
+
{beforeRunningCommand: "nop",
|
123
|
+
command:
|
124
|
+
"require_cmd \"${TM_HG:=hg}\" \"If you have installed hg, then you need to either update your <tt>PATH</tt> or set the <tt>TM_HG</tt> shell variable (e.g. in Preferences / Advanced)\"\n\nif [[ -z $TM_SELECTED_FILES ]]; then\n \"$TM_HG\" revert \"$TM_FILEPATH\"\nelse\n eval \"$TM_HG\" revert $TM_SELECTED_FILES\nfi\n\n# will cause current file to be re-loaded\nrescan_project\n",
|
125
|
+
input: "none",
|
126
|
+
keyEquivalent: "^M",
|
127
|
+
name: "Revert",
|
128
|
+
output: "showAsTooltip",
|
129
|
+
uuid: "819B19AC-758D-42CB-903F-73A5EDD716BD"},
|
130
|
+
{beforeRunningCommand: "nop",
|
131
|
+
command:
|
132
|
+
"require_cmd \"${TM_HG:=hg}\" \"If you have installed hg, then you need to either update your <tt>PATH</tt> or set the <tt>TM_HG</tt> shell variable (e.g. in Preferences / Advanced)\"\n\nrevs=$(\"$TM_HG\" log -q \"$TM_FILEPATH\" \\\n\t2> >(CocoaDialog progressbar --indeterminate \\\n\t\t--title \"Revert to Revision…\" \\\n\t\t--text \"Retrieving List of Revisions…\" \\\n\t))\n\nrevs=`osascript<<END\n\tset AppleScript's text item delimiters to {\"\\n\",\"\\r\"}\n\ttell app \"SystemUIServer\"\n\t\tactivate\n\t\tset ourList to (every text item of \"$revs\")\n\t\tif the count of items in ourList is 0 then\n\t\t\tdisplay dialog \"No older revisions of file '$(basename \"$TM_FILEPATH\")' found\" buttons (\"OK\")\n\t\t\tset the result to false\n\t\telse\n\t\t\tchoose from list ourList with prompt \"Revert '$(basename \"$TM_FILEPATH\")' to revision:\"\n\t\tend if\n\tend tell\nEND`\n\n# exit if user canceled\nif [[ $revs = \"false\" ]]; then\n\tosascript -e 'tell app \"TextMate\" to activate' &>/dev/null &\texit_discard\nfi\n\n\nrevs=`echo \"$revs\" | tr '\\r' '\\n' | cut -d \":\" -f 1`\nrevs=( $revs )\n\nif [[ -z $TM_SELECTED_FILES ]]; then\n \"$TM_HG\" revert -r \"${revs[0]#r}\" \"$TM_FILEPATH\"\nelse\n eval \"$TM_HG\" revert -r \"${revs[0]#r}\" $TM_SELECTED_FILES\nfi\n\n# will cause current file to be re-loaded\nrescan_project\n\n",
|
133
|
+
input: "none",
|
134
|
+
keyEquivalent: "^M",
|
135
|
+
name: "Revert to Revision...",
|
136
|
+
output: "showAsTooltip",
|
137
|
+
uuid: "59DD3EDA-43DB-4819-8C50-CCBBEED5B0F7"},
|
138
|
+
{beforeRunningCommand: "nop",
|
139
|
+
command:
|
140
|
+
"require_cmd \"${TM_HG:=hg}\" \"If you have installed hg, then you need to either update your <tt>PATH</tt> or set the <tt>TM_HG</tt> shell variable (e.g. in Preferences / Advanced)\"\n\nif [[ -d \"$TM_PROJECT_DIRECTORY\" ]]\n then export WorkPath=\"$TM_PROJECT_DIRECTORY\"; cd \"$TM_PROJECT_DIRECTORY\"\n else export WorkPath=\"$TM_DIRECTORY\"; cd \"$TM_DIRECTORY\"\nfi\n\nexport CommitWindow=\"$TM_SUPPORT_PATH/bin/CommitWindow.app/Contents/MacOS/CommitWindow\"\n\n# show it..\n\n\"${TM_RUBY:-ruby}\" -r \"$TM_SUPPORT_PATH/lib/shelltokenize.rb\" <<END\n\thg = ENV['TM_HG'] || \"hg\"\n\tputs %x{\#{hg} status --debug \#{TextMate.selected_paths_for_shell} 2>&1|\"${TM_RUBY:-ruby}\" -KU -- \"${TM_BUNDLE_SUPPORT}/format_status.rb\" \"--status\"}\nEND\n\n",
|
141
|
+
input: "none",
|
142
|
+
keyEquivalent: "^M",
|
143
|
+
name: "Status",
|
144
|
+
output: "showAsHTML",
|
145
|
+
uuid: "ED977BA9-3604-4EC9-999B-39C588CD4801"},
|
146
|
+
{beforeRunningCommand: "nop",
|
147
|
+
command:
|
148
|
+
"require_cmd \"${TM_HG:=hg}\" \"If you have installed hg, then you need to either update your <tt>PATH</tt> or set the <tt>TM_HG</tt> shell variable (e.g. in Preferences / Advanced)\"\n\n$TM_HG rollback",
|
149
|
+
input: "none",
|
150
|
+
keyEquivalent: "^M",
|
151
|
+
name: "Undo",
|
152
|
+
output: "showAsTooltip",
|
153
|
+
uuid: "11743544-9E2A-49BF-BA5D-655EAD6445AA"},
|
154
|
+
{beforeRunningCommand: "nop",
|
155
|
+
command:
|
156
|
+
"require_cmd \"${TM_HG:=hg}\" \"If you have installed hg, then you need to either update your <tt>PATH</tt> or set the <tt>TM_HG</tt> shell variable (e.g. in Preferences / Advanced)\"\n\nif [[ -d \"$TM_PROJECT_DIRECTORY\" ]]\n then export WorkPath=\"$TM_PROJECT_DIRECTORY\"; cd \"$TM_PROJECT_DIRECTORY\"\n else export WorkPath=\"$TM_DIRECTORY\"\nfi\n\n\ncd \"${TM_PROJECT_DIRECTORY:-$TM_DIRECTORY}\"\n\"${TM_RUBY:-ruby}\" -- \"${TM_BUNDLE_SUPPORT}/hg_update.rb\"\n\n\n\n# will cause current file to be re-loaded\nrescan_project",
|
157
|
+
input: "none",
|
158
|
+
keyEquivalent: "^M",
|
159
|
+
name: "Update",
|
160
|
+
output: "showAsHTML",
|
161
|
+
uuid: "B797AE83-EABD-4BB7-AD20-0FB24F824343"},
|
162
|
+
{beforeRunningCommand: "nop",
|
163
|
+
command:
|
164
|
+
"require_cmd \"${TM_HG:=hg}\" \"If you have installed hg, then you need to either update your <tt>PATH</tt> or set the <tt>TM_HG</tt> shell variable (e.g. in Preferences / Advanced)\"\n\nif [[ -d \"$TM_PROJECT_DIRECTORY\" ]]\n then export WorkPath=\"$TM_PROJECT_DIRECTORY\"; cd \"$TM_PROJECT_DIRECTORY\"\n else export WorkPath=\"$TM_DIRECTORY\"; cd \"$TM_DIRECTORY\";\nfi\n\nrevs=$(\"$TM_HG\" log -q \"$TM_FILEPATH\" \\\n\t2> >(CocoaDialog progressbar --indeterminate \\\n\t\t--title \"View Revision…\" \\\n\t\t--text \"Retrieving List of Revisions…\" \\\n\t))\n\nrevs=`osascript<<END\n\tset AppleScript's text item delimiters to {\"\\n\",\"\\r\"}\n\ttell app \"SystemUIServer\"\n\t\tactivate\n\t\tset ourList to (every text item of \"$revs\")\n\t\tif the count of items in ourList is 0 then\n\t\t\tdisplay dialog \"No older revisions of file '$(basename \"$TM_FILEPATH\")' found\" buttons (\"OK\")\n\t\t\tset the result to false\n\t\telse\n\t\t\tchoose from list ourList with prompt \"View older revision of '$(basename \"$TM_FILEPATH\")':\"\n\t\tend if\n\tend tell\nEND`\n\n# exit if user canceled\nif [[ $revs = \"false\" ]]; then\n\tosascript -e 'tell app \"TextMate\" to activate' &>/dev/null &\texit_discard\nfi\n\nrevs=`echo \"$revs\" | tr '\\r' '\\n' | cut -d \":\" -f 1`\nrevs=( $revs )\n\nFILENAME=\"/tmp/rev${revs[0]}-$TM_FILENAME\"\n\n\"$TM_HG\" cat -r${revs[0]} --output \"$FILENAME\" \"$TM_FILEPATH\"\nopen -a \"TextMate\" \"$FILENAME\"\n",
|
165
|
+
input: "none",
|
166
|
+
keyEquivalent: "^M",
|
167
|
+
name: "View Revision...",
|
168
|
+
output: "discard",
|
169
|
+
uuid: "83F27190-D52F-414C-8AC8-7ED3ADAF2FC6"},
|
170
|
+
{beforeRunningCommand: "nop",
|
171
|
+
command:
|
172
|
+
"require_cmd \"${TM_HG:=hg}\" \"If you have installed hg, then you need to either update your <tt>PATH</tt> or set the <tt>TM_HG</tt> shell variable (e.g. in Preferences / Advanced)\"\n\n\nif [[ -d \"$TM_PROJECT_DIRECTORY\" ]]\n then export WorkPath=\"$TM_PROJECT_DIRECTORY\"; cd \"$TM_PROJECT_DIRECTORY\"\n else export WorkPath=\"$TM_DIRECTORY\"; cd \"$TM_DIRECTORY\"\nfi\n \n: ${TM_RUBY:=ruby}\nFORMAT_LOG=\"${TM_BUNDLE_SUPPORT}/format_log.rb\"\nHG_STYLE=\"${TM_BUNDLE_SUPPORT}/map-incoming.changelog\"\n\n\n\"$TM_HG\" incoming -v --style \"$HG_STYLE\" 2>&1 |\"$TM_RUBY\" -- \"$FORMAT_LOG\" \"--in\"\n",
|
173
|
+
input: "none",
|
174
|
+
keyEquivalent: "^M",
|
175
|
+
name: "incoming",
|
176
|
+
output: "showAsHTML",
|
177
|
+
uuid: "C8F5F526-4ED5-4E75-A0D1-D9B5143B20EE"},
|
178
|
+
{beforeRunningCommand: "nop",
|
179
|
+
command:
|
180
|
+
"require_cmd \"${TM_HG:=hg}\" \"If you have installed hg, then you need to either update your <tt>PATH</tt> or set the <tt>TM_HG</tt> shell variable (e.g. in Preferences / Advanced)\"\n\n\nif [[ -d \"$TM_PROJECT_DIRECTORY\" ]]\n then export WorkPath=\"$TM_PROJECT_DIRECTORY\"; cd \"$TM_PROJECT_DIRECTORY\"\n else export WorkPath=\"$TM_DIRECTORY\"; cd \"$TM_DIRECTORY\"\nfi\n \n: ${TM_RUBY:=ruby}\nFORMAT_LOG=\"${TM_BUNDLE_SUPPORT}/format_log.rb\"\nHG_STYLE=\"${TM_BUNDLE_SUPPORT}/map-log.changelog\"\n\n\n\"$TM_HG\" outgoing -v --style \"$HG_STYLE\" 2>&1 |\"$TM_RUBY\" -- \"$FORMAT_LOG\" \"--out\"\n",
|
181
|
+
input: "none",
|
182
|
+
keyEquivalent: "^M",
|
183
|
+
name: "outgoing",
|
184
|
+
output: "showAsHTML",
|
185
|
+
uuid: "25A113EB-AA3B-40F0-B30E-ED2C2F9866C0"}]
|