CHANGELOG: work on 3.2.0

[ci skip]
This commit is contained in:
David Adam 2020-08-27 22:39:48 +08:00
parent b25b291d38
commit c15a4712d0

View File

@ -26,7 +26,7 @@ Notable improvements and fixes
will add /opt/mycoolthing/bin to the beginning of $fish_user_path without creating duplicates, will add /opt/mycoolthing/bin to the beginning of $fish_user_path without creating duplicates,
so it can be called again and again from config.fish or just once interactively, and the path will just be there, once. so it can be called again and again from config.fish or just once interactively, and the path will just be there, once.
- ``fish_preexec`` and ``fish_postexec`` events are no longer triggered for empty commands. - ``fish_preexec`` and ``fish_postexec`` events are no longer triggered for empty commands (#4829).
- The ``test`` builtin now better shows where an error occured (#6030):: - The ``test`` builtin now better shows where an error occured (#6030)::
> test 1 = 2 and echo true or false > test 1 = 2 and echo true or false
@ -75,10 +75,14 @@ Scripting improvements
- The ``fish_prompt`` event no longer fires when ``read`` is used. If - The ``fish_prompt`` event no longer fires when ``read`` is used. If
you need a function to run any time ``read`` is invoked by a script, you need a function to run any time ``read`` is invoked by a script,
use the new ``fish_read`` event instead. use the new ``fish_read`` event instead.
- ``status`` gained new ``dirname`` and ``basename`` convenience commands - ``status`` gained new ``dirname`` and ``basename`` convenience subcommands
to get just the directory to the running script or the name of it, to get just the directory to the running script or the name of it,
to simplify a common ``(dirname (status filename))`` idiom (#7076). to simplify common tasks such as running ``(dirname (status filename))`` (#7076).
- The ``_`` gettext function is now implemented as a builtin for performance purposes (#7036). - The ``_`` gettext function is now implemented as a builtin for performance purposes (#7036).
- Broken pipelines are now handled more smoothly; in particular, bad redirection mid-pipeline
results in the job continuing to run but with the broken file descriptor replaced with a closed
file descriptor. This allows better error recovery and is more in line with other shells'
behaviour (#7038).
Interactive improvements Interactive improvements
------------------------ ------------------------
@ -95,6 +99,8 @@ Interactive improvements
- ``fish_key_reader`` and ``fish_indent`` send output from ``--version`` to standard output, matching other fish binaries (#6964). - ``fish_key_reader`` and ``fish_indent`` send output from ``--version`` to standard output, matching other fish binaries (#6964).
- A new variable ``$status_generation`` is incremented only when the previous command produces a status. This can be used, for example, to check whether a failure status is a holdover due to a background job, or actually produced by the last run command. - A new variable ``$status_generation`` is incremented only when the previous command produces a status. This can be used, for example, to check whether a failure status is a holdover due to a background job, or actually produced by the last run command.
- ``fish_greeting`` is now a function that reads a variable of the same name, and defaults to setting it globally. This removes a universal variable by default and helps with updating the greeting. However, to disable the greeting it is now necessary to explicitly specify universal scope (``set -U fish_greeting``) or to disable it in config.fish (#7265). - ``fish_greeting`` is now a function that reads a variable of the same name, and defaults to setting it globally. This removes a universal variable by default and helps with updating the greeting. However, to disable the greeting it is now necessary to explicitly specify universal scope (``set -U fish_greeting``) or to disable it in config.fish (#7265).
- Events are properly emitted after a job is cancelled (#2356).
New or improved bindings New or improved bindings
@ -102,6 +108,7 @@ New or improved bindings
- As mentioned above, new readline commands ``undo`` (Ctrl+_ or Ctrl+Z) and ``redo`` (Alt-/) can be used to revert - As mentioned above, new readline commands ``undo`` (Ctrl+_ or Ctrl+Z) and ``redo`` (Alt-/) can be used to revert
changes to the command line or the pager search field (#6570). changes to the command line or the pager search field (#6570).
- Vi mode bindings now support ``dh``, ``dl``, ``c0``, ``cf``, ``ct``, ``cF``, ``cT``, ``ch``, ``cl``, and ``y0`` (#6648).
- The readline command ``beginning-of-history`` (Page Up) now moves to the oldest search instead of the youngest - that's ``end-of-history`` (Page Down). - The readline command ``beginning-of-history`` (Page Up) now moves to the oldest search instead of the youngest - that's ``end-of-history`` (Page Down).
- New readline command ``forward-single-char`` to move one character to the right, and if an autosuggestion is available, only take a single char from it (#7217). - New readline command ``forward-single-char`` to move one character to the right, and if an autosuggestion is available, only take a single char from it (#7217).
- New function ``__fish_preview_current_file`` (Alt+O) opens the - New function ``__fish_preview_current_file`` (Alt+O) opens the
@ -147,10 +154,11 @@ Completions
- ``create_ap`` - ``create_ap``
- ``deno`` - ``deno``
- ``dhclient`` - ``dhclient``
- ``dropdb``, ``createdb``, ``pg_restore``, ``pg_dump`` and - Postgres-related commands ``dropdb``, ``createdb``, ``pg_restore``, ``pg_dump`` and
``pg_dumpall`` ``pg_dumpall`` (#6620).
- ``gh`` - ``gh``
- ``gitk`` - ``gitk``
- ``hikari`` (#7083)
- ``imv`` (#6675) - ``imv`` (#6675)
- ``mpc`` - ``mpc``
- ``nc``, ``netcat``, ``nc.openbsd``, ``nc.traditional`` - ``nc``, ``netcat``, ``nc.openbsd``, ``nc.traditional``
@ -163,6 +171,7 @@ Completions
``rst2xetex``, ``rst2xml`` and ``rstpep2html`` ``rst2xetex``, ``rst2xml`` and ``rstpep2html``
- ``sphinx-apidoc``, ``sphinx-autogen``, ``sphinx-build`` and - ``sphinx-apidoc``, ``sphinx-autogen``, ``sphinx-build`` and
``sphinx-quickstart`` ``sphinx-quickstart``
- ``strace`` (#6656)
- ``tcpdump`` - ``tcpdump``
- ``tig`` - ``tig``
- ``windscribe`` - ``windscribe``
@ -173,6 +182,7 @@ Completions
- ``zopfli``, and ``zopflipng`` - ``zopfli``, and ``zopflipng``
- Lots of improvements to completions. - Lots of improvements to completions.
- Improvements to the manpage completion generator (#7086).
Deprecations and removed features Deprecations and removed features
--------------------------------- ---------------------------------