navi
navi copied to clipboard
Support Windows (cmd/Powershell)
Please add support to Windows (Choco, curl)
Thanks for opening your first issue here!
Hi! I'm not very familiar with the Windows ecosystem. What setup do you have exactly? WSL? Cygwin? Git for windows?
In any of these cases, installing via git + make should work out of the box and the problem is limited to adding a package to choco, right?
Otherwise, I don't plan to support the vanilla command prompt or Powershell, because navi relies heavily on tools that only exist on Unix-like systems.
The only hope I see for this case is a tool out there able to compile bash scripts to a Windows binary, but that probably doesn't exist.
navi is now written in Rust. It should be relatively trivial to start supporting Windows.
AFAIK, the only change needed is to use cmd/Powershell instead of bash to generate variable suggestions.
Hi! Sorry for the late update.
Being 100% honest here: this is a feature it would be nice to have but unfortunately I haven't had much free time lately, so I have no plans to implement this in the near future.
If anyone could submit a PR for this, I'll gladly accept it, though! 👍
Work on this front is mostly, if not all, done. In theory, navi should be buildable for the x86_64-pc-windows-gnu
target now.
bash
still is needed under the hood, but it should be possible to use it under Cygwin now.
(In WSL as well, but that has always been the case)
Can't wait! Maybe also publish to scoop?
Scoop: https://github.com/ScoopInstaller/Main/pull/2100
Choco: https://github.com/denisidoro/navi/issues/532
Pre-compiled binary: https://github.com/denisidoro/navi/releases
I'd love to hear feedback from Windows users, specially because I don't use Windows so I can't test navi on it.
BTW, bash is still necessary under the hood but, if there's enough demand for it, navi could work entirely under cmd.exe. Please let me know if there's a use case for that.
I mean I think a lot of people want it on windows because of the "command fixing" system, which is literally amazing.
Thanks for the other info.
Oh and, it can work completely under cmd or powershell.
For chocolatey users, navi 2.15.1 package has been approved. Try it out and if something fails during installation, feel free to report a issue in the package repository.
Package for version 2.16.0 is under moderation and may be approved in few days.
The PR for scoop is out of date, so I'm making one for this scoop bucket: https://github.com/kidonng/sushi
Btw, making it run entirely on cmd.exe would be best.
You can already try running navi entirely on cmd.exe by setting "cmd.exe" as shell.command
in the config file: https://github.com/denisidoro/navi/blob/master/docs/config_file_example.yaml
Some stuff will be broken (such as navi repo add
and copying to the clipboard) but I can fix reported issues until navi is completely agnostic to POSIX shells.
TL;DR: beta testers wanted
Added Navi to my custom scoop repo Milo123459/cone
.
If you get the time, please make a widget for powershell.
I have zero experience with Powershell :(
I created https://github.com/denisidoro/navi/issues/570 with the label "help wanted", though.
If someone submits a PR, I'll gladly review/merge it!
PowerShell 7+ is absolutely amazing. Would be indeed great to have it. Easy to learn too.
In fact it works! You just have to change https://github.com/denisidoro/navi/blob/master/docs/config_file_example.yaml to use powershell, and use choco to install it. Should be better documented, as this is great!
Sorry for the confusion.
PowerShell should be working for a while, indeed.
What I meant is that navi currently doesn't support a PoweShell shell widget (see https://github.com/denisidoro/navi/issues/570)
It doesn't work well with variables in the case of PowerShell. When I select a command that expects a variable:
It would be great if there was support for specifying config path. https://github.com/ScoopInstaller/Main/issues/4647