ridiculousfish
60798798ef
Allow fish to build from Xcode without lexicon_filter
...
Emit a warning but keep building
2015-08-15 12:49:32 -07:00
faho
81696c16d2
Merge pull request #2283 from treeman/prompt_pwd
...
Match the whole real home directory in prompt_pwd.
2015-08-14 21:40:21 +02:00
faho
89c504daf6
Merge pull request #2304 from bpollack/fossil
...
Clean up completions for Fossil
2015-08-14 18:13:39 +02:00
Benjamin Pollack
5a2287c52f
Clean up completions for Fossil
...
There are two main problems in the existing Fossil autocompletion that this
patch solves:
* Because Fossil lacks an alias system similar to those in Hg and Git,
wrapper scripts are common, and aliasing them to `fossil` is also fairly
common. The lack of the `command fossil` pattern in the completions script
meant that the actual fossil command might not be called, but rather the
alias. This problem has been fixed by introducing a __fish_fossil command,
similar to the __fish_hg and __fish_git commands in those completion shells,
that does this, and converting all explicit fossil calls in the completion
script to use __fish_fossil instead
* Because there's now a centralized location for calling Fossil, I also moved
all of the repetitive stderr redirects that function.
This results in more robust and cleaner code.
2015-08-14 10:36:37 -04:00
faho
a65a288eca
Merge pull request #2256 from jcelliott/python-completion
...
Improve completion for python -m flag
2015-08-14 12:32:52 +02:00
ridiculousfish
cf80baa2d8
Teach the Xcode build how to apply lexicon_filter
2015-08-11 10:43:11 -07:00
ridiculousfish
871a822379
Remove some dead #defines
2015-08-11 01:00:05 -07:00
ridiculousfish
b9b6b6108e
Dead macro cleanup
...
Enable -Wunused-macros, and remove said unused macros
2015-08-10 22:01:50 -07:00
ridiculousfish
3a2ba60b70
Use ++iter, not iter++ in input.cpp
2015-08-10 22:01:33 -07:00
ridiculousfish
aa76f64a94
Correct the caret position for unbalanced square brackets
2015-08-10 19:30:21 -07:00
ridiculousfish
e34a8da5d7
Correct the positioning of the error caret
...
When an error occurs midway through a token, like abc(def,
make the caret point at the location of the error (i.e. the paren)
instead of at the beginning of the token.
2015-08-10 18:31:20 -07:00
Fabian Homborg
6157a9a858
Fix wesnoth completion
2015-08-10 19:01:50 +02:00
Fabian Homborg
6b92c4867d
Fix source completion by making "..fish" symlink regular file
...
Also fixes #2286 by removing the only symlink.
2015-08-09 23:10:17 +02:00
ridiculousfish
3bd6eab88f
Make expansion test robust against different filesystem orders
...
Should make the tests pass on Linux
2015-08-08 15:25:07 -07:00
ridiculousfish
3a3a9f5cc1
Add wreaddir_for_dirs function
...
Eliminates some stat calls, speeding up wildcard expansion
2015-08-08 14:52:04 -07:00
ridiculousfish
f87268e2ac
Remove a bogus function declaration
2015-08-08 14:32:10 -07:00
Jonas Hietala
5238ed309f
Match the whole real home directory in prompt_pwd.
2015-08-08 23:19:01 +02:00
ridiculousfish
6347988e0a
Eliminate wildcard_expand function
2015-08-08 13:55:51 -07:00
ridiculousfish
b92acd3cf2
Initial implementation of intermediate fuzzy completion
...
e.g. /u/l/b<tab> may be expanded to /usr/local/bin
2015-08-08 13:55:51 -07:00
ridiculousfish
fd96bafbc8
Experiment to rework wildcard matching
...
Preparation for zsh-style intermediate component
tab completion
2015-08-08 13:55:51 -07:00
ridiculousfish
b7e16cb0dd
Tweak try_add_completion_result logic
...
Preparation for zsh-style intermediate fuzzy matching
2015-08-08 13:55:51 -07:00
ridiculousfish
459df23931
Migrate the prepend_token_prefix logic into the expander
2015-08-08 13:55:50 -07:00
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