Comments (13)
Thank you for trying this. I'll try to implement this as soon as I get access to a Windows system.
from fd.
I'd be happy to create a pull request!
from fd.
That would be great, thank you.
from fd.
Apart from the current compilation problems, colored output does not work on Windows (no support for ANSI sequences). We could consider using termcolor.
from fd.
PR #35 concerns windows compatibility.
Powershell does work with colored output. To be honest I haven't touched cmd since the inception of Powershell, but the termcolor crate looks like a nice feature for the hardcore cmd users!
from fd.
Oh, I didn't know that, that's cool! I just quickly tried cmd
today.. thanks!
from fd.
Closed via #35
from fd.
I'm surprised this was closed considering colored output does not work in cmd.exe
, I'm getting ansi escapes printed to the console every time I fire up fd
and have to add the --no-color
option each time. Maybe we should re-open this/add an issue on Windows coloring? termcolor crate sounded like a great option.
from fd.
This issue was regarding compatibility; The code simply didn't compile on windows. Having to flag no-color
should be the default behavior imho since this is a shortcoming of cmd
, not Windows. If you want colored output, try Powershell. It's like bash and Python had a baby in Microsoft country. (And it's developed by MSFT)
from fd.
from fd.
Then by all means, start a pull request to add cmd
support. I'm just saying that cmd
support is not the same as windows compatibility, and should be opened as another issue.
from fd.
I looked into it a bit today, there's a few issues in order to implement it:
cmd
has no support for "italic" or "underlined" text, in which case these options should be ignored- after checking out termcolor, I see no support for fixed colors. There seems to be work in progress here
from fd.
@jmcomets Cool, thanks for looking into this! I also think we should open a new issue for this.
from fd.
Related Issues (20)
- Add clippy check to github actions CI HOT 2
- [BUG] Wrong result when --full-path and .. HOT 3
- `--all` argument HOT 2
- Ignore top level .gitignore HOT 3
- Chinese version of fd project HOT 2
- The file name containing "-- " could not be found HOT 3
- fd? fdfind? fdclone? HOT 1
- Ignore cache directories by default HOT 2
- [BUG] Redirected stdout (pipe or file) on windows has wrong encoding HOT 2
- [BUG] fd -e o not works. HOT 2
- [BUG] search strings containing umlaut fails to find any results HOT 11
- find a file upwards HOT 2
- conda-forge package HOT 6
- FD version 10 stopped working on Windows 7 HOT 10
- Binary for Armv8 (RPI 5) HOT 2
- [BUG] Can't Match /etc/passwd HOT 2
- Ability to disable one or more `.gitignore` files without having to use `--no-ignore-vcs` HOT 3
- Why need to upgrade rust-version at the same time when upgrading the fd version? HOT 1
- [BUG] Regex seems to not be working correctly with dashes HOT 2
- [BUG] Docker mount namespace procfs /proc/PID/root [fd error]: Could not retrieve current directory HOT 2
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 fd.