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
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 checkoutProposed 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