I previously found out, and posted, about how to load multiple buffers using :argadd
instead of :badd
. However, I would further like to add all files of all subdirectories matching a certain pattern. My current attempt looks like so:
:argadd !find . -name *.js -type f
But that adds
51 "!find" line 1
52 "~/Documents/neuro-sim/website/3.0" line 1
53 "-name" line 1
54 "*.js" line 1
55 "-type" line 1
56 "f" line 1
to the buffer. What modification do I have to make to make this work?
But why don't you do it with
:args **/*.js
(Yeah, I know you can't filter for files this way...)
HTH
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With