fish-shell/src
Mahmoud Al-Qudsi 9c63ad3209 Fix completion descriptions for functions
At some point the completion code was refactored and in the event where
no explicit function description was passed into `resolve_description()`
it would attempt to use the `desc_func` parameter but pass in the
_remaining_ part of the completion rather than the full text, which
would obviously fail.

e.g. if completing `foo<TAB>`, for function `foobar` it would attempt to
find the description for a function named `bar` instead of `foodbar`.

Closes #5206.
2018-09-26 13:18:29 -05:00
..
widecharwidth Migrate to widechar_wcwidth 2018-07-09 20:31:16 -07:00
autoload.cpp Constructors to accept more parameters by value 2018-02-18 19:12:45 -08:00
autoload.h Constructors to accept more parameters by value 2018-02-18 19:12:45 -08:00
builtin_argparse.cpp Correct formatting in argparse 2018-08-25 16:18:49 -07:00
builtin_argparse.h implement argparse builtin 2017-07-12 22:38:24 -07:00
builtin_bg.cpp change help only cmd opts interface 2017-06-16 21:01:57 -07:00
builtin_bg.h split builtin bg into its own module 2017-06-16 21:01:56 -07:00
builtin_bind.cpp Add -s to builtin_bind's allowed parameter list 2017-10-03 11:20:17 +02:00
builtin_bind.h Silence bind errors in default key bindings 2017-10-03 11:20:17 +02:00
builtin_block.cpp standardize on builtin_missing_argument() 2017-07-01 14:03:47 -07:00
builtin_block.h split builtin block into its own module 2017-06-16 21:01:56 -07:00
builtin_builtin.cpp standardize on builtin_missing_argument() 2017-07-01 14:03:47 -07:00
builtin_builtin.h split builtin builtin into its own module 2017-06-16 21:01:56 -07:00
builtin_cd.cpp env_var_t to forget its name 2018-01-30 12:36:50 -08:00
builtin_cd.h split builtin cd into its own module 2017-06-16 21:01:56 -07:00
builtin_command.cpp standardize on builtin_missing_argument() 2017-07-01 14:03:47 -07:00
builtin_command.h split builtin command into its own module 2017-06-16 21:01:56 -07:00
builtin_commandline.cpp Cleap up owning_lock interface 2018-09-01 13:11:42 -07:00
builtin_commandline.h restyle builtin modules to match project style 2016-04-26 21:58:59 -07:00
builtin_complete.cpp Remove unused vars identified by lint 2017-08-18 16:52:39 -07:00
builtin_complete.h implement our own assert() function 2017-02-14 18:48:27 -08:00
builtin_contains.cpp standardize on builtin_missing_argument() 2017-07-01 14:03:47 -07:00
builtin_contains.h split builtin contains into its own module 2017-06-16 21:01:56 -07:00
builtin_disown.cpp change help only cmd opts interface 2017-06-16 21:01:57 -07:00
builtin_disown.h split builtin disown into its own module 2017-06-16 21:01:56 -07:00
builtin_echo.cpp Replace \e with \x1B, as the former is a gcc extension 2018-06-18 00:01:47 -05:00
builtin_echo.h split builtin echo into its own module 2017-06-16 21:01:56 -07:00
builtin_emit.cpp change help only cmd opts interface 2017-06-16 21:01:57 -07:00
builtin_emit.h split builtin emit into its own module 2017-06-16 21:01:56 -07:00
builtin_exit.cpp standardize on builtin_missing_argument() 2017-07-01 14:03:47 -07:00
builtin_exit.h split builtin exit into its own module 2017-06-16 21:01:56 -07:00
builtin_fg.cpp Deprecate $_ in favor of (status current-command) 2018-03-24 11:58:19 -05:00
builtin_fg.h split builtin fg into its own module 2017-06-16 21:01:56 -07:00
builtin_function.cpp Straighten out some wchar_t** casts 2018-08-04 16:25:51 -07:00
builtin_function.h Functions to store nodes 2018-02-12 10:49:22 -08:00
builtin_functions.cpp Implement 'functions -d' to set function description 2018-07-22 11:28:05 -07:00
builtin_functions.h split builtin functions into its own module 2017-06-16 21:01:56 -07:00
builtin_history.cpp Convert some iterators to C++-11 range-based loops 2018-09-16 15:49:18 -07:00
builtin_history.h split builtin history into its own module 2017-06-16 21:01:56 -07:00
builtin_jobs.cpp Support job expansion for jobs builtin 2018-04-14 16:47:05 -05:00
builtin_jobs.h implement our own assert() function 2017-02-14 18:48:27 -08:00
builtin_math.cpp Default math scale to 6 2018-08-04 15:32:09 -07:00
builtin_math.h Implement bare minimum builtin math command 2017-08-23 14:43:45 -07:00
builtin_printf.cpp Create an immortal C locale 2018-08-03 00:48:50 -07:00
builtin_printf.h implement our own assert() function 2017-02-14 18:48:27 -08:00
builtin_pwd.cpp change help only cmd opts interface 2017-06-16 21:01:57 -07:00
builtin_pwd.h split builtin pwd into its own module 2017-06-16 21:01:56 -07:00
builtin_random.cpp change help only cmd opts interface 2017-06-16 21:01:57 -07:00
builtin_random.h split builtin random into its own module 2017-06-16 21:01:56 -07:00
builtin_read.cpp Make reader_push accept wcstring instead of wchar_t* 2018-08-11 12:43:11 -07:00
builtin_read.h split builtin status and read into its own module 2017-06-16 21:01:56 -07:00
builtin_realpath.cpp Change wrealpath to return a maybe_t 2017-10-11 00:08:26 -07:00
builtin_realpath.h split builtin realpath into its own module 2017-06-16 21:01:56 -07:00
builtin_return.cpp standardize on builtin_missing_argument() 2017-07-01 14:03:47 -07:00
builtin_return.h split builtin return into its own module 2017-06-16 21:01:56 -07:00
builtin_set_color.cpp Replace \e with \x1B, as the former is a gcc extension 2018-06-18 00:01:47 -05:00
builtin_set_color.h implement our own assert() function 2017-02-14 18:48:27 -08:00
builtin_set.cpp Rename my_env_set to more useful env_set_reporting_errors 2018-09-11 09:32:44 -07:00
builtin_set.h implement our own assert() function 2017-02-14 18:48:27 -08:00
builtin_source.cpp change help only cmd opts interface 2017-06-16 21:01:57 -07:00
builtin_source.h split builtin source into its own module 2017-06-16 21:01:56 -07:00
builtin_status.cpp Add a feature_test() function 2018-05-06 11:20:15 -07:00
builtin_status.h split builtin status and read into its own module 2017-06-16 21:01:56 -07:00
builtin_string.cpp [string] Match everything with an empty pattern and -e 2018-09-16 13:03:15 +02:00
builtin_string.h implement our own assert() function 2017-02-14 18:48:27 -08:00
builtin_test.cpp Put some of builtin_test in an anonymous namespace 2018-08-04 15:49:20 -07:00
builtin_test.h restyle builtin modules to match project style 2016-04-26 21:58:59 -07:00
builtin_ulimit.cpp standardize on builtin_missing_argument() 2017-07-01 14:03:47 -07:00
builtin_ulimit.h implement our own assert() function 2017-02-14 18:48:27 -08:00
builtin_wait.cpp Make contains() more general 2018-08-11 22:23:20 -07:00
builtin_wait.h add wait command 2017-11-16 10:48:21 -08:00
builtin.cpp builtins to only acquire terminal if owned by their pgroup 2018-08-18 16:56:01 -07:00
builtin.h builtins to only acquire terminal if owned by their pgroup 2018-08-18 16:56:01 -07:00
color.cpp Remove explicit 'void' parameters. 2018-02-18 19:12:45 -08:00
color.h implement our own assert() function 2017-02-14 18:48:27 -08:00
common.cpp fix enum warning. 2018-09-22 11:58:55 +02:00
common.h Add autoclose_fd_t for helping to manage file descriptors 2018-09-01 14:27:36 -07:00
complete.cpp Make contains() more general 2018-08-11 22:23:20 -07:00
complete.h Prefer to not autosuggest existing arguments 2018-08-07 02:04:43 -07:00
env_universal_common.cpp Fix build on Linux 2018-09-19 10:55:36 +08:00
env_universal_common.h Added const to methods which 'ought to be const' based on Const Checker 2018-08-09 19:05:47 -07:00
env.cpp Add workaround to env_get_pwd_slash() for cases where PWD is not set 2018-09-19 18:16:54 -05:00
env.h Add and use new exit code for env_remove() when var doesn't exist 2018-03-31 22:12:52 -05:00
event.cpp Make contains() more general 2018-08-11 22:23:20 -07:00
event.h Clean up and document functions --handlers 2018-03-10 02:27:25 -08:00
exec.cpp Stop retrying close() on EINTR 2018-09-05 21:49:31 -07:00
exec.h implement limits on command substitution output 2017-08-03 17:40:25 -07:00
expand.cpp expansion: Only clamp ranges when not forcing direction 2018-09-15 11:07:29 +02:00
expand.h Allow variables in commands 2018-09-01 12:00:56 -07:00
fallback.cpp Add support for fish_ambiguous_width 2018-08-18 15:38:05 -07:00
fallback.h Add support for fish_ambiguous_width 2018-08-18 15:38:05 -07:00
fish_indent.cpp Teach fish_indent about escaped newlines 2018-05-07 21:40:53 -07:00
fish_key_reader.cpp fixup! Replace \e with \x1B, as the former is a gcc extension 2018-06-18 00:34:31 -05:00
fish_tests.cpp Convert some iterators to C++-11 range-based loops 2018-09-16 15:49:18 -07:00
fish_version.cpp [cmake] Untangle the CMake versioning 2018-01-08 22:28:10 -08:00
fish_version.h Revert "Generate FISH_BUILD_VERSION info for cmake builds" 2018-01-08 22:28:10 -08:00
fish.cpp Revert "Don't require ./etc to exist in relocatable fish" 2018-07-21 20:57:21 -07:00
function.cpp Add basic RAII wrapper for DIR* 2018-09-26 12:36:20 -05:00
function.h Source : function without any C++ hacks 2018-03-15 18:19:08 -05:00
future_feature_flags.cpp Add a qmark-noglob feature flag 2018-05-06 11:20:15 -07:00
future_feature_flags.h Add a feature_test() function 2018-05-06 11:20:15 -07:00
highlight.cpp Teach syntax highlighting about variables in commands 2018-09-01 12:00:56 -07:00
highlight.h implement our own assert() function 2017-02-14 18:48:27 -08:00
history.cpp Cleap up owning_lock interface 2018-09-01 13:11:42 -07:00
history.h Simplify history search 2018-08-12 02:41:09 -07:00
input_common.cpp Replace \e with \x1B, as the former is a gcc extension 2018-06-18 00:01:47 -05:00
input_common.h Add till/repeat/reverse jump bindings 2018-08-18 14:42:29 -07:00
input.cpp Convert some iterators to C++-11 range-based loops 2018-09-16 15:49:18 -07:00
input.h lint cleanup 2017-06-16 21:01:56 -07:00
intern.cpp Cleap up owning_lock interface 2018-09-01 13:11:42 -07:00
intern.h restyle intern module to match project style 2016-05-01 20:28:46 -07:00
io.cpp Remove some disabled (commented or ifdef'd out) code 2018-08-10 20:48:02 -07:00
io.h Add string split0 2018-07-01 15:56:33 -07:00
iothread.cpp Cleap up owning_lock interface 2018-09-01 13:11:42 -07:00
iothread.h lint cleanups 2017-02-11 21:30:38 -08:00
kill.cpp Make contains() more general 2018-08-11 22:23:20 -07:00
kill.h restyle kill module to match project style 2016-05-01 22:18:59 -07:00
lru.h Added const to methods which 'ought to be const' based on Const Checker 2018-08-09 19:05:47 -07:00
maybe.h Add acquire() to maybe_t 2018-04-01 16:10:59 -07:00
output.cpp Replace \e with \x1B, as the former is a gcc extension 2018-06-18 00:01:47 -05:00
output.h Prevent fish from crashing if non-essential terminfo strings not found 2018-06-17 20:59:34 -05:00
pager.cpp Escape less aggressively when showing completions in pager 2018-08-12 03:37:13 -07:00
pager.h implement our own assert() function 2017-02-14 18:48:27 -08:00
parse_constants.h Rename $pid (née %self) to $fish_pid 2018-03-24 11:54:27 -05:00
parse_execution.cpp Allow variables in commands 2018-09-01 12:00:56 -07:00
parse_execution.h Allow variables in commands 2018-09-01 12:00:56 -07:00
parse_grammar_elements.inc Rework 'and' and 'or' to be "job decorators" 2018-03-05 13:41:36 -08:00
parse_grammar.h Fix warning about extra ';' being ignored 2018-06-18 00:05:31 -05:00
parse_productions.cpp Fix some unused variable warnings 2018-03-31 17:06:13 -07:00
parse_productions.h style cleanups 2017-05-01 22:05:35 -07:00
parse_tree.cpp Remove some disabled (commented or ifdef'd out) code 2018-08-10 20:48:02 -07:00
parse_tree.h Teach the tokenizer to report escaped newlines 2018-05-07 21:39:30 -07:00
parse_util.cpp Allow variables in commands 2018-09-01 12:00:56 -07:00
parse_util.h Teach parse_util_escape_string_with_quote about tildes 2018-02-17 15:18:43 -08:00
parser_keywords.cpp Reserve some builtin names 2018-02-25 21:29:24 +01:00
parser_keywords.h Make IWYU output in lint.cpp less messy 2016-06-23 17:26:08 -07:00
parser.cpp Added const to methods which 'ought to be const' based on Const Checker 2018-08-09 19:05:47 -07:00
parser.h Added const to methods which 'ought to be const' based on Const Checker 2018-08-09 19:05:47 -07:00
path.cpp Convert some iterators to C++-11 range-based loops 2018-09-16 15:49:18 -07:00
path.h stop subclassing env_var_t from wcstring 2017-08-06 13:24:34 -07:00
postfork.cpp Minor cleanup and const correctness 2018-08-04 16:45:16 -07:00
postfork.h Minor cleanup and const correctness 2018-08-04 16:45:16 -07:00
print_help.cpp lint: "collapsible if statements" warnings 2016-10-22 19:09:40 -07:00
print_help.h restyle proc module to match project style 2016-05-02 22:07:58 -07:00
proc.cpp Always notify about crashes 2018-09-18 21:22:15 +02:00
proc.h builtins to only acquire terminal if owned by their pgroup 2018-08-18 16:56:01 -07:00
reader.cpp Don't reset the screen after emitting a BEL 2018-09-16 16:25:49 -07:00
reader.h Reformat all files 2018-09-08 22:19:05 -07:00
sanity.cpp Remove various empty or useless functions 2018-02-10 17:21:55 -08:00
sanity.h improve sanity check code 2017-01-24 15:24:13 -08:00
screen.cpp Don't reset the screen after emitting a BEL 2018-09-16 16:25:49 -07:00
screen.h Don't reset the screen after emitting a BEL 2018-09-16 16:25:49 -07:00
signal.cpp Fix uninitialized sigaction.sa_flags valgrind error 2017-08-26 19:13:58 -05:00
signal.h Revert "Revert "finish cleanup of signal blocking code"" 2017-08-06 14:46:12 -07:00
tinyexpr.c [math] Better error for 2 + 2 4 2018-03-01 13:09:35 +01:00
tinyexpr.h [math] Better error for 2 + 2 4 2018-03-01 13:09:35 +01:00
tnode.cpp Rework 'and' and 'or' to be "job decorators" 2018-03-05 13:41:36 -08:00
tnode.h Rework 'and' and 'or' to be "job decorators" 2018-03-05 13:41:36 -08:00
tokenizer.cpp Teach the tokenizer to report escaped newlines 2018-05-07 21:39:30 -07:00
tokenizer.h Teach the tokenizer to report escaped newlines 2018-05-07 21:39:30 -07:00
utf8.cpp implement our own assert() function 2017-02-14 18:48:27 -08:00
utf8.h implement our own assert() function 2017-02-14 18:48:27 -08:00
util.cpp Fix the build on FreeBSD with Clang 2017-06-17 22:51:25 -07:00
util.h restyle remaining modules to match project style 2016-05-03 16:09:45 -07:00
wcstringutil.cpp Support multiple read --line variable outputs 2018-04-17 21:34:22 -05:00
wcstringutil.h Add line-delimited read presets with --line and --all-lines 2018-04-17 21:34:22 -05:00
wgetopt.cpp Remove some compatibility juk from wgetopt 2018-08-18 17:22:55 -07:00
wgetopt.h Clean up bits of wgetopter_t interface 2018-08-25 16:09:04 -07:00
wildcard.cpp Fix completion descriptions for functions 2018-09-26 13:18:29 -05:00
wildcard.h Feature flag support for ? wildcard 2018-05-06 11:20:15 -07:00
wutil.cpp Add basic RAII wrapper for DIR* 2018-09-26 12:36:20 -05:00
wutil.h Add basic RAII wrapper for DIR* 2018-09-26 12:36:20 -05:00