Giter Site home page Giter Site logo

Comments (21)

kboom avatar kboom commented on May 7, 2024 4

It doesn't work well with variables in the case of PowerShell. When I select a command that expects a variable:

image

from navi.

denisidoro avatar denisidoro commented on May 7, 2024 1

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.

from navi.

denisidoro avatar denisidoro commented on May 7, 2024 1

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)

from navi.

denisidoro avatar denisidoro commented on May 7, 2024 1

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

from navi.

kboom avatar kboom commented on May 7, 2024 1

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!

from navi.

welcome avatar welcome commented on May 7, 2024

Thanks for opening your first issue here!

from navi.

denisidoro avatar denisidoro commented on May 7, 2024

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.

from navi.

denisidoro avatar denisidoro commented on May 7, 2024

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.

from navi.

denisidoro avatar denisidoro commented on May 7, 2024

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! 👍

from navi.

Milo123459 avatar Milo123459 commented on May 7, 2024

Can't wait! Maybe also publish to scoop?

from navi.

denisidoro avatar denisidoro commented on May 7, 2024

Scoop: ScoopInstaller/Main#2100

Choco: #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.

from navi.

denisidoro avatar denisidoro commented on May 7, 2024

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.

from navi.

Milo123459 avatar Milo123459 commented on May 7, 2024

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.

from navi.

kai2nenobu avatar kai2nenobu commented on May 7, 2024

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.

from navi.

Milo123459 avatar Milo123459 commented on May 7, 2024

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.

from navi.

Milo123459 avatar Milo123459 commented on May 7, 2024

Added Navi to my custom scoop repo Milo123459/cone.

from navi.

Milo123459 avatar Milo123459 commented on May 7, 2024

If you get the time, please make a widget for powershell.

from navi.

denisidoro avatar denisidoro commented on May 7, 2024

I have zero experience with Powershell :(

I created #570 with the label "help wanted", though.

If someone submits a PR, I'll gladly review/merge it!

from navi.

kboom avatar kboom commented on May 7, 2024

PowerShell 7+ is absolutely amazing. Would be indeed great to have it. Easy to learn too.

from navi.

denisidoro avatar denisidoro commented on May 7, 2024

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 #570)

from navi.

HUMORCE avatar HUMORCE commented on May 7, 2024

It would be great if there was support for specifying config path. ScoopInstaller/Main#4647

from navi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.