Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Get the location from context shell in predictors  #19391

Copy link
Copy link
@Ashijo

Description

@Ashijo
Issue body actions

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

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.