Permalink
Commits on Mar 1, 2018
  1. Remove ⇧↩ keybinding from “New Method” trigger.

    noniq committed Mar 1, 2018
    I only ever hit this by accident.
Commits on Feb 13, 2018
  1. Improve `do … end` snippet for usage without block variable.

    noniq committed Feb 13, 2018
    With this change, a block without block variable can be generated by simply pressing tab twice. (Previously, you had to delete the suggested block variable.)
    
    I you DO want to have block variables, you can still simply start typing after pressing tab once, and the variable name(s) you type will still automatically be surrounded with `|…|`. This is now a bit more unintuitive, though.
Commits on Aug 17, 2017
Commits on Aug 5, 2017
  1. Allow `0` to get constant.numeric.integer scope

    infininight committed Aug 5, 2017
    The rubyspec isn't actually clear if this is a octal or not, but the ISO spec says it is an integer.
  2. Merge pull request #112 from die-antwort/fix-executable-find-from-oth…

    noniq committed Aug 5, 2017
    …er-bundle
    
    Fix `Executable.find` with RVM when used from other bundle.
Commits on Aug 3, 2017
  1. Remove obsolete test.

    noniq committed Aug 3, 2017
    Actually, after the previous commit the code in executable.rb does no longer use `ENV['TM_BUNDLE_SUPPORT']` at all, so we can simplify the test setup and also remove one test case completely.
Commits on Aug 2, 2017
  1. Fix `Executable.find` with RVM when used from other bundle.

    noniq committed Aug 2, 2017
    If the Ruby bundle is not the primary bundle but used from another bundle (by declaring a dependency), `$TM_BUNDLE_SUPPORT_PATH` will point to that bundle’s support directory. This lead to a wrong path being generated for the `rvw_wrapper` script in these cases. See rspec/rspec.tmbundle#108 for an example.
Commits on Jun 12, 2017
  1. Remove keybinding for “Validate Syntax“

    noniq committed May 2, 2017
    I use RuboCop for that.
  2. Use ^⌘E for “Execute Line / Selection as Ruby”.

    noniq committed Feb 26, 2014
    The default (^⇧E) overrides “Select to EOL”.
  3. Use ⇧^H for “Documentation for Word”.

    noniq committed Feb 23, 2014
    ^H now used by DashMate. Also mention ri in command name.
  4. Make Ctrl-" toggle only between single and double quotes.

    noniq committed Aug 2, 2012
    Treat %Q{...} as one of the 'more esoteric quote styles' (i.e. convert it to double quotes if Ctrl-" is used on it.
Commits on Jun 4, 2017
Commits on May 30, 2017
  1. Add moreInfoURL to Reformat Document

    infininight committed May 30, 2017
    This will provide a link to the Rubocop homepage when not installed.
  2. Add grammar file specific to Gemfiles

    caleb531 authored and infininight committed Mar 18, 2017
    This allows matching additional methods that are only active in Gemfiles and would be objectionable if matched in standard ruby scripts.
  3. Add ruby_executable_hooks to hashbang recognition

    Alhadis authored and infininight committed Apr 28, 2017
    Adds the name of another executable to the grammar's hashbang-recognition pattern.
    
    The executables generated by RubyGems use this as their first line:
    
        #!/usr/bin/env ruby_executable_hooks
    
    Since the files have no extension, there's nothing to activate the grammar.
  4. Support ruby version numbers in hashbang lines

    infininight committed May 30, 2017
    Ex:
    
    		#!/usr/bin/env ruby18 -KU
  5. Extend recognition of modelines and hashbangs

    Alhadis authored and infininight committed Sep 29, 2016
    Supports both emacs and vim types of modelines.
  6. Reformat Document: Support additional flags

    sanssecours authored and infininight committed Apr 20, 2017
    You can now specify additional RuboCop options by setting the
    environment variable `TM_RUBOCOP_OPTIONS`. For a description of this
    feature, please take a look at the section “Additional Options” in the
    Help document (“Bundles” → “Ruby” → “Help”).
  7. Add help document

    sanssecours authored and infininight committed Jul 25, 2016
    Currently with help for the new Reformat Document command.
  8. Add command: Reformat Document (⌃⇧H)

    sanssecours authored and infininight committed Jun 3, 2016
    The new command “Reformat Document” formats the current document using
    the `--auto-correct` option of [RuboCop][]. It also shows information
    about the formatting status in a floating tooltip. The command displays
    the information about the formatting status either as black text only,
    or as colorful text if [aha][] is accessible via `$PATH`.
    
    [aha]: https://github.com/theZiz/aha
    [RuboCop]: https://github.com/bbatsov/rubocop
  9. Add filetype jb

    milligramme authored and infininight committed Jan 31, 2017
    Support .jb file [amatsuda/jb: A simple and fast JSON API template engine for Ruby on Rails](https://github.com/amatsuda/jb)
Commits on May 2, 2017
  1. Remove keybinding for “Validate Syntax“

    noniq committed May 2, 2017
    I use RuboCop for that.
Commits on Jan 29, 2017
  1. Implement `RubyUtils.find_executable`

    noniq authored and sorbits committed Aug 18, 2016
Commits on Sep 26, 2016
Commits on Sep 6, 2016
  1. Decrease indent when line contains ‘})’

    sorbits committed Sep 6, 2016
    This would be for code like the following:
    
    	some_method(arg1, {
    	  :key => value
    	})