1375 Commits

Author SHA1 Message Date
Ville Skyttä
8346a428fc Add "short" tarball extensions to unxz, unlzma etc completions. 2010-06-21 23:32:22 +03:00
Freddy Vulto
a2fcc654e8 Refactored _filedir code to _quote_readline_by_ref
See also: http://www.mail-archive.com/bash-completion-devel@lists.alioth.debian.org/msg01944.html
2010-06-18 18:28:54 +02:00
Freddy Vulto
94372b2aa6 Merge branch 'use-_get_comp_words_by_ref' 2010-06-10 23:51:30 +02:00
Freddy Vulto
0118ccb05a Remove verbose options from `_upvars'. 2010-06-10 00:03:07 +02:00
Freddy Vulto
a8dd58cfa9 Added _upvars' and _upvar'.
These helper methods aid in passing variables by reference.
2010-06-09 22:37:02 +02:00
Ville Skyttä
cdbfd8e224 Split ifup and ifdown completions into contrib/ifupdown. 2010-06-09 22:53:43 +03:00
Ville Skyttä
887361302b Split ipsec completion into contrib/ipsec. 2010-06-09 22:50:33 +03:00
Ville Skyttä
3f1f6120d7 Split killall, pkill, pgrep and related completions into contrib/procps. 2010-06-09 22:47:42 +03:00
Ville Skyttä
77af9f50d3 Split kill, look, and renice completions into contrib/util-linux. 2010-06-09 22:41:01 +03:00
Ville Skyttä
bf0ec3ce0e Split chown, chgrp, and id completions into contrib/coreutils. 2010-06-09 22:33:25 +03:00
Ville Skyttä
6068efc01f Split service completion into contrib/service. 2010-06-09 22:19:05 +03:00
Ville Skyttä
c6697f91e3 Add *.s3db and *.sdb completions for sqlite3. 2010-06-07 00:09:44 +03:00
Peter Collingbourne
ce664f47f1 It is common to name sqlite3 databases as *.sqlite3 at least in the Ruby world 2010-06-07 00:06:31 +03:00
Ville Skyttä
eded5995a2 Complete modplug123 on same files as modplugplay. 2010-06-06 22:30:38 +03:00
Ville Skyttä
9566f5994a Add *.oxt (OpenOffice.org extension) to unzip/zipinfo completions. 2010-06-06 21:18:57 +03:00
Freddy Vulto
876c8e26c1 Prevent root PATH expansion proliferating
The PATH expansion done in `_root_command()':

    PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin _command $1 $2 $3

stayed effective with bash >= 4.1.4 running in posix mode, causing PATH to grow
ever larger when doing sudo completions.  This is now fixed.

To run the automated test:

    ./run ./completion/sudo.exp

See also:
- http://www.mail-archive.com/bug-bash@gnu.org/msg06942.html
- bash patch: bash41-004
2010-05-26 22:57:08 +02:00
Ville Skyttä
80e33a1512 Make xine based players complete on *.tp and *.ts. 2010-05-23 09:46:56 +03:00
Ville Skyttä
6a9c8f1d9b Complete on *.fxm (JavaFX video) with xine based players and mplayer. 2010-05-18 23:54:22 +03:00
Ville Skyttä
5022808775 Fix MAC address completion. 2010-05-11 00:35:45 +03:00
Ville Skyttä
310eb69245 Add wol(1) completion.
May need a bit of work, see failing test case ("wol 00:").
2010-05-10 00:57:16 +03:00
Mark van Rossum
cb577d3dd2 Add basic lyx completion. 2010-05-09 21:28:27 +03:00
Ville Skyttä
14f2393024 Do meta-command completion for aoss and padsp. 2010-05-09 12:12:06 +03:00
Ville Skyttä
d73afeb1f4 Add FLAC files to xine based player completions. 2010-04-29 00:09:18 +03:00
Ville Skyttä
734cdcdc1e Split rmmod, insmod etc completion to contrib/module-init-tools. 2010-04-29 00:06:24 +03:00
Freddy Vulto
827ad88ebb (testsuite) Expand PATH with 'sbin' directories
This allows for testing completions of system administrator commands,
which are installed via the same PATH expansion in
`bash_completion.have()'
2010-04-22 22:22:50 +02:00
Ville Skyttä
da990d18d9 Use generic long option instead of HTML file completion for curl. 2010-04-21 23:45:39 +03:00
Ville Skyttä
e270eb18e3 Improve filesystem type completions. 2010-04-21 19:07:17 +03:00
Ville Skyttä
855edbfdb7 wget does use filenames (e.g. with -O) (Alioth: #312458). 2010-04-13 18:41:17 +03:00
Freddy Vulto
6a6cab1179 Fixed comment now that we support bash >= 3.2.0 2010-04-10 12:27:36 +02:00
Freddy Vulto
50824f909d Move _filedir fix to _quote_readline_by_ref. 2010-04-10 12:22:19 +02:00
Guillaume Rousse
c953606fd2 extend previous fix for directory completion too 2010-04-06 21:30:07 +02:00
Guillaume Rousse
5a29589fca fix _filedir completion for path with non-ascii chars, by evaluating the result of _quote_readline_by_ref 2010-04-03 21:42:13 +02:00
Guillaume Rousse
35c795bdbb ensure offset is computed correctly in multibytes locales 2010-04-03 19:10:13 +02:00
Ville Skyttä
dda8896d0c cdiff can show compressed diffs. 2010-04-02 09:37:39 +03:00
Ville Skyttä
f48ca28b99 Improve/compact ungzip and gunzip globs. 2010-03-30 22:15:20 +03:00
Ville Skyttä
ac7ed92f52 Add *.taz support for gzip/gunzip. 2010-03-30 22:11:24 +03:00
Ville Skyttä
81d3c689a5 Speed up process name completion. 2010-03-30 20:49:43 +03:00
Ville Skyttä
0271e15695 Do basic text editor completion with xemacs, sxemacs, kate, and kwrite. 2010-03-24 00:33:42 +02:00
Ville Skyttä
5064875616 Remove duplicate basic pattern for emacs only, use same as other text editors. 2010-03-24 00:30:41 +02:00
Guillaume Rousse
0098435c71 rename _get_command to _get_first_arg, and move it to main file, as it is a generic utility function 2010-03-14 19:27:40 +01:00
Freddy Vulto
f894f07500 Fix comment 2010-03-14 11:21:56 +01:00
Freddy Vulto
bdca37a7bf Improve _get_comp_words_by_ref to return words' and cword'
Usage: _get_comp_words_by_ref [OPTIONS] [VARNAMES]
Available VARNAMES:
    cur         Return cur within varname "cur"
    prev        Return prev within varname "prev"
    words       Return words within varname "words"
    cword       Return cword within varname "cword"

Available OPTIONS:
    -n EXCLUDE  Characters out of $COMP_WORDBREAKS which should NOT be
                considered word breaks. This is useful for things like scp
                where we want to return host:path and not only path, so we
                would pass the colon (:) as -n option in this case.  Bash-3
                doesn't do word splitting, so this ensures we get the same
                word on both bash-3 and bash-4.
    -c VARNAME  Return cur within specified VARNAME
    -p VARNAME  Return prev within specified VARNAME
    -w VARNAME  Return words within specified VARNAME
    -i VARNAME  Return words within specified VARNAME

Example usage:

   $ _get_comp_words_by_ref -n : cur prev
2010-03-14 11:07:13 +01:00
Ville Skyttä
acfa7eef3b Simplify wine extension glob. 2010-03-12 18:16:48 +02:00
Austin English
f66e87ffb7 Make lookup of wine file completions case insensitive. 2010-03-12 18:14:57 +02:00
Freddy Vulto
caaf58859a Undo commit 00560a88 ("_filedir: bash > 4 has the same behaviour
regardless of $cur beginning with ' or not"), because this is failing
tests:

    FAIL: completing f a\'b/ should return i
    FAIL: completing f a\"b/ should return i
    FAIL: f a\$b/ should show completions
    FAIL: f a\\b/ should show completions
    FAIL: completing f2 a\'b/ should return i
    FAIL: completing f2 a\"b/ should return i
    FAIL: f2 a\$b/ should show completions
    FAIL: f2 a\\b/ should show completions

- Fix _filedir to check for availability of COMP_WORDS (_filedir runs from
  within a completion instead of the command line) when doing a `complete -p
  ${COMP_WORDS[0]'
- Fix _filedir usage comment
- Enhanced _filedir tests
- Added _filedir test "completing with filter '.e1' should show completions"
2010-03-12 13:41:53 +01:00
David Paleino
8755f716fc Merge branch 'master' of git+ssh://git.debian.org/git/bash-completion/bash-completion 2010-03-08 12:38:33 +01:00
Ville Skyttä
314cc0f13a Drop support for bash < 3.2. 2010-03-06 14:24:57 +02:00
Ville Skyttä
bc6f14445f Do basic diff/patch completion with cdiff and kompare. 2010-03-06 14:05:41 +02:00
Ville Skyttä
72a8cb5b49 Add -H, -L, and -P to chown and chgrp option completions with -R/--recursive. 2010-02-12 17:52:56 +02:00
Crestez Dan Leonard
ebdd9cefdc Merge branch 'space-fix': Fix tests when BASH_COMPLETION or TESTDIR contain
spaces.

Conflicts:
	CHANGES
2010-02-09 15:45:40 +02:00