Switch abbreviation '-r' flag from --rename to --regex

This will be the more common option and provides consistency with
`string`.
This commit is contained in:
ridiculousfish
2022-12-10 14:16:26 -08:00
parent e08f4db1f9
commit d8dbb9b259
4 changed files with 22 additions and 29 deletions

View File

@@ -8,7 +8,7 @@ Synopsis
.. synopsis::
abbr --add NAME [--position command | anywhere] [--regex PATTERN]
abbr --add NAME [--position command | anywhere] [-r | --regex PATTERN]
[--set-cursor[=MARKER]]
[-f | --function] EXPANSION
abbr --erase NAME ...
@@ -37,9 +37,8 @@ Abbreviations may be added to :ref:`config.fish <configuration>`. Abbreviations
.. synopsis::
abbr [-a | --add] NAME [--position command | anywhere] [--regex PATTERN]
[--set-cursor[=MARKER]]
[-f | --function] EXPANSION
abbr [-a | --add] NAME [--position command | anywhere] [-r | --regex PATTERN]
[--set-cursor[=MARKER]] [-f | --function] EXPANSION
``abbr --add`` creates a new abbreviation. With no other options, the string **NAME** is replaced by **EXPANSION**.
@@ -104,7 +103,7 @@ Other subcommands
::
abbr [-r | --rename] OLD_NAME NEW_NAME
abbr --rename OLD_NAME NEW_NAME
Renames an abbreviation, from *OLD_NAME* to *NEW_NAME*