Comments (14)
kondo . --ignored-dirs opt/nodebin/
works like a charm! 🎉
from kondo.
Thanks for confirming @azzamsa :)
from kondo.
I haven't put much thought into ignoring directories.
Is opt/nodebin part of your gitignore? It would be possible to modify kondo so that it respects gitignore when searching.
from kondo.
Kondo will search recursively down each directory you provide it, so if opt
is shown even if opt/nodebin
is excluded, it will be found through opt
, hope that makes sense.
from kondo.
It means no mechanism to tell kondo what directory to ignore?
from kondo.
Not yet, but it could be added. Do you usually exclude directories by their exact path, or by glob?
How many directories do you exclude on average when you run kondo?
from kondo.
How many directories do you exclude on average when you run kondo?
one, it contains all language server installed through npm.
Not yet, but it could be added. Do you usually exclude directories by their exact path, or by glob?
So far, it is path.
from kondo.
It would be possible to add an ignore argument, would something like this work? Then you wouldn't need to manually list the directories via ls/exa.
kondo --ignore-dir opt/nodebin
Just curious, do you often do any other kind of filtering/preprocessing before passing the directory list to kondo?
from kondo.
Just curious, do you often do any other kind of filtering/preprocessing before passing the directory list to Kondo?
I run Kondo once a week, and the only directory in kondo $HOME
that I want to ignore is just one. So, previously, I just answer n
to the interactive prompt.
from kondo.
Do you also use the date filter?
from kondo.
@azzamsa could you try this branch (https://github.com/tbillington/kondo/tree/ignore-dirs) and see if it handles your use-case ? thank you :)
from kondo.
I had the same suggestion, and #90 works perfectly! @tbillington
from kondo.
Okay, thanks @Aziks0 , I'll merge it. Let me know if you have any issue :)
from kondo.
I'll close this issue for now.
from kondo.
Related Issues (20)
- is it possible to run kondo recursively? HOT 3
- Option for non-interactive mode HOT 2
- "kondo ." does not work inside $HOME HOT 14
- Binary .exe under Windows 11 does not start HOT 2
- Following symlinks is a questionable default HOT 4
- Only delete old project (skip active project) HOT 7
- Os error NotFound when trying to ignore certain directories with `ls --ignore=...` HOT 4
- Make a new release HOT 6
- Could not compile kondo-ui HOT 1
- kondo doesn't build on FreeBSD HOT 1
- Add .angular folder HOT 1
- No icons in UI (actually, just one). Font needed? HOT 1
- Clean up more Python-related caches
- Support deleting the Zig cache HOT 1
- `--ignored-dirs` argument ignores the project itself HOT 3
- Support system level cleaning
- Support moving artifacts to system trash
- Issues deleting directories. Error: "Directory not empty" HOT 4
- 72 years ago 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 kondo.