fish-shell/doc_src
ridiculousfish 06400b83b1 Support for command wrapping ("aliases")
Add the --wraps option to 'complete' and 'function'. This allows a
command to (recursively) inherit the completions of a wrapped command.
Fixes #393.

When evaluating a completion, we inspect the entire "wrap chain" for a
command, i.e. we follow the sequence of wrapping until we either hit a
loop (which we silently ignore) or the end of the chain. We then
evaluate completions as if the wrapping command were substituted with
the wrapped command. Currently this only works for commands, i.e.
'complete --command gco --wraps git\ checkout' won't work (that would
seem to encroaching on abbreviations anyways). It might be useful to
show an error message for that case.

The commandline builtin reflects the commandline with the wrapped
command substituted in, so e.g. git completions (which inspect the
command line) will just work. This sort of command line munging is
also performed by 'complete -C' so it's not totally without precedent.

'alias will also now mark its generated function as wrapping the
'target.
2014-08-15 18:14:36 -07:00
..
alias.txt Help cleanup 2013-05-13 01:48:20 -07:00
and.txt Help cleanup 2013-05-13 01:48:20 -07:00
begin.txt Help cleanup 2013-05-13 01:48:20 -07:00
bg.txt Help cleanup 2013-05-13 01:48:20 -07:00
bind.txt fix typo introduced in b56542a9f 2013-09-13 13:43:36 +08:00
block.txt Help cleanup 2013-05-13 01:48:20 -07:00
break.txt Help cleanup 2013-05-13 01:48:20 -07:00
breakpoint.txt Help cleanup 2013-05-13 01:48:20 -07:00
builtin.txt Help cleanup 2013-05-13 01:48:20 -07:00
case.txt Help cleanup 2013-05-13 01:48:20 -07:00
cd.txt Document appending / feature. 2013-10-06 14:17:33 +02:00
command.txt Help cleanup 2013-05-13 01:48:20 -07:00
commandline.txt Implement and document new -P / --paging-mode flags to commandline, to support new 2014-01-17 12:53:01 -08:00
commands.hdr.in New documentation UI, including tutorial. 2013-10-05 00:37:44 -07:00
complete.txt Support for command wrapping ("aliases") 2014-08-15 18:14:36 -07:00
contains.txt Help cleanup 2013-05-13 01:48:20 -07:00
continue.txt Help cleanup 2013-05-13 01:48:20 -07:00
count.txt Help cleanup 2013-05-13 01:48:20 -07:00
design.hdr New documentation UI, including tutorial. 2013-10-05 00:37:44 -07:00
dirh.txt Help cleanup 2013-05-13 01:48:20 -07:00
dirs.txt Help cleanup 2013-05-13 01:48:20 -07:00
echo.txt Help cleanup 2013-05-13 01:48:20 -07:00
else.txt Help cleanup 2013-05-13 01:48:20 -07:00
emit.txt Help cleanup 2013-05-13 01:48:20 -07:00
end.txt Help cleanup 2013-05-13 01:48:20 -07:00
eval.txt Change terminology in docs from 'environment variables' -> 'shell variables' 2014-04-29 07:27:56 +02:00
exec.txt Help cleanup 2013-05-13 01:48:20 -07:00
exit.txt Help cleanup 2013-05-13 01:48:20 -07:00
faq.hdr docs: clarify fish_greeting function and variable in FAQ 2014-06-18 17:29:59 +08:00
fg.txt Help cleanup 2013-05-13 01:48:20 -07:00
fish.txt Help cleanup 2013-05-13 01:48:20 -07:00
fish_config.txt Updated help text of fish_config command 2013-09-28 17:22:46 +05:30
fish_indent.txt Help cleanup 2013-05-13 01:48:20 -07:00
fish_prompt.txt Help cleanup 2013-05-13 01:48:20 -07:00
fish_right_prompt.txt Typos 2013-04-14 12:19:56 +05:30
fish_update_completions.txt Help cleanup 2013-05-13 01:48:20 -07:00
for.txt Help cleanup 2013-05-13 01:48:20 -07:00
funced.txt Help cleanup 2013-05-13 01:48:20 -07:00
funcsave.txt Help cleanup 2013-05-13 01:48:20 -07:00
function.txt Support for command wrapping ("aliases") 2014-08-15 18:14:36 -07:00
functions.txt Help cleanup 2013-05-13 01:48:20 -07:00
help.txt Help cleanup 2013-05-13 01:48:20 -07:00
history.txt Add support for history --merge to incorporate history changes from 2014-07-25 10:49:12 -07:00
if.txt Help cleanup 2013-05-13 01:48:20 -07:00
index.hdr.in Set $CMD_DURATION to milliseconds. Fixes #1585 2014-08-04 13:36:39 +08:00
isatty.txt Enhance/fix isatty using command test. 2014-01-28 11:14:54 -08:00
jobs.txt Help cleanup 2013-05-13 01:48:20 -07:00
license.hdr Remove getpeerid/getpeerucred and fallbacks 2014-08-03 15:40:44 +08:00
math.txt Change terminology in docs from 'environment variables' -> 'shell variables' 2014-04-29 07:27:56 +02:00
mimedb.txt Help cleanup 2013-05-13 01:48:20 -07:00
nextd.txt Replace nextd/prevd <pre>s with \code 2013-10-05 12:13:16 -07:00
not.txt Help cleanup 2013-05-13 01:48:20 -07:00
open.txt Help cleanup 2013-05-13 01:48:20 -07:00
or.txt Help cleanup 2013-05-13 01:48:20 -07:00
popd.txt Help cleanup 2013-05-13 01:48:20 -07:00
prevd.txt Replace nextd/prevd <pre>s with \code 2013-10-05 12:13:16 -07:00
psub.txt Help cleanup 2013-05-13 01:48:20 -07:00
pushd.txt Help cleanup 2013-05-13 01:48:20 -07:00
pwd.txt Help cleanup 2013-05-13 01:48:20 -07:00
random.txt Help cleanup 2013-05-13 01:48:20 -07:00
read.txt Fix documentation on variable scopes for read 2014-07-14 09:12:00 +08:00
return.txt Help cleanup 2013-05-13 01:48:20 -07:00
set.txt Add an optional mode to env_get_string() 2014-07-12 15:35:34 -07:00
set_color.txt Help cleanup 2013-05-13 01:48:20 -07:00
source.txt Change terminology in docs from 'environment variables' -> 'shell variables' 2014-04-29 07:27:56 +02:00
status.txt Help cleanup 2013-05-13 01:48:20 -07:00
switch.txt Help cleanup 2013-05-13 01:48:20 -07:00
test.txt Fix bad example in docs for test -n $MANPATH 2014-07-29 14:44:51 -07:00
trap.txt Help cleanup 2013-05-13 01:48:20 -07:00
tutorial.hdr Change terminology in docs from 'environment variables' -> 'shell variables' 2014-04-29 07:27:56 +02:00
type.txt Help cleanup 2013-05-13 01:48:20 -07:00
ulimit.txt Help cleanup 2013-05-13 01:48:20 -07:00
umask.txt Help cleanup 2013-05-13 01:48:20 -07:00
vared.txt Help cleanup 2013-05-13 01:48:20 -07:00
while.txt Help cleanup 2013-05-13 01:48:20 -07:00