Skip to content

Recent commands UI #14779

@KyodaiKen

Description

@KyodaiKen

Description of the new feature/enhancement

In Linux, almost every terminal stores a persistent history of commands. I think in this case it's the interpreter like bash or zsh. But I think it should be possible to do it on app level per user as well.

Proposed technical implementation details (optional)

A simple SQLite DB file per user and per command interpreter (cmd, powershell, etc.) that stores the history of commands could be used. The location should be configurable in the preferences JSON.

  1. User enters:

    backup f: n:\backups\computername\system
    format f:
    
  2. User closes terminal and maybe even reboots windows

  3. User opens terminal back up and can push the arrow up key to recall the last commands they have executed.

  4. User cannot find what they're searching for, so they type:

    history
    

    And sees a list like this:

    0 2022-02-03 14:33: backup f: n:\backups\computername\system
    1 2022-02-03 14:43: format f:
    

    And can redo the command using !1 or !0.
    With #0 the line pops up to be edited before executing with the RETURN key

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-SettingsIssues related to settings and customizability, for console or terminalIn-PRThis issue has a related PRIssue-TaskIt's a feature request, but it doesn't really need a major design.Needs-Tag-FixDoesn't match tag requirementsProduct-TerminalThe new Windows Terminal.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions