Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Dec 18, 2011
  1. @wincent

    Update docs for 1.3.1 release

    wincent authored
    Signed-off-by: Wincent Colaiuta <win@wincent.com>
  2. @woahdae @wincent

    Fix CommandTJump under Ruby 1.9.x

    woahdae authored wincent committed
    The jump scanner pulls in a string jumplist. This worked fine under Ruby
    1.8.7, where `String#select` operates in a line-wise fashion. Under Ruby
    1.9.x, however, it's a private method and explodes. Using `String#lines`
    instead makes things work on both Rubies.
    
    Signed-off-by: Wincent Colaiuta <win@wincent.com>
Commits on Nov 28, 2011
  1. @wincent

    Update docs for 1.3 release

    wincent authored
    Signed-off-by: Wincent Colaiuta <win@wincent.com>
Commits on Nov 26, 2011
  1. @wincent

    Merge branch 'jump-list'

    wincent authored
    * jump-list:
      Refactor "redir" code to use new "capture" method
      Use lazy-initialization in controller
      Minor stylistic clean-up for jump finder
      Make it possible to select file from jump list
  2. @wincent

    Refactor "redir" code to use new "capture" method

    wincent authored
    As there are now two places in the code where we have to use "redir" to
    capture the output of a Vim command, factor it out into a method that
    can be easily reused for that purpose.
    
    Signed-off-by: Wincent Colaiuta <win@wincent.com>
  3. @wincent

    Use lazy-initialization in controller

    wincent authored
    We now have three finders (file, buffer and jumplist), so it's starting
    to smell to create them all up front, especially given that some users
    won't ever use anything other than the file finder.
    
    So, switch to lazy initialization.
    
    Signed-off-by: Wincent Colaiuta <win@wincent.com>
  4. @wincent

    Minor stylistic clean-up for jump finder

    wincent authored
    Tweaks to bring the jump finder code into line with the conventions of
    the rest of the code base:
    
      - add a little more detail to the :CommandTJump documentation
      - add Marian Schubert to contributors list
      - alphabetize finder methods in command-t.vim file
      - move getJumpsLines functionality down into Ruby; in general the
        VimScript portion of the plug-in is intended to be a thin wrapper
        only, and all the real work is done from Ruby
      - use "jump" singular rather than plural, because Vim calls it the
        "jumplist" and the other finders all use the singular ("buffer
        finder", "file finder" and not "buffers finder" and "files finder")
      - align equals signs in consecutive assignment statements
      - update copyright year ranges
      - annotate "end" statements for classes and modules
      - make private methods private
    
    Signed-off-by: Wincent Colaiuta <win@wincent.com>
  5. @maio @wincent

    Make it possible to select file from jump list

    maio authored wincent committed
Commits on Nov 6, 2011
  1. @wincent

    Record and restore window widths

    wincent authored
    Previously we stored and restored only window heights. It's been pointed
    out, however, that when using Command-T Vim will reset horizontal sizes
    for vertically-split windows as well, so we need to store and restore
    window widths as well.
    
    Based on patch posted by anonymous submitter here:
    
      https://wincent.com/issues/1896
    
    Signed-off-by: Wincent Colaiuta <win@wincent.com>
Commits on Oct 19, 2011
  1. @wincent

    doc: update contributor list

    wincent authored
    Signed-off-by: Wincent Colaiuta <win@wincent.com>
  2. @wincent

    docs: use nnoremap in examples

    wincent authored
    To match the mapping command used internally since commit 56d37ff.
    
    Signed-off-by: Wincent Colaiuta <win@wincent.com>
Commits on Oct 18, 2011
  1. @panozzaj

    Ensure mappings use nnoremap.

    panozzaj authored
    This fixes a bug when the user redefines : to ;
    Previously \t and \b would not work in this case.
Commits on Oct 9, 2011
  1. @wincent

    Fix possible 'rake make' breakage on Windows

    wincent authored
    I've had a report that '&&' can cause problems on Windows, so this seems
    like a harmless enough fix. See:
    
      https://wincent.com/issues/1888
    
    Signed-off-by: Wincent Colaiuta <win@wincent.com>
Commits on Sep 28, 2011
  1. @wincent
  2. @wincent

    Add g:CommandTMaxCachedDirectories option

    wincent authored
    This allows the user to specify an upper limit on the number of caches
    which Command-T will use when changing directories. The default of 1
    preserves the existing behavior, meaning that each time you change into
    a different directory, Command-T will scan it.
    
    Set to a higher number to increase the number of cached directories, or
    to 0 for no limit at all.
    
    Signed-off-by: Wincent Colaiuta <win@wincent.com>
  3. @wincent

    Use multiple path caches, keyed off directories

    wincent authored
    This is an initial, naïve implementation. All it does is store separate
    caches for each path it is asked to scan. While this works fine, before
    it can be released it needs a one key thing: people should be able to
    turn it off, or otherwise configure how many different directories
    should be cached.
    
    Note that there's no cleverness here; if you work for a while in
    directory "/foo" and later change into "/foo/bar", it scans the new
    directory rather than trying to reuse the path info that it obtained
    when scanning the first directory.
    
    Requested in:
      https://wincent.com/issues/1878
    
    Signed-off-by: Wincent Colaiuta <win@wincent.com>
Commits on Aug 31, 2011
  1. @wincent

    Teach CommandT::Stub to handle show_buffer_finder

    wincent authored
    If for some reason you didn't compile the extension before trying to use
    the buffer finder you would trigger an error because the CommandT::Stub
    class didn't implement the #show_buffer_finder method.
    
    As the number of stubbed methods has now reached three, this commit also
    includes a refactoring to eliminate the repetition in the method
    definitions.
    
    Signed-off-by: Wincent Colaiuta <win@wincent.com>
Commits on Jun 30, 2011
  1. @wincent

    Reverting lazy-initialization code, pending investigation

    wincent authored
    This commit rolls back the recently-added lazy-initialization code due
    to a report of a segfault; due to the fact that a lot of people use
    Pathogen or similar to track the HEAD of master, I'd rather be
    conservative about this and roll it back immediately, and then
    investigate. The lazy-initialization code itself has been moved onto a
    topic branch (lazy-initialization).
    
    The bug report:
    
      https://wincent.com/issues/1837
    
    Signed-off-by: Wincent Colaiuta <win@wincent.com>
  2. @wincent

    Correct Kien's name in docs and .mailmap file

    wincent authored
    Signed-off-by: Wincent Colaiuta <win@wincent.com>
Commits on Jun 29, 2011
  1. @wincent

    Update docs with reference to Kien's patch

    wincent authored
    Signed-off-by: Wincent Colaiuta <win@wincent.com>
  2. @wincent

    Fixes for lazy-initialization functionality

    wincent authored
    This commit addresses some problems with the lazy-initialization
    functionality contributed in commit 86e87ab. Specifically:
    
      - Rename Initialize function to CommandTLazyInitialize for consistency
        with all other functions (which are namespaced under "CommandT") and
        also to better describe the purpose of the function
      - Remove now-redundant "has('ruby')" check
      - Guard against repeated evaluation of the initialization function,
        which would otherwise cause a new controller instance to be created
        every time a Command-T command is run
      - Fix indentation
      - Fix bad whitespace (blank line at end of file)
    
    Signed-off-by: Wincent Colaiuta <win@wincent.com>
  3. @kien @wincent

    Move ruby startup code to script local function

    kien authored wincent committed
    Command-T takes about 320 ms to load on Vim startup. This is a lot
    considering most other plugins takes less than 1 ms. In this pull
    request I move the ruby startup code in command-t.vim to a script local
    function and only call it when user uses Command-T. With this change,
    command-t.vim takes less than 1 ms to load at Vim startup.
    
    Via:
    
      wincent#14
Commits on May 4, 2011
  1. @wincent

    Remove "install" Rake task as it is causing confusion

    wincent authored
    Looks like some people/scripts saw the "rake install" task and thought
    that was the way to install the Command-T plug-in in Vim, but it is not:
    
      carlhuda/janus#163
    
    Remove the task to avoid such confusion. People who want to install the
    Gem can still do so with "gem install command-t", which is easy enough.
    
    (And to anyone reading this commit message, note that the gem was added
    so that third-parties could access the Command-T matching algorithm from
    outside of Vim, but to get the full functionality from inside Vim, you
    must continue to install it as always, as a Vim plug-in and not as a
    gem. See the docs for how to do this.)
    
    Signed-off-by: Wincent Colaiuta <win@wincent.com>
Commits on May 1, 2011
  1. @wincent

    Update docs for 1.2.1 release

    wincent authored
    Signed-off-by: Wincent Colaiuta <win@wincent.com>
  2. @wincent

    Extract cursor movement into separate method

    wincent authored
    This is more intention-revealing.
    
    Signed-off-by: Wincent Colaiuta <win@wincent.com>
  3. @wincent

    Move cursor to selected line in match window

    Steven Moazami authored wincent committed
    In GUI Vim (eg MacVim) the cursor correctly hides, but when running in a
    terminal it does not. By moving the cursor to the currently selected
    line we at least minimize the visual distraction when it starts
    blinking (at least it draws the eye to the selected line rather than
    blinking in the upper-left corner).
    
    For related discussion see:
    
      pMongoose/Command-T@7e3e5f9
    
    It may be possible to teach some kinds of terminal, such as xterm, to
    actually hide the cursor, but that will be a task for later development:
    
      http://vim.wikia.com/wiki/Configuring_the_cursor
    
    Signed-off-by: Wincent Colaiuta <win@wincent.com>
  4. @wincent

    Rakefile: update "help" task with info about new tasks

    wincent authored
    Signed-off-by: Wincent Colaiuta <win@wincent.com>
  5. @wincent

    Fix botched commit 2328b94

    wincent authored
    We were supposed to swap the symlink and the file; ie:
    
      README.txt (real file)
      doc/command-t.txt (symlink)
    
    Was supposed to become:
    
      README.txt (symlink)
      doc/command-t.txt (real file)
    
    But we ended up adding a duplicate copy of the documentation:
    
      README.txt (symlink to doc/README.txt)
      doc/README.txt (real file)
      doc/command-t.txt (real file)
    
    This commit fixes that, removing the redundant doc/README.txt and making
    sure that doc/command-t.txt contains all recent changes.
    
    Signed-off-by: Wincent Colaiuta <win@wincent.com>
Commits on Apr 30, 2011
  1. @wincent

    Shorten description in gemspec

    wincent authored
    The long description looks terrible on the RubyGems.org website, so trim
    it down to the bare minimum.
    
    Signed-off-by: Wincent Colaiuta <win@wincent.com>
  2. @wincent

    Update docs for 1.2 release

    wincent authored
    Signed-off-by: Wincent Colaiuta <win@wincent.com>
  3. @wincent

    Add Victor Hugo Borja to the README credits

    wincent authored
    Signed-off-by: Wincent Colaiuta <win@wincent.com>
  4. @wincent

    Add 'push' task for publishing to Gemcutter

    wincent authored
    Signed-off-by: Wincent Colaiuta <win@wincent.com>
  5. @wincent

    Clarify RubyGem description

    wincent authored
    Add a paragraph explaining that Command-T is a Vim plug-in first and
    foremost, and that full functionality is only available when installed
    as a Vim plug-in, but that it is also packaged as a RubyGem so that
    third-party applications can make use of the search algorithm.
  6. @wincent

    Warn about making non-release gems

    wincent authored
    Abbreviating the full version number of an intermediate build (eg.
    "1.1b2-10-g61a374a") to the last tag (eg. "1.1b2") is evil, because it
    means we end up labelling distinct versions of the software with the
    same version number.
    
    Unfortuantely, however, it is a necessary evil because RubyGems will
    choke if passed an intermediate version number:
    
      Invalid gemspec in [command-t.gemspec]: Malformed version number string
      1.1b2-10-g61a374a
      ERROR:  While executing gem ... (NoMethodError)
          undefined method `mark_version' for nil:NilClass
          rake aborted!
    
    So, we resort to using the abbreviated, misleading version number in
    this case. We can at least mitigate this evilness by displaying a
    warning if the user ever tries to build a gem for an intermediate
    release, by adding a dependency on the ":check_tag" task.
    
    Signed-off-by: Wincent Colaiuta <win@wincent.com>
  7. @vic @wincent

    Added command-t.gemspec and :gem, :install targets to Rakefile

    vic authored wincent committed
    This will allow other applications to use Command-T ruby binding.
    Currently another app uses it besides Command-T vim plugin itself:
    
    mrT [http://github.com/vic/mrT] - Curses based file completion
                                      for the command line.
    
    Signed-off-by: Wincent Colaiuta <win@wincent.com>
Something went wrong with that request. Please try again.