I am playing with ICommandPredictor, a way to create powershell predictor in C#
My goal is to show as suggestion the list of available git branch in the current directory, and by current directory I mean : "the location where is the shell calling the predictor"
But I cannot find a way to get it.
I tried Environment.CurrentDirectory, Directory.GetCurrentDirectory() but it always return the starting location of the shell. I also played a bit with GetPSSubsystemCommand and SubsystemManager but not luck for now.
I'm starting to think it is not possible to get this data.