Comments (4)
OK, this has been solved by some recent changes -- see #5 and 4c6978c for details. Basically you can do an inverse regex match like this: reflex -R '^dir/' echo filename is {}
. Reflex notices that nothing inside dir/
can possibly match this regex and skips over it, avoiding the FS issues from #6.
So in your example, you can do -R ^vendor/
(or just -R vendor/
, which also works but is slightly less precise as it will also ignore things like foo/vendor
or foovendor
).
from reflex.
Thanks for the suggestion. This, #6, and #9 have overlapping requirements (although I note that, if it's for performance reasons or FS limitations, only whole directory matching meets your needs).
I think this is reasonable, but I'd like to give a bit more thought about how to balance these related requests.
from reflex.
from reflex.
Awesome, thanks @cespare.
from reflex.
Related Issues (20)
- Clear screen before re running a command. HOT 2
- multiple globs doesn't seem to work HOT 3
- Using sed to change filepath HOT 1
- `reflex --regex REGEX` does not catch argument HOT 2
- go command complains about Ctty not valid HOT 1
- stdin is ignored HOT 2
- Not working with Go 1.15.0 HOT 3
- Feature Request: Support for LiveReload Protocol?
- Error: Setctty set but Ctty not valid in child HOT 3
- -bash: reflex: command not found HOT 1
- Run go install on file change HOT 2
- Reflex now requires Go version v1.13 or higher HOT 1
- undefined: errors.Is on v0.3.1 HOT 1
- Any option to remove that `[00]` prefix HOT 2
- Reflex not installing on Windows 11 HOT 1
- Enforce group naming or Apply alias
- Command not found on Mac 13.0 HOT 1
- Don't decorate when there is only one command HOT 2
- executable file not found in $PATH HOT 2
- Watch multiple directories
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 reflex.