Comments (21)
It doesn't work well with variables in the case of PowerShell. When I select a command that expects a variable:
from navi.
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.
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.
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.
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.
Thanks for opening your first issue here!
from navi.
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.
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.
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.
Can't wait! Maybe also publish to scoop?
from navi.
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.
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.
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.
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.
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.
Added Navi to my custom scoop repo Milo123459/cone
.
from navi.
If you get the time, please make a widget for powershell.
from navi.
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.
PowerShell 7+ is absolutely amazing. Would be indeed great to have it. Easy to learn too.
from navi.
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.
It would be great if there was support for specifying config path. ScoopInstaller/Main#4647
from navi.
Related Issues (20)
- Basic curl cheatsheet doesn't work on zsh due to quoting issues HOT 2
- Respect FZF fg colors or disable text coloring entirely HOT 1
- Clearer information about the `.cheat` files and `navi` config paths HOT 1
- `navi info cheats-path` ignores `$NAVI_PATH` and `$NAVI_CONFIG` HOT 2
- Non-Interactive Cheatsheet Install HOT 6
- Any way to have snippets on the left rather than on the right? HOT 2
- Security concern about Windows binary (v2.23.0) HOT 2
- Enable the use of Bash on Windows for both Navi and fzf HOT 1
- Sort by recency of usage or priority HOT 1
- Unexpected output from zsh widget with input HOT 1
- zsh widget results vary with terminal width
- command not found trying to execute navi on windows HOT 1
- Add another topic for the repo `cheatsheet` HOT 1
- searching doesn't work for descriptions longer than terminal size
- Provide Statically Compiled Binaries for (aarch64|arm64) Linux HOT 1
- Using https://devhints.io/ as a backend HOT 1
- ":/Scoop/apps/gow/current/bin/bash.exe": E:Scoopappsnavi2.23.0navi.exe: command not found HOT 1
- Unable to execute some custom commands HOT 1
- Add optional arguments HOT 1
- Optional placeholder value for variable HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from navi.