Monday, January 6, 2020

Re: Populate arglist with files, exclude directories

It might be a shell thing. I use zsh and yes, I got all the results I expected.

On Mon, Jan 6, 2020 at 1:46 AM Richard Mitchell <rwmitchell@gmail.com> wrote:
What shell are you using?  I'm guessing bash?  Time to update to zsh

  ls *(.)

will list only regular files.  conversely

  ls -d *(/) will list only directories.

zsh is to bash what tcsh was to csh, but a couple magnitudes more.  oh-my-zsh and iterm2 (if OS X) and you'll never look back.


On Sunday, January 5, 2020 at 10:49:52 AM UTC-5, Jason Franklin wrote:
Greetings,

I'm having trouble finding a clean way to do this...

In a project directory, I will often use the command below to populate the arglist:

  :args **

This works okay, but it includes directories in the arglist which will be opened with netrw.

Is there a concise, clean method to omit directories from the arglist when populating it with
all files below the current project directory?

--
Jason Franklin

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/a867e56e-de7e-404d-91a1-f6def04b2c76%40googlegroups.com.


--
When in doubt become a philosopher.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAN%2Bhyd18Cu3SUW8Yef3QFDB2nOLtf6be3SyxJPv7qHtALK9q6w%40mail.gmail.com.

No comments: