ridiculousfish
e7b22a7ed2
Factor the expander class a bit more
2015-08-08 13:55:50 -07:00
ridiculousfish
bcbe91461e
Move the "wildcard_complete" test into wildcard_test_flags_then_complete
...
Simplifies code yet further
2015-08-08 13:55:50 -07:00
ridiculousfish
b68410d619
Eliminate the wildcard_expand_internal function
2015-08-08 13:55:50 -07:00
ridiculousfish
602e9cebd9
rename FOR_COMPLETIONS to EXPAND_FOR_COMPLETIONS
...
This is yet clearer
2015-08-08 13:55:50 -07:00
ridiculousfish
d2049edcab
Slight refactoring of expander's return code implementation
2015-08-08 13:55:49 -07:00
ridiculousfish
83322f63c6
Rewrite wildcard_complete_internal to be easier to follow
2015-08-08 13:55:49 -07:00
ridiculousfish
f0a2f24701
Remove some dead code
2015-08-08 13:55:49 -07:00
ridiculousfish
97f1a8fe91
Factor the completion prefix behavior into its own function
...
In a few places, we need to add a prefix to completions that
replace the token. This change factors that logic into its
own function prepend_token_prefix.
2015-08-08 13:55:49 -07:00
ridiculousfish
0ac9f159d6
Eliminate recurse_to_subdirectories function
2015-08-08 13:55:49 -07:00
ridiculousfish
a3f8e27bf8
rename ACCEPT_INCOMPLETE to FOR_COMPLETIONS, which is clearer
2015-08-08 13:55:49 -07:00
ridiculousfish
b55c13f275
Turn on the new wildcard expander
2015-08-08 13:55:48 -07:00
ridiculousfish
761651d410
Add some expansion tests
2015-08-08 13:55:48 -07:00
ridiculousfish
70548f7cc7
Initial implementation of wildcard match refactoring
...
Not yet turned on.
2015-08-08 13:55:43 -07:00
Nicholas Maccharoli
f6ab0b4d07
Making spacing of .fish files uniform.
2015-08-08 11:22:44 -07:00
ridiculousfish
bc8a34f8df
Add a missing typecast
2015-08-08 10:35:17 -07:00
Tom Smeding
8f0cd5508d
Fix wrong max argument list size reporting
2015-08-08 10:09:33 -07:00
faho
a151c3f892
Merge pull request #2282 from leoetlino/patch-1
...
Fix a typo in the French translation file
2015-08-08 18:58:55 +02:00
Léo Lam
5b9135a698
Fix a typo in the French translation file
...
This is a non-exciting change at all -- just a quick and simple typo fix in the
fish welcome message.
2015-08-09 00:35:10 +08:00
Fabian Homborg
db5c02fbfc
abbr completions: Describe abbreviations with what they abbreviate
...
i.e. "abbr -e <TAB>" will list
am (alsamixer)
2015-08-06 20:15:36 +02:00
Mike Meyer
938da3039d
Fix extra redirection.
2015-08-06 18:43:26 +02:00
faho
cfeae48b83
Merge pull request #2267 from mwm/fossil-completions
...
Various fossil completions fixes
2015-08-06 14:04:53 +02:00
Fabian Homborg
50f18ddaad
Cower: Enable description and ignore errors when search string is too short
2015-08-06 12:57:40 +02:00
Fabian Homborg
2874650802
gpg: Fix key/user id completion
...
This was too simplistic, among other things it completed things that
looked like key ids but weren't, didn't turn "\x3a" back into
colons (which made the argument invalid)....
gpg is weird.
Might fix #2150
2015-08-05 22:38:42 +02:00
Fabian Homborg
1271de321e
gpg: send-keys takes a key id, not a user id
2015-08-05 22:36:12 +02:00
Fabian Homborg
a265ee6f6f
gpg completion: Add "-k", don't append "," so much
2015-08-05 21:59:58 +02:00
Fabian Homborg
e196203320
Add completion for systemd's timedatectl
2015-08-05 17:45:36 +02:00
Fabian Homborg
33d062cb60
pacman completion: Offer "command-options" first
2015-08-05 17:43:15 +02:00
Fabian Homborg
53bcd4b1ab
Add iptables completion
...
This is far from perfect, but I need to gather more feedback.
2015-08-05 17:41:14 +02:00
Fabian Homborg
385f961b29
systemctl: Add new options from 220
2015-08-05 17:38:58 +02:00
Fabian Homborg
eada714a0a
Complete machines in systemd tools
2015-08-05 17:38:17 +02:00
Fabian Homborg
66f11e9bd3
vi-mode: Make \cc go to normal from insert mode
...
Keep the behavior for normal mode
Fixes #2228
2015-08-04 14:22:55 +02:00
Mike Meyer
158d3cc743
Many small fixes, and done big one.
...
Bit one: Make all the fossil command invocations throw away stderr so we don't
get annoying messages when not in a repository.
Also:
- Move checkout into alphabetical order.
- Fix ls to complete against tags for -r option, not no option.
- Add missing option to delete command.
- Make commit complete against modified files.
- Make add only complete against extra files.
- Remove now ununused function to list extra & modified files.
- Add -f option in a number of places where it seemd appropriate.
2015-08-04 06:51:51 -05:00
Kunal Mehta
07c109fad8
Fix raw & in docs
...
The missing semicolon caused a raw & to be rendered.
2015-08-04 13:09:47 +02:00
Mike Meyer
618a4b42ad
Fix type, add tag completion to checkout.
2015-08-03 17:16:44 -05:00
Mike Meyer
e2c81e54e2
Add completions for fossil checkout.
2015-08-03 16:11:26 -05:00
David Adam
e56f0628d5
common.cpp: check wcwidth for supported characters
...
Rather than trying to detect Unicode support from the environment, check
the printable width of characters in the current locale before deciding
on whether to use them.
Closes #1927 .
2015-08-03 14:18:06 +08:00
Fabian Homborg
546ba888ae
Complete commands in pacman again
...
"noopt" was mistakenly turned around by missing a "not".
2015-07-31 22:36:00 -07:00
David Adam
9b2a17eb1e
functions/history.fish: whitespace only change
...
Run through fish_indent, mismatching indents actually confusing.
[skip ci]
2015-07-31 17:12:16 +08:00
David Adam
a7ecc0db1f
functions/history.fish: validate command line arguments in wrapper
...
Closes #2055 .
Implements the standard `--` option for delimiting options from
arguments; to search for "--", use `history --search -- --`.
2015-07-31 17:07:27 +08:00
Joshua Elliott
bc7eb39781
Improve completion for python -m flag
2015-07-30 16:04:39 -06:00
David Adam
299a383d98
Makefile: add target for Include What You Use (iwyu)
...
Requires http://include-what-you-use.org/ and Clang to operate.
Doesn't quite work for the builtin_* collection; that has to be done by
hand.
2015-07-29 21:41:57 +08:00
David Adam
75515af537
configure: only define special attributes if not defined
...
Fixes a build warning on FreeBSD, where <sys/cdefs.h> defines __packed and
friends.
2015-07-29 21:13:40 +08:00
Lars Grefer
b1ed15a07a
Tab-Completition for atom
2015-07-29 09:58:19 +08:00
Lars Grefer
9dc6ef6771
Tab-Completition for sass
2015-07-29 03:43:31 +02:00
David Adam
a6a16808e3
Merge branch 'iwyu'
...
http://include-what-you-use.org/
2015-07-29 09:30:19 +08:00
ridiculousfish
aee71b594b
Remove unused unload_all function
2015-07-27 23:36:54 -07:00
ridiculousfish
6e3231a9d7
Stop passing mutable references to completions around
...
Replace uses of vector<completion_t>& with vector<completion_t>*
This makes it clear at the call site that the object may be mutated.
2015-07-27 18:45:47 -07:00
ridiculousfish
85dad6913e
Support file tab completion after = and : separators
...
For example, env VAR=/usr<tab> will now work as expected
Fixes #2178
2015-07-27 13:43:20 -07:00
ridiculousfish
deacec07bf
Fix a warning with g++ about an unused function result
2015-07-26 10:55:19 -07:00
David Adam
958880d972
src/wutil: drop <features.h> header, _BSD_SOURCE is defined by the compiler
2015-07-26 19:58:02 +08:00