| Commit message (Collapse) | Author | Age |
|
|
|
| |
We actually need less duplication here.
|
| |
|
| |
|
|
|
|
|
|
|
| |
This now (rightly) throws an error if there's a space in the
key (because we can't store it).
Fixes #2997.
|
| |
|
|
|
|
|
|
|
|
|
| |
We silently upgrade existing abbreviations and change the separator when
saving.
This does not yet warn when the user is using the old syntax.
Resolves #2051
|
|
|
|
|
| |
This speeds up adding new abbrs by about 50 to 60% - from 2.3s to 1s for
100 abbrs.
|
|
|
|
|
| |
This speeds up the common case of `abbr -a` calls in config.fish by
about 90% - from 900ms to 90ms for 100 calls.
|
|
|
|
|
|
|
| |
This fails on e.g. an abbr that uses `env a=b`, like the included test demonstrates.
Unfortunately it decreases the speed again (2s vs 2.2s vs 4s original),
but correctness is more important.
|
|
|
|
|
|
|
|
|
|
| |
- Replace __fish_abbr_escape with `string escape`
- Don't double-parse the key
- Replace IFS magic with string
Together, this seems to speed it up by a factor of about 2.
|
|
|
|
|
|
|
|
|
|
|
| |
1. When run with no arguments, make abbr do the equivalent
of `abbr --show`
2. Enable "implicit add", e.g. `abbr gco git checkout`
3. Teach `abbr --show` to not use quotes for simple cases
4. Teach abbr to output -- when the abbreviation has
leading dashes
Add some basic tests to abbr too.
|
|
|
|
|
|
| |
for consistency with other fish commands
Closes #2071.
|
|
|
|
| |
Makes the behaviour of the script match the documentation.
|
|
|
|
|
| |
Use __ instead of _ as a placeholder for ignored variables in `read`
statements.
|
|
|
|
|
|
|
| |
Allows abbreviations containing embedded newlines, etc., to be displayed
and exported properly.
Work on #731.
|
|
|
|
|
|
|
| |
Handle unusual cases ('=abc', ' =abc') better - regression from
8e8e6314due to a7bab7b.
Work on #731.
|
|
|
|
|
|
|
|
|
| |
Support for space-delimited abbreviations was added to the expansion
parser in fbade198; this commit extends that support to the user-facing
tools, and documents the space-separated behaviour. Equals-delimited
abbreviations are expected to be removed before the next release.
Work on #731.
|
|
|
|
|
|
|
|
|
|
|
|
| |
The usage is still the same, but it's a lot more robust, and also no
longer assumes $fish_user_abbreviations must be a universal variable.
This also fixes the unexpected error output when calling `abbr -a` with
no existing abbreviations.
Calling `abbr -a` with an abbreviation that already exists now silently
overwrites the abbreviation, just like `function` and `bind` do, instead
of complaining.
|
|
Work on #731.
|