Skip to content

Make history prediction location awareย #3472

Open
@SteveL-MSFT

Description

@SteveL-MSFT

Prerequisites

  • Write a descriptive title.

Description of the new feature/enhancement

Include the current location (working directory) as part of history so that predictions based on history would show commands used from that location previously. If nothing is found, then fallback to current strategy.

Example:

> cd ~/repos/powershell
~/repos/powershell> git re

# prediciton would be something like: git reset --hard upstream/master

> cd ~/repos/somethingelse
~/repos/somethingelse> git re

# prediction would be something like: git reset --hard upstream/main
# in this example, you use `main` instead of `master` branch

Proposed technical implementation details (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-HistoryImprovementsLabel for tracking different improvements to historyArea-PredictorsLabel for issues related to predictorsIssue-EnhancementIt's a feature request.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions