Skip to content

Get the location from context shell in predictors  #19391

@Ashijo

Description

@Ashijo

Summary of the new feature / enhancement

Hello

Having play with predictors I feel the need for a new feature.

It seems actually impossible to get the location of the shell calling the predictor, which is very limiting considering how useful it could be.
As an example, if I had the location, I could easily create a predictor suggesting the local git branches after git checkout

Proposed technical implementation details (optional)

IMO this value should be present in the PredictionClient, or at least I should have access to the PID of the shell. (client.Name only return PSReadLine)

How exactly do that ? No idea ^^, But I think it would be a change somewhere in PSReadLine

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Enhancementthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions