Permalink
Switch branches/tags
Nothing to show
Commits on Aug 7, 2016
  1. Support multiple leading non-alpha chars for camelCase to snake_case

    Previously we only supported a single one, e.g. __foo_bar was turned into _fooBar (losing one leading underscore).
    sorbits committed Aug 7, 2016
Commits on Jun 14, 2016
  1. Support underscore prefix when toggling _camelCase to _snake_case

    The support is for arbitrary prefixes but since cycling from snake_case would eat the underscores, it meant that previously the transformation could not be undone by continuing the cycling.
    
    This commit changes the ruby requirement to 2.0 but almost 99% of TextMate users are now on OS X 10.9 or higher (according to software update checks).
    sorbits committed Jun 14, 2016
Commits on May 31, 2016
  1. Comments: Exclude from Paragraph Selection

    This sets excludeFromParagraphSelection to true for comment.line scope.
    
    Previously when reformatting paragraph comment lines were selected as paragraph
    lines, this have led to mixing comment content into reformatted paragraph
    content breaking the syntax of reformatted code, eg.:
    
      some very long ... line of text
      # some comment
      some other long ... line of text
    
    As an effect we got:
    
      some very long ...
      ... text # some comment some other ...
      ... line of text
    
    The problem described above was especially visible when using ⌃Q to Reformat
    block of Git commit message, when below of the typed text there was a Git
    default comment. Also this problem could be noticeable by authors using LaTeX.
    
    Doing Select Paragraph ⌃⌥P again will select the comment as well.
    nanoant committed May 31, 2016
Commits on Mar 31, 2016
  1. Include leading whitespace when reformatting comments

    Due to changes made to grammars a while back we no longer scope the whitespace preceding a comment as a comment but rather punctuation.whitespace. This change includes the whitespace in the command to better reformat the comments.
    infininight committed Mar 31, 2016
Commits on Sep 8, 2015
  1. Revert: Don't enable spell checking for strings in embedded code.

    This was causing more confusion from people desiring spell checking than it solved for those originally requesting the feature, removed for clarity. It can easy be re-added by those wanting this behavior.
    
    This reverts commit e3c3e64.
    infininight committed Sep 8, 2015
Commits on Jul 30, 2015
Commits on Mar 26, 2015
  1. Make Insert Block Comment work with discontinuous selections

    This only works when none of the discontinuous selections contain newlines.
    sorbits committed Mar 26, 2015
Commits on Aug 16, 2014
  1. Use latest version of ruby rather than the shim

    This allows ruby to correctly match unicode characters when 2.0 is present. Fixes #18.
    infininight committed Aug 16, 2014
Commits on Jul 8, 2014
  1. Allow TM_COMMENT_DISABLE_INDENT to be negated

    If a bundle by default set TM_COMMENT_DISABLE_INDENT to 'yes', then it could not be disabled through use of a .tm_properties file or by the “Variables” section in the Preferences pane.
    dlh committed with infininight May 21, 2014
Commits on Jun 18, 2014
  1. Point to ruby 1.8 shim

    Using a shim allows us to catch when 1.8 of ruby is not present and provide other options.
    
    #ignore
    infininight committed Jun 18, 2014
Commits on Apr 28, 2014
  1. Strip trailing whitespace when inserting/removing comments

    Trailing whitespace can happen when removing comments from empty lines (with indented comment markers) or when the comment marker itself has whitespace and is inserted on an empty line (e.g. prefixing empty lone with ‘# ’).
    sorbits committed Apr 28, 2014
Commits on Apr 18, 2014
  1. Only change indent when pressing { or } when >1 line is selected

    The use case is code like:
    
        if(foo)
            statement;
    
    If we want to add more statements (under the if block) then we need to wrap the statement in braces but don’t want the indent changed.
    
    Likewise we may be left with a single statement in the block and prefer the non-braced version.
    sorbits committed Apr 18, 2014
Commits on Dec 27, 2013
  1. Use version 1.8 of ruby for bundle items

    10.7 and 10.8 only include ruby 1.8, so all bundle items have been written to work with that. Optionally supporting ruby 1.9 and 2.0 is problematic as these versions are not fully backwards compatible.
    
    #ignore
    infininight committed Dec 27, 2013
Commits on Jul 27, 2013
  1. Use version 1.8 of ruby for bundle items

    10.7 and 10.8 only include ruby 1.8, so all bundle items have been written to work with that. Optionally supporting ruby 1.9 and 2.0 is problematic as these versions are not fully backwards compatible.
    
    #ignore
    infininight committed Jul 27, 2013
Commits on Jul 21, 2013
  1. Limit amount of indent for soft wrapped line comments

    We now re-use the line’s indent and add at most 4 more spaces. This should avoid the bad cases with long lines causing the comment to be wrapped with a problematic small width.
    sorbits committed Jul 21, 2013
Commits on May 9, 2013
  1. Shell scripts are made executable on save

    Previously only ruby, perl, and python scripts (with a shebang) were made executable.
    sorbits committed May 9, 2013
Commits on Mar 14, 2013
  1. Typing single-quote with selection in string will wrap selection

    Normally we have single-quote disabled as a paired character for strings (and comments) but when there is a selection it’s more likely that the user wants to wrap the selection than replace selection with a single-quote character.
    sorbits committed Mar 14, 2013
  2. Disable indent corrections for quoted strings

    Previously this was only done for strings in PHP sources but it makes sense to set globally.
    sorbits committed Mar 14, 2013
Commits on Mar 13, 2013
  1. Ignore block-comments when estimating indent

    This setting was previously found in the C bundle.
    sorbits committed Mar 13, 2013
Commits on Feb 19, 2013
Commits on Feb 7, 2013
  1. Don't re-indent code as it is being commented in/out.

    When commenting or uncommenting text we want to leave the text as it is rather than indenting to the point of the first like a normal command.
    
    Fixes textmate/textmate#387, however it will require a TextMate update as this flag is not currently enabled in 2.0.
    infininight committed Feb 7, 2013
  2. Don't enable spell checking for strings in embedded code.

    We enable spell checking for strings in the source scope which allows sensible spell checking. However inside of the text scope we want to not enable these when they appear in embedded source code (eg: PHP) as it is more common to want to have spell checking enabled in text files without getting it in the source portion.
    infininight committed Feb 7, 2013
Commits on Jan 29, 2013
  1. Disable indent auto-corrections for comment blocks

    Languages do not have indent patterns that handle (block) comments, so TextMate basically never does the right thing inside these.
    
    Ideally we would also disable it for the line following the block comment (since the estimated indent there is thrown off by the block comment), but that is presently not possible. Users can disable auto-corrections for the entire file scope, should they run into this a lot.
    
    Closes textmate/textmate#721.
    sorbits committed Jan 29, 2013
Commits on Sep 30, 2012
  1. Update scope for wrap/unwrap actions

    These are now scoped so they only fire when there is a single continuous selection, as presently, they do not work for discontinuous selections.
    sorbits committed Sep 30, 2012
Commits on Sep 19, 2012
  1. Preserve selection for large selections

    If selection is larger than ARG_MAX (256 KB) then TM_SELECTED_TEXT will be set to a placeholder value.
    sorbits committed Sep 19, 2012
Commits on Sep 5, 2012
  1. New “Strip Wrap Characters” action bound to ‘]’

    This will strip a single pair of leading/trailing braces, quotes, and similar. It also works to strip an Objective-C string: @"foo" → foo.
    
    The command is only active when there is a selection.
    
    Presently no effort is done to actually ensure the stripped characters are actually balanced. It doesn’t seem like any real benefit would be derived for adding this complexity.
    sorbits committed Sep 5, 2012
Commits on Aug 16, 2012
  1. Fixed Reformat Comment to use a default value of 80 when there is no …

    …TM_COLUMNS environment variable
    DGrady committed with infininight Jan 18, 2012