Skip to content
Commits on Dec 13, 2013
  1. Basic Makefile, to either use almost as-is or convert to a simple REA…

    …DME isntead :)
    
    The point is to doc how I use this.
    committed Dec 13, 2013
  2. Add a git-grep wrapper to implement smartcase, for parity with git-vi…

    …ack in aliases
    
    I now use the following two git aliases, for example:
    
        [alias]
            ack = "grep-with-smartcase -I --perl-regexp --break --heading --line-number"
            ag  = "grep-with-smartcase -I --perl-regexp --break --heading --line-number"
    
    after symlinking git-grep-with-smartcase into my path.
    
    With that in place, git ack and git ag match the behaviour of git viack
    and git viag.
    committed Dec 13, 2013
Commits on Nov 27, 2013
  1. Ignore binary files when using git grep

    Matches the default behaviour of ag/ack.
    committed Nov 27, 2013
Commits on Nov 14, 2013
  1. Run vim with a quickfix list, preloaded pattern, and a file list

    This lets me run through the matches (:n + n or :cn) and view the list
    (:buffers or :cl) any way I please.  Note that the -q option to vim
    won't accept a list of files after it.
    committed Nov 14, 2013
  2. Unify git-viack into viack for great pattern transformation justice

    git doesn't translate Perl patterns into Vim patterns, but now git-viack
    will.
    
    To switch from the previous git-viack or a git viack alias, just
    unlink/unalias it and link to viack instead using git-viack (or
    git-vigrep).  The git command when viack is invoked as git-vi... is
    always "grep", regardless of what "..." is.
    committed Nov 14, 2013
Commits on Jul 1, 2013
  1. Easy ways to use a grep other than ack

    1. Symlink or copy viack as viag to use ag instead of ack.
    2. Export VIACK_GREP=ag to use ag instead of ack when calling viack.
    
    VIACK_GREP takes priority, then how viack was invoked, with the default
    being ack.
    committed Jul 1, 2013
  2. \\b in a pattern isn't \b

    Require the start of line or any character not a slash before a \b to be
    translated into vim's syntax.  Technically not 100% correct as it'll
    false negative on \\\b, but that's OK for now.  I haven't run into it in
    practice unlike the bug fixed by this change.
    committed Jul 1, 2013
Commits on Jul 20, 2012
  1. git viack

    This isn't really ack, of course, but it's git grep with Perl regexps and
    auto-opening files in vim +/pat.  My finger macros know viack, so git
    viack is a natural extension unlike, say, git vigrep.
    committed Jul 19, 2012
Commits on Mar 11, 2012
  1. Translate \b into \W\@= for vim

    \W\@= is vim syntax for "zero-width match on a non-word character".
    I think this works for any instance of \b, unlike \< and \> in vim which
    explicitly match start and end (respectively) of a word.
    committed Mar 10, 2012
Commits on Feb 29, 2012
  1. Naive port of viack to Perl for less crazy

    Fixes the "spaces in matched files" bug [GH #3] while I'm at it, because
    it was simple.
    committed Feb 29, 2012
Commits on Feb 28, 2012
  1. Don't open vim when there are no matches

    Fixes [GH #2].
    committed Feb 28, 2012
Commits on Jan 4, 2012
Commits on Sep 30, 2011
  1. Try to make vim's magic regex mode more like Perl's standard regexes

    The most common problematic magic characters are < and >, so we escape
    them along with a few others pulled from :help magic.
    committed Sep 30, 2011
Commits on Sep 21, 2011
  1. Add \v to the beginning of the vim regex to make it behave more like …

    …Perl's
    
    Awesome.  I've been looking for this flag forever.
    
    See http://vimdoc.sourceforge.net/htmldoc/pattern.html#/magic
    committed Sep 21, 2011
  2. viack, edit ack results in vim

    committed Sep 21, 2011
Something went wrong with that request. Please try again.