-
Notifications
You must be signed in to change notification settings - Fork 178
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
Add Windows and Powershell support #280
Conversation
load and apply config from ~/.mcfly/mcfly.toml sample config file remove lightmode in favor of color customization interface cleanup and formatting correct example key_scheme supply alternate default colors for MCFLY_LIGHT
Thank you for working on this @jtschuster! Is there anyone who uses Powershell who could test this? |
FWIW I've been using this personally for the past few months and haven't really hit issues (though I didn't have any baseline usage on Linux or Mac with the original version) |
Is this ready? |
Not quite, there are still some scenarios with multiline commands that don't work yet. |
@cantino this is finally ready |
Merged, thank you for this contribution @jtschuster! |
Released, do you mind testing it? You may want to build master and make sure my change of [target.'cfg(windows)'.dependencies]
-autopilot = {git="https://github.com/autopilot-rs/autopilot-rs"}
+autopilot = "0.4.0" works okay. |
I'll have to double check but IIRC autopilot panicked in the code mcfly uses, so I had to fix it upstream, but it hasn't been released. |
cargo publish wouldn't work with a git dependency, it only supports
versioned dependencies unfortunately.
…On Sun, Dec 3, 2023 at 3:12 PM Jackson Schuster ***@***.***> wrote:
Released, do you mind testing it? You may want to build master and make
sure my change of
[target.'cfg(windows)'.dependencies]
-autopilot = {git="https://github.com/autopilot-rs/autopilot-rs"}
+autopilot = "0.4.0"
works okay.
I'll have to double check but IIRC autopilot panicked in the code mcfly
uses, so I had to fix it upstream, but it hasn't been released.
—
Reply to this email directly, view it on GitHub
<#280 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAUO64VRQADKFSBV7TVQYLYHUBMPAVCNFSM6AAAAAAQEO2SR2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZXGYZTEMRXHA>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
Ah, okay. It does work with the powershell init script since that uses a file output by default, but it does require the file. We could just remove the dependency and require -o on windows, or copy the necessary source from autopilot. I think it would be a fairly thin slice to get just windows typing capability. I'm not sure autopilot is being actively maintained. |
I don't have a Windows setup to test building so whichever you think is best is fine. Also, are the builds that GitHub is making sufficient for Windows users? |
I don't see any windows builds on the releases page, should I be looking somewhere else? My local build of main is working on my machine, though. |
@praveenperera do you know how to enable windows builds? |
Could we add usage instructions to the README @jtschuster? #400 |
This builds off of the PR @dmfay made a while back to use crossterm, adds workarounds for windows related to paths and the fake_typer, and a powershell init script. Behavior should be identical as far as I can tell, but I may have missed something.
Replaces relative-path with path-absolutize.