ridiculousfish
cbd3fa6b01
Eliminate parser_type_t
...
It was never fully implemented and wasn't used for anything
2016-02-27 18:25:58 -08:00
ridiculousfish
6cb48c6380
Allow variable completion from just a $
...
Previously there had to be some variable text, now you can
tab complete from just a naked $.
2016-02-27 16:51:44 -08:00
ridiculousfish
35160db268
Remove an unused variable
2016-02-22 03:37:03 -08:00
ridiculousfish
99e18d9cef
Remove autosuggest_suggest_special
2016-02-18 17:00:26 -08:00
ridiculousfish
1907323afc
Additional work on unifying cd autosuggestions with complete
2016-02-18 17:00:26 -08:00
ridiculousfish
c39b94949b
Complete to take a pointer to output completions, not a mutable ref
2016-02-18 17:00:26 -08:00
ridiculousfish
31bc88d16f
Migrate sort_and_prioritize to complete.cpp
2016-02-18 17:00:26 -08:00
ridiculousfish
2d68b25025
Early work towards moving the cd special autosuggestion into completions
...
This will simplify some code and make the cd autosuggestion smarter
2016-02-18 17:00:25 -08:00
ridiculousfish
766176443d
Clean up completion removal
...
Rather than passing a triple of short, long, is_old, pass an option
as a string and then a type
2016-01-16 22:42:14 -08:00
ridiculousfish
3552d073f6
Mark a bit of code as unreachable
2016-01-16 16:03:09 -08:00
ridiculousfish
49d3042bd3
Simplify locking in complete.cpp
2016-01-16 16:00:57 -08:00
ridiculousfish
701d141109
Clean up complete_entry_opt_t
...
Rather than storing short and long options separately, using
a complicated set of invariants, store them in a single string
and use an explicit type complete_option_type_t to track how they
are interpreted.
2016-01-16 15:46:43 -08:00
ridiculousfish
870593e345
Remove short_opt_str from completion_entry_t
...
This was a "cache" of dubious value that was also very confusing.
The idea was to express in one place all of the short options that
were allowed for a command, in a big string. But it's simpler to
just construct that on-demand by walking the list of
complete_entry_opt_t.
Also remove some other dead code as part of cleanup.
2016-01-15 17:27:02 -08:00
ridiculousfish
5cf0e918b0
Clean up short_ok in completions
...
Preparing to remove short_opt_string
2016-01-15 17:14:44 -08:00
ridiculousfish
d9d2f61ba6
When autoloading a completion, also autoload the function
...
Fixes a case where a --wraps declaration would be missed
because the function would not be loaded. Fixes #2466 .
2015-10-07 18:59:41 -07:00
ridiculousfish
aeaacedf75
Don't do intermediate fuzzy directory matching with $PATH
...
When expanding an executable with $PATH, don't attempt to
interpret the directories in PATH as fuzzy matching. Fixes #2413 .
2015-10-03 15:44:57 -07:00
ridiculousfish
c1bd3b5824
Eliminate global variables associated with builtin IO
...
This change eliminates global variables like stdout_buffer. Instead we wrap up
the IO information into a new struct io_streams_t, and thread that through
every builtin. This makes the intent clearer, gives us a place to hang new IO
data, and eliminates the ugly global state management like builtin_push_io.
2015-09-22 18:08:00 -07:00
Fabian Homborg
b85a8bbbfe
Rename sgrep to __fish_sgrep
...
Makes it harder to cause issues with aliases, see fish-shell#2245
2015-09-09 20:55:04 +02:00
ridiculousfish
b59904632d
Rewrite parse_util_unescape_wildcards
...
Make it simpler, and use wcstring instead of wcsdup
2015-08-19 11:35:24 -07:00
ridiculousfish
b9b6b6108e
Dead macro cleanup
...
Enable -Wunused-macros, and remove said unused macros
2015-08-10 22:01: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
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
a3f8e27bf8
rename ACCEPT_INCOMPLETE to FOR_COMPLETIONS, which is clearer
2015-08-08 13:55:49 -07:00
David Adam
a6a16808e3
Merge branch 'iwyu'
...
http://include-what-you-use.org/
2015-07-29 09:30:19 +08: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
3929e9de0e
Merge branch 'master' into iwyu
2015-07-26 10:20:13 +08:00
ridiculousfish
b4f53143b0
Migrate source files into src/ directory
...
This change moves source files into a src/ directory,
and puts object files into an obj/ directory. The Makefile
and xcode project are updated accordingly.
Fixes #1866
2015-07-24 00:59:27 -07:00