Skip to content

Conversation

@Xiretza
Copy link
Contributor

@Xiretza Xiretza commented Oct 5, 2025

Description

Without this, e.g. Alt-L shows the directory entries one per line and without colors.

TODOs:

  • Changes to fish usage are reflected in user documentation/manpages.
  • Tests have been added for regressions fixed
  • User-visible changes noted in CHANGELOG.rst

Without this, e.g. Alt-L shows the directory entries one per line and
without colors.
@krobelus krobelus added this to the fish 4.1.2 milestone Oct 5, 2025
- Added a workaround for old versions of Zellij where :kbd:`escape` processing was delayed (:issue:`11868`).
- Fixed a case where the :doc:`web-based configuration tool <cmds/fish_config>` would generate invalid configuration (:issue:`11861`).
- Fixed a case where upgrading fish would break old versions of fish that were still running.
- Fix Alt+L binding not formatting ls output correctly (one entry per line, no colors).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW our nice formatting syntax would be :kbd:ls

string >&2 repeat -N \n --count=(math (commandline | count) - $line + 1)
printf %s\n $erase_line($argv) >&2
printf %s $erase_line >&2
$argv >&2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oof, my bad.

As written, this fails to clear lines beyond the first one. This is
not a problem right now (so it should also be fine to revert
1fdf37c (__fish_echo: fully overwrite lines, 2025-09-17),
because IIRC clearing the first line wasn't needed because fish
already does that. But it can't hurt, so LGTM as is.)

Going forward we should probably clear to end of string here, so \e[J AKA tput ed.
But I'm happy to add that later, only when the fix mentioned in 1fdf37c actually needed.

@krobelus krobelus closed this in b7fabb1 Oct 6, 2025
krobelus pushed a commit that referenced this pull request Oct 6, 2025
Without this, e.g. Alt-L shows the directory entries one per line and
without colors.

Closes #11888

(cherry picked from commit b7fabb1)
@Xiretza
Copy link
Contributor Author

Xiretza commented Oct 6, 2025

Thanks for taking care of that!

@Xiretza Xiretza deleted the lambda/fix-fish-echo-colors branch October 6, 2025 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants