Freddy Vulto
8227e76e09
Improve __reassemble_comp_words_by_ref() (Alioth #313057 )
...
Prohibit word creation of characters if they're excluded from
$COMP_WORDBREAKS. For example, with ':' included in $COMP_WORDBREAKS,
'a b:' should split to 'b' and ':'. With ':' excluded from
$COMP_WORDBREAKS, 'a b:' should split to 'b:', NOT 'b' and ':'.
2011-03-24 00:00:58 +01:00
David Paleino
14fc9f2965
If _filedir 'ext' returns nothing, just fallback to generic file completion. Patch by Clint Byrum (Debian: #619014 , LP: #533985 )
2011-03-20 15:22:33 +01:00
Ville Skyttä
2951b16289
Bump version to 1.99.
2011-02-10 22:47:44 +02:00
David Paleino
7c81ef8954
Fix release number
2011-02-06 20:16:09 +01:00
David Paleino
a0bb238dc8
Merge branch 'master' into 1.x
2011-02-06 17:50:38 +01:00
Ville Skyttä
558920aecb
Truncate _parse_help() output options on <.
2011-02-06 15:13:45 +02:00
Ville Skyttä
ca9405710e
Add kid3 filename completion.
2011-02-06 14:46:52 +02:00
Ville Skyttä
56c12d5570
Clean up some redundant code.
2011-02-05 12:14:42 +02:00
David Paleino
99522d8ce4
Merge branch 'master' into 1.x
2011-01-29 22:32:55 +01:00
Ville Skyttä
b8ad998923
Complete runuser like su.
2011-01-29 23:30:15 +02:00
Ville Skyttä
7cf4ad9dc4
Add *.fdf to various PDF viewer completions.
2011-01-29 23:30:15 +02:00
David Paleino
8d152a2f75
Merge branch 'master' into 1.x
2011-01-16 11:36:01 +01:00
Ville Skyttä
6833d7c6a6
Add filename completion for portecle.
2011-01-16 00:30:14 +02:00
Ville Skyttä
16d5c5b333
Update copyright year.
2011-01-16 00:21:03 +02:00
David Paleino
a5e203cfe5
Merge branch 'master' into 1.x
...
Conflicts:
CHANGES
configure.ac
2011-01-09 18:19:18 +01:00
Ville Skyttä
d37b36605e
Do _filedir in _command_offset only for commands with no completions installed.
...
If we have a completion installed for the actual command invoked via
sudo etc, it is very much possible and fine that no completions are
returned from it, and doing _filedir in these cases is not the right
thing to do.
2011-01-02 23:49:58 +02:00
Ville Skyttä
0ceca807c5
Add *.apk to unzip and jar filename completions.
2010-12-16 19:59:41 +02:00
Ville Skyttä
c5957792ab
Turn on -o filenames in _command_offset() for completions that specify it.
...
We don't need to do "complete -o filenames ..." when installing
bash-completion completions any longer (they should be handled
"internally"), but there are external completions which do that and
need it in effect also when completing with nice, sudo and friends.
2010-12-13 21:33:46 +02:00
Ville Skyttä
c81b87fbd3
Make _command_offset() do the right thing with full path completions.
...
For example, "sudo /usr/sbin/useradd" completion didn't work properly,
whereas "sudo useradd" did.
2010-12-04 21:07:03 +02:00
Ville Skyttä
6934a508ef
Test for availability of compopt before invoking it in _compopt_o_filenames().
...
Invoking it there on bash < 4 may cause terminal echo to be turned off for
some weird reason (RedHat: #653669 ).
2010-11-16 21:09:23 +02:00
Ville Skyttä
8f0055553b
Add/improve various autotools completions.
2010-11-12 21:56:40 +02:00
Freddy Vulto
dfb84064a4
Fix _tilde with new _compopt_o_filenames
2010-11-03 19:55:38 +01:00
Ville Skyttä
0f450219b6
Remove most "-o filenames" options to "complete".
...
Turn it on dynamically when needed instead; see doc/styleguide.txt for
a longer explanation. This fixes many non-filename completions which
had been previously more or less broken due to unwanted
escape-as-filenames behavior.
2010-11-01 19:29:45 +02:00
Ville Skyttä
a877567477
Improve relevance of many user/group completions, depending on context.
...
_usergroup now has a -u option, and there are new _allowed_users and
_allowed_groups helpers. These can be used to limit returned users
and/or groups to ones that the user has access to (or should be
assumed to have access to if running a "root command").
I had to remove a couple of "funky user" chown test cases because for
some reason they were broken by this change, I didn't immediately find
out why, and I couldn't come up with a valid use case that should be
supported for them that would be more beneficial than the relevance
improvements in this patch.
2010-10-31 21:28:44 +02:00
Ville Skyttä
9093ae293b
Expose root command name from _root_command, add _complete_as_root helper.
2010-10-31 20:26:32 +02:00
Ville Skyttä
48438b2061
Move "compopt -o filenames" kludge to _compopt_o_filenames for easier reuse.
2010-10-31 20:14:56 +02:00
Ville Skyttä
f4c5d0c596
Add *.iso to mplayer, kaffeine, and dragon filename completions (Alioth: #311420 ).
...
xine-ui doesn't seem to support direct opening of *.iso files, so
split it and fbxine and aaxine from kaffeine and dragon completions.
2010-10-31 19:29:52 +02:00
Ville Skyttä
7d45595493
Complete known hosts from avahi-browse only if $COMP_KNOWN_HOSTS_WITH_AVAHI is non-empty.
...
This effectively turns off avahi-browse by default; doing it by
default is not worth it compared to the number of various (mostly
slowness) problems it has caused people, for example Alioth #312691
and RedHat #630326 .
Mandriva has applied a similar patch for some time already, although
their environment variable name was different ($COMP_AVAHI_BROWSE).
2010-10-25 21:47:33 +03:00
Ville Skyttä
81b916effc
Sort _command and _root_command targets.
2010-10-24 22:04:12 +03:00
Ville Skyttä
edd22493fe
Add sha{,224,256,384,512}sum _longopt completions.
2010-10-24 22:01:50 +03:00
Ville Skyttä
82c5d5e2ef
Sort _longopt targets.
2010-10-24 21:58:03 +03:00
Ville Skyttä
90f3b3dda0
Drop simple id completion, more thorough one is in completions/coreutils.
2010-10-24 21:54:13 +03:00
Ville Skyttä
b9b807e168
Drop simple passwd completion, more thorough one is in completions/shadow.
2010-10-24 21:43:48 +03:00
Ville Skyttä
5d7a13e05b
Complete MAC addresses also from /etc/ethers.
2010-10-23 22:32:06 +03:00
Ville Skyttä
1b248b5502
Make mkdir complete only on dirs.
2010-10-23 14:36:11 +03:00
Ville Skyttä
d51ad46cd2
Improve _longopt --*=, --*dir*, --*file*, and --*path* completions.
2010-10-23 14:27:15 +03:00
Ville Skyttä
768bbc7858
Turn on -o filenames automatically also with _filedir -d.
2010-10-23 14:17:49 +03:00
Ville Skyttä
57720ee0be
Treat --*path* like --*file* in _longopt().
2010-10-23 14:15:32 +03:00
Ville Skyttä
245486b6df
Add *.m2t and *.m2ts to xine-based player filename completions (Alioth: #312770 ).
2010-10-17 22:17:38 +03:00
Andrey G. Grozin
13e811b1f9
Add *.fb2 to okular filename completions.
2010-10-13 18:44:47 +03:00
Ville Skyttä
96c6416309
Make _parse_help() work with slash separated options.
2010-10-11 00:39:50 +03:00
Ville Skyttä
52bfcefb3d
Simplify _parse_help somewhat.
2010-10-11 00:38:55 +03:00
Ville Skyttä
95399f638c
Fix false posives for non-option words in _parse_help (Alioth: #312750 , Stephen Gildea).
2010-10-11 00:01:51 +03:00
Ville Skyttä
cb6a9a4dfe
Use "compgen -f" hack from _cd() instead of emulating -o filenames in _filedir().
...
See http://bugs.debian.org/272660#64 for more info about the hack.
2010-10-07 20:39:10 +03:00
Ville Skyttä
96b1594e4e
Use "compopt -o filenames" if available instead of "compgen -f" hack in _cd().
2010-10-07 20:37:06 +03:00
Ville Skyttä
4cd7c7c872
Treat *.spm as *.src.rpm.
...
Source rpms are sometimes named *.spm, e.g. in SUSE.
2010-10-07 20:05:55 +03:00
Ville Skyttä
27dab7e198
Allow setting option for creating output to parse in _parse_help().
...
Required in just added sysbench completion.
2010-10-06 00:01:00 +03:00
Freddy Vulto
e8d84b3004
Bugfix __reassemble_comp_words_by_ref
...
a b:c |<TAB> (with |=cursor) did not return `b:c' as `prev' on bash-4.1
(Alioth #312740 )
2010-10-05 21:39:58 +02:00
Ville Skyttä
1da64f602a
More known hosts IPv6 completion fixes, thanks to Yoshinori KUNIGA.
...
https://bugzilla.redhat.com/show_bug.cgi?id=630658#c4
2010-10-04 21:31:03 +03:00
Ville Skyttä
3d8efed618
Fixes to completions for filenames containing tabs (RedHat: #629518 ).
2010-10-04 20:49:17 +03:00