aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/abbr.fish
Commit message (Collapse)AuthorAge
* Simplify some code in abbrGravatar Fabian Homborg2016-05-23
| | | | We actually need less duplication here.
* Fix printing "--" in abbr --showGravatar Fabian Homborg2016-05-23
|
* Fix "--" argument in abbrGravatar Fabian Homborg2016-05-23
|
* Don't mangle arguments in abbrGravatar Fabian Homborg2016-05-23
| | | | | | | This now (rightly) throws an error if there's a space in the key (because we can't store it). Fixes #2997.
* Change abbr to allow non-letter keys (#2996)Gravatar Elis Axelsson2016-05-06
|
* Migrate abbrs from =-separated to space-separatedGravatar Fabian Homborg2016-03-02
| | | | | | | | | 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
* Rewrite abbr.fish to not call seqGravatar Fabian Homborg2016-02-13
| | | | | This speeds up adding new abbrs by about 50 to 60% - from 2.3s to 1s for 100 abbrs.
* abbr: Bail early when the abbr already existsGravatar Fabian Homborg2016-02-13
| | | | | This speeds up the common case of `abbr -a` calls in config.fish by about 90% - from 900ms to 90ms for 100 calls.
* abbr: Ensure we don't split on "=" if the given separator is " "Gravatar Fabian Homborg2016-01-14
| | | | | | | 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.
* Optimize and modernize abbrGravatar Fabian Homborg2016-01-14
| | | | | | | | | | - 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.
* Tweak and add tests for abbrGravatar ridiculousfish2015-06-14
| | | | | | | | | | | 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.
* abbr: rename --remove to --eraseGravatar David Adam2015-05-22
| | | | | | for consistency with other fish commands Closes #2071.
* abbr: coalesce multiple arguments to --addGravatar David Adam2015-03-13
| | | | Makes the behaviour of the script match the documentation.
* Update various strings for translation, avoid _ for non-translationsGravatar David Adam2014-11-25
| | | | | Use __ instead of _ as a placeholder for ignored variables in `read` statements.
* abbr.fish: escape the output of abbr --showGravatar David Adam2014-11-16
| | | | | | | Allows abbreviations containing embedded newlines, etc., to be displayed and exported properly. Work on #731.
* abbr.fish: improve support for corner casesGravatar David Adam2014-11-16
| | | | | | | Handle unusual cases ('=abc', ' =abc') better - regression from 8e8e6314due to a7bab7b. Work on #731.
* abbr/web_config: support space-delimited abbreviationsGravatar David Adam2014-11-15
| | | | | | | | | 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.
* Rewrite `abbr` functionGravatar Kevin Ballard2014-10-07
| | | | | | | | | | | | 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.
* abbr.fish: add abbr, a command to manipulate abbreviationsGravatar David Adam2014-10-05
Work on #731.