I know you can write support for custom PSDrives. But those are always a root of a file system. What would be nice if there was a way to allow for VFS start at arbitrary nodes of the file system, such as using Set-Location
to enter archive file maybe and use them as if they were folders. (Kinda like Far does this).
Is there any way to achieve this? I know, it would be some work to get it right and working, but at the moment I am more interested whether it would be possible at all.
ETA: What I don't want is a new PSDrive for every archive I enter, so the following isn't actually what I'm after:
PS C:\Path> Invoke-Magic stuff.zip
PS C:\Path> Set-Location MyNewDrive:
PS MyNewDrive:> _
but rather
PS C:\Path> Set-Location stuff.zip
PS C:\Path\stuff.zip> _