32 Commits

Author SHA1 Message Date
Ville Skyttä
a958ccde50 perldoc: Add some option arg completions, use _parse_help. 2011-11-25 20:00:23 +02:00
Ville Skyttä
0d10b94e7a Move Emacs indentation settings from every file to .dir-locals.el. 2011-11-01 22:14:45 +02:00
Ville Skyttä
20c05b43b6 Load completions in separate files dynamically, get rid of have(). 2011-10-12 00:19:50 +03:00
Ville Skyttä
bc6fb7d711 perldoc: Use perldoc itself instead of man. 2011-05-08 23:15:56 +03:00
Ville Skyttä
923e20fd74 perldoc: Don't parse man page when we know it'll produce no completions. 2011-05-08 23:00:22 +03:00
David Paleino
4632248cbb Get rid of $BASH_COMPLETION as well 2011-05-02 19:04:24 +02:00
David Paleino
43728af423 Get rid of BASH_COMPLETION_DIR and BASH_COMPLETION_HELPERS_DIR 2011-05-02 18:37:49 +02:00
David Paleino
5961c3b8cd Layout change: everything is now in /usr/share/bash-completion/, rather than in /etc/. 2011-05-02 17:01:23 +02:00
Ville Skyttä
1b85a1bf58 Treat arguments starting with . or ~ as paths where that check is done. 2011-04-24 19:35:42 +03:00
Ville Skyttä
9f45e81e65 Drop no longer needed _compopt_o_filenames().
Use compopt -o filenames directly instead.
2011-04-21 12:33:05 +03:00
Ville Skyttä
e3ca91b986 Use _init_completion() in completions/p*. 2011-04-20 23:13:29 +03:00
Scott Bronson
f1b9580b35 Override MANPAGER when generating perldoc completions (RedHat: #689180). 2011-04-09 12:15:40 +03:00
Ville Skyttä
ee43b22f9b Use += to append to arrays and strings.
It's easier on the eye and faster than foo=( "${foo[@]}" ... ).
2011-04-06 20:39:21 +03:00
Ville Skyttä
9af6f3504e Abort completion file loading earlier if required commands are not available.
Cuts ~10% from bash completion load time on two different systems I
just tested.
2011-04-05 00:37:55 +03:00
Ville Skyttä
94c51fc36e Coding style consistency tweaks. 2011-04-04 23:48:22 +03:00
Ville Skyttä
8aed79dd3e Avoid some unnecessary command invocations. 2011-03-21 19:23:57 +02:00
Ville Skyttä
5792ac8760 Try harder to find the correct perl executable to run the perl helper with.
It is now run explicitly with *some* perl executable.
2011-02-10 21:57:38 +02:00
Ville Skyttä
76cf12bc19 Add perl -d: completion. 2010-11-19 22:12:46 +02:00
Ville Skyttä
e9bf8773ec Add perl -V completion. 2010-11-19 22:12:43 +02:00
Ville Skyttä
43ec91619d Add perl -m-/-M- completion. 2010-11-19 22:11:48 +02:00
Ville Skyttä
ee1374f70b Add some perl option non-completions. 2010-11-19 22:10:46 +02:00
Ville Skyttä
2f0948083d Invoke perl module completion with the perl executable being completed. 2010-11-19 21:57:38 +02:00
Ville Skyttä
42589ab9dc Simplify perldoc _filedir arg. 2010-11-19 21:54:53 +02:00
Guillaume Rousse
2b6f8de738 drop -o nospace option (fix #312831) 2010-11-16 22:32:13 +01:00
Ville Skyttä
53062bbae2 Don't bother passing unused arg to _perlmodules(). 2010-11-16 22:59:36 +02:00
Ville Skyttä
5b8596231c Fix perl module colon completion trimming. 2010-11-16 22:47:31 +02:00
Guillaume Rousse
4254f3a4a5 Switch back to a shell completion function for perl and perldoc
completions, using an external helper just for functions and modules
completions. This is overally slower, as our helper outputs all available
modules at once, rather than just one piece of namespace, but this is
more in line with other completions
2010-11-07 20:01:41 +01:00
Guillaume Rousse
fd8ade0077 rename perldoc helper to perl, as it is now a generic perl completion
handler, and use it for perl completion as well
2010-11-07 01:15:02 +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
Freddy Vulto
ef8b4f2722 Fix perldoc completions to run without invoking autotools
Alioth #312729

See also:
http://www.mail-archive.com/bash-completion-devel@lists.alioth.debian.org/msg02143.html
2010-10-31 23:20:19 +01:00
Ville Skyttä
3d8efed618 Fixes to completions for filenames containing tabs (RedHat: #629518). 2010-10-04 20:49:17 +03:00
Guillaume Rousse
cb7fc2f7c4 rename 'contrib' directory to 'completions' 2010-09-12 16:42:21 +02:00