Skip to content

Delete an entry from Ctrl-R history #9454

Closed

Description

@lgarron

#5791 and 049104e have made it a lot nicer to work from history.

I'd love to see this go one step further, by allowing a history entry to be deleted from the Ctrl-R history pager. For example, something similar to Chrome's autofill/omnibox dropdowns, where you can type Shift-Del to delete the currently selected dropdown item.

This would make it super practical to delete a recent item from history if you accidentally pasted a password, without having to clear any more than necessary:

  • Ctrl-R
  • Down key a few times
  • Shift-Del

It would also bring the history page up to feature parity with the fish_config UI, which has exactly two clear features: search all items, and delete any single item.

Screenshot 2023-01-07 at 15 20 59

fish 3.6.0
macOS Ventura 13.1

(previously suggested in #9089 (comment))

Activity

  1. added this to the fish-future milestone on Jan 8, 2023
  2. added 2 commits that reference this issue on Jan 29, 2023
    b3ee211
    37e38b7
  3. krobelus commented on Jan 29, 2023

    @krobelus
    Contributor

    sounds like a good idea, proposed implementation is in #9515
    Can we make it more discoverable, maybe bind it to Delete? When used accidentally it deletes the command permanently but I don't think that's a huge loss.

  4. added 2 commits that reference this issue on Jul 4, 2023
    254f201
    19476c7
  5. added a commit that references this issue on Jul 4, 2023
    052823c
  6. added a commit that references this issue on Oct 17, 2023
    64bff1a
  7. krobelus commented on Mar 15, 2024

    @krobelus
    Contributor

    @r3a1d3a1 yeah I noticed that as well. I didn't root-cause it yet. It no longer happens with the upcoming #10359, at least on a terminal that supports CSI u

  8. locked as resolved and limited conversation to collaborators on Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions