| Commit message (Collapse) | Author | Age |
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Binds with the same sequence in multiple modes was not working right.
Fix up the implementation to propagate modes everywhere as necessary.
This means that `bind` will properly list distinct binds with the same
sequence, and `bind -e` will take mode into account properly as well.
Note that `bind -e seq` now assumes the bind is in the default bind
mode, whereas before it would erase the first binding with that sequence
regardless of mode.
`bind -e -a` still erases all binds in all modes, though `bind -M mode
-e -a` still only erases all binds in the selected mode.
|
|
|
|
|
| |
In adding `-k` support to `bind -e` I broke the ability to use `bind -e`
without specifyign `-k`. Oops.
|
|
|
|
| |
Also return an exit code of 1 if `bind -k` can't match the key name.
|
| |
|
|
|
|
| |
Fixes #746.
|
|
|
|
|
|
|
| |
Add a flag to read to allow for setting the right prompt command in
addition to the existing support for setting the prompt command.
Fixes #1698.
|
| |
|
|
|
|
|
|
| |
When `read` is given a single character of input (including the
newline), it was bailing as if it had been given no input. This is
incorrect.
|
|
|
|
|
|
|
|
| |
The `--null` flag to `read` makes it split incoming lines on NUL instead
of newlines. This is intended for processing the output of a command
that uses NUL separators (such as `find -print0`).
Fixes #1694.
|
| |
|
|
|
|
|
| |
Usage: read -n nchars
Reads maximum of nchars characters. If nchars <= 0, there's no limit.
|
|
|
|
|
|
|
|
| |
gcc interpretes C99's compound literals more strictly by invalid the
compound literal on implicit to pointer cast (because of automatic
storage duration, 6.5.2.5.6 in C99 standard draft).
This fixes the issue by not using compound literals at all.
|
|\
| |
| |
| | |
kballard-make_type_better
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
| | |
|
| |
| |
| |
| | |
Fixes #1581
|
| |
| |
| |
| |
| |
| | |
other sessions.
Fixes #825
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Enhance the `read` builtin to support creating an array with the --array
flag. With --array, only a single variable name is allowed and the
entire input is tokenized and placed into that variable as an array.
Also add custom behavior if IFS is empty or unset. In that event, split
the input on every character, instead of the previous behavior of doing
no splitting at all.
|
| | |
|
|/
|
|
|
| |
Give the `command` builtin a single flag, -p/--path, that causes it to
print the full path that would be executed for the given command.
|
| |
|
| |
|
|
|
|
| |
Fixes #1459
|
|
|
|
|
| |
It was possible to type `function ""; end`, and this caused fish to
crash because of NULL pointer.
|
|
|
|
| |
This also removes duplication from the code.
|
| |
|
| |
|
| |
|
|
|
|
| |
errors
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Conflicts:
builtin.cpp
builtin_commandline.cpp
highlight.cpp
input.cpp
input.h
reader.cpp
screen.cpp
screen.h
|
| |
| |
| |
| | |
issue #1252
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
This reverts commit 74135c0600d5dcc40d396d0e7293c17b8d4bdaa7, reversing
changes made to 6d749789ce240a3e6f1447777db63fd8e7525560.
See discussion in #1317
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
is specified before Y, then Y will never be invoked because X will
always get there first. Now instead we order bindings in descending
order by length, so that we always test the binding before any others that
prefixes it. Fixes #1283.
|
| |
| |
| |
| | |
shells. Fixes #1061.
|
| |
| |
| |
| | |
complete-and-search.
|
|\|
| |
| |
| |
| |
| |
| | |
Conflicts:
builtin.cpp
reader.cpp
share/functions/fish_default_key_bindings.fish
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
instead of continuing edit onto the next line.
|
| | |
|
| |
| |
| |
| | |
builtins" now print their help (e.g. just 'while')
|