Skip to content

Search history by more than just command #1

Description

@alokedesai

Is your feature request related to a problem? Please describe.
Most shells currently only support searching through your history by the command. This is frustrating because I can't search by the output, the directory, timestamp, the box, or any other metadata. Additionally, the default history file is too small, I often try to search for commands that I ran a few months ago only to find they were flushed from my history.

Describe the solution you'd like
I would like to be able to be able to have a UI to infinitely search my terminal history. To start, I'd like to be able to search by:

  • Command
  • Output
  • Timestamp
  • Exit code
  • Directory
  • Box (e.g a specific remote box or a set of remote boxes)

Additional context
Once I find a command that matches my search result, I'd like to be able to find commands that I ran before and after in that specific session where the command was executed. Technically, we could do this by indexing Blocks in a local sqllite database or send them to our server and index them in the cloud.

Activity

  1. elviskahoro commented on Sep 10, 2021

    @elviskahoro
    Contributor

    There may be some concepts that can be incorporated from Ranger.
    A discord comment (feature-requests: 07/14/2021) mentioned elvish shell and their ranger based built in file manager.
    unknown

  2. changed the title [-]Search history by more than just command[/-] [+]Completions: Search history by more than just command[/+] on Nov 7, 2021
  3. changed the title [-]Completions: Search history by more than just command[/-] [+]Idea: Search history by more than just command[/+] on Nov 7, 2021
  4. changed the title [-]Idea: Search history by more than just command[/-] [+]Plugin: Search history by more than just command[/+] on Nov 15, 2021
  5. changed the title [-]Plugin: Search history by more than just command[/-] [+]TNC: Search history by more than just command[/+] on Nov 18, 2021
  6. changed the title [-]TNC: Search history by more than just command[/-] [+]Other: Search history by more than just command[/+] on Nov 18, 2021
  7. changed the title [-]Other: Search history by more than just command[/-] [+]Plugin: Search history by more than just command[/+] on Nov 18, 2021
  8. changed the title [-]Plugin: Search history by more than just command[/-] [+]Search history by more than just command[/+] on Dec 6, 2021
  9. elviskahoro commented on Dec 10, 2021

    @elviskahoro
    Contributor

    "I mean that just as one can search command history, storing and searching output history would be something that maybe is lacking in other apps. Wouldn’t such be nice to be able to view weeks or more of output and search?"

  10. locked and limited conversation to collaborators on Jan 20, 2022
  11. converted this issue into a discussion #635 on Jan 20, 2022
  12. added a commit that references this issue on May 4, 2026
    a057a10
  13. added a commit that references this issue on May 5, 2026
    3735e2e
  14. added a commit that references this issue on Jun 5, 2026
    81b2661
  15. added a commit that references this issue on Jul 2, 2026
    6b034db
  16. added a commit that references this issue on Jul 23, 2026
    f99a900
  17. added a commit that references this issue on Jul 28, 2026
    0666665
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions