-
-
Notifications
You must be signed in to change notification settings - Fork 572
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Powershell Support #84
Comments
Any news on PowerShell support? |
@ellie and I are not against getting some basic powershell support, but neither of us run powershell or have the time right now to get familiar. We have started to partially and unofficially support windows builds now, so it'll be the powershell integration that needs investigating.
|
Might be worth noting that Powershell is not a windows-only shell. I use it on my Linux machines and it's available for OSX as well. |
I've been playing around with PowerShell support, see my prototype - you can import this file from your profile. This mostly works for adding and updating the history. It's not perfect, e.g. it will include the time to render the prompt, which can be non-trivial in some cases. I couldn't find a clean way to use redirection to capture the result from an interactive search, so I resorted to using a temporary file. It feels pretty slow on my VM but it seems to work. One other thing I think PowerShell needs that doesn't apply to any other currently supported shell. PowerShell's notion of the current directory goes beyond the filesystem. |
|
This issue has been mentioned on Atuin Community. There might be relevant details there: |
I would also love this feature! |
In case people are interested, this almost works:
A fight has to be had with PSReadLine to allow Ctrl + R and UpArrow to work, and deal with Vim vs Emacs mode, but running Unfortunately, since PowerShell lacks precmd and postcmd hooks, it's hard to implement this in exactly the same way as other shells do. The recorded timing is a bit off: what I observe is the first couple of commands run in a new PowerShell session seem to get the time spent wrong (sometimes by as much as hundreds of ms), but afterwards the error decreases rapidly to about 10ms or 20ms. |
If anyone has been using the above long term, and without major issue, it would be awesome to work towards getting it included |
The key bindings don't work in the above, launching atuin interactive search by running Ctrl + R scrambles all characters in the screen. The issue has likely something to do with this: PowerShell/PSReadLine#1576 . PSFzf does manage to successfully make things work, I think the reason is they are spawning a process within PowersShell with appropriate redirections as part of the PSReadLine chord binding, so whomever has the heart to deal with that might find that technique useful (see here: https://github.com/kelleyma49/PSFzf/blob/master/PSFzf.Base.ps1#L406 ). |
Not exactly kelleyma49/PSFzf#189 kelleyma49/PSFzf#274 |
But surly we can use a different chord - does it HAVE to be Ctrl+R ? |
Would be lovely to get an update on this. |
This issue has been mentioned on Atuin Community. There might be relevant details there: https://forum.atuin.sh/t/multiple-shells-across-multiplle-machines/627/2 |
I absolutely love the project and would love to be able to use it within powershell
The text was updated successfully, but these errors were encountered: