From 9954074dde9c1b5560e850dc522eaafd5b658c99 Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Wed, 24 Apr 2024 18:20:25 +0200 Subject: [PATCH] CHANGELOG abbr --command --- CHANGELOG.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 3e2269960..6abd1c4d0 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -62,6 +62,11 @@ Notable improvements and fixes - :kbd:`ctrl-c` during command input no longer prints ``^C`` and a new prompt but merely clears the command line. This restores the behavior from version 2.2. To revert to the old behavior use ``bind ctrl-c __fish_cancel_commandline`` (:issue:`10213`). - The :kbd:`ctrl-r` history search now uses glob syntax (:issue:`10131`). - The :kbd:`ctrl-r` history search now operates only on the line at cursor, making it easier to quickly compose a multi-line command by recalling previous commands. +- Abbreviations can now be restricted to specific commands. For instance:: + + abbr --add --command git back 'reset --hard HEAD^' + + will expand "back" to ``reset --hard HEAD^``, but only when the command is ``git`` (:issue:`9411`, :issue:`10452`). Deprecations and removed features ---------------------------------