Commit Graph

12 Commits

Author SHA1 Message Date
Julien Nicoulaud ed7ba0a71c
Remove license header from compdefs I wrote (switching to the Zsh license) 2017-10-19 20:05:38 +02:00
Jeremy Pallats/starcraft.man 3ffbe650c1 Updating ack & ag.
* Guard both ack & ag from completing if command doesn't exist.
* Allow some opts to repeat like ignore.
* Update descriptions.
* Ack was missing some opts present in base 2.00.
* Ag cleanup based on better understanding.
2015-06-11 14:13:30 -04:00
Syohei YOSHIDA d6fdb720e2 Correct misspellings 2015-06-08 16:05:14 +09:00
Zhao Cai dab8775218 (ack) handle ack version string containing commit sha1 2013-05-10 07:05:24 -04:00
Zhao Cai d94703edf8 Update ack to work with version 2+ 2013-04-28 22:46:52 -04:00
J. Brandt Buckley dfb3eaa2f6 Use $ACKRC if set, otherwise use $HOME/.ackrc
The $ACKRC environmental variable allows a user to specify a path to his or her Ack config file. If not set, Ack looks for a file in the default location (~/.ackrc).

This update makes ack completion follow that same behavior.
2013-02-20 18:45:42 -08:00
Aaron Schrab 3f55429b0e Move modelines to end of file
Having a vim modeline or emacs local variable line somewhere in the
middle of the file isn't really helpful.  By default, vim will only
check the first and last 5 lines of a file for a modeline (assuming the
modeline option is enabled).  Emacs is even more strict about the type
of local variable line that was in use, it will only check the first
line of the file or the second line if the first line specifies a script
interpreter (which isn't the case here).

Move the vim modeline to the end of the file so that it can actually be
found by vim but is out of the way for editing.  For emacs more work is
required, convert that to the more verbose Local Variables syntax which
emacs will look for starting 3000 characters from the end of the file.

Also there is no zsh mode for emacs (according to
zsh-users/zsh-completions#75), use the "Shell-Script" mode instead.
This seems to automatically detect that the files are for zsh.

I'm not an emacs user, so I haven't tested that portion much.  But, this
does at least improve the syntax highlighting there.
2012-08-23 11:18:49 -04:00
Aaron Schrab 7b12d0beaa Ack first argument is file if --match used
Complete all non-option arguments as file names if the --match argument
is present.
2012-08-22 21:34:19 -04:00
Aaron Schrab adf4e09e0a Ack _arguments call should use -s and -S
Several single-character options may be specified in a single argument,
so -s should be used.

"--" specifies that there are no further options, so -S should be used.
2012-08-22 21:33:36 -04:00
Aaron Schrab 3a74489124 Fix binding options to their arguments for ack
Add trailing +, -, and = as appropriate in call to _arguments to specify
how arguments to options are handled.
2012-08-22 21:32:35 -04:00
Daniel Serodio f5821e8c31 Ack completion support for --invert-file-match 2012-08-14 15:04:18 -03:00
Julien Nicoulaud 10ffeb0c15 [BREAKING CHANGE] Move compdefs to own directory (to ease packaging and
avoid bloating users fpath with unneeded files such as README.md)
2012-08-01 13:23:11 +02:00