Friday, October 7, 2011

Re: Netrw and filtering

On Fri, Oct 7, 2011 at 1:28 PM, Charles Campbell
<Charles.E.Campbell@nasa.gov> wrote:
>>
>> Now that I know why what I was trying will NOT work, I'm curious: is
>> there actually a way to filter a view to show only files matching a
>> given pattern?
>>
>
> Not currently with netrw; however, the selected files should be highlighted
> with
>  exe "2match netrwMarkFile /".s:explore_match."/"
> ie. does 2match work with your setup?  I know that there was one complaint
> that files weren't visually made apparent; that was due to the gentleman's
> never having had syntax highlighting enabled (which seems to also disable
> :match, :2match, etc).

Yeah, they show in bold...but only in the current directory. I
normally have my netrw list format set to a tree view, so stuff in the
parent directory also shows up, but is not highlighted.

>>
>> I started this investigation while looking to improve
>> http://vim.wikia.com/wiki/Searching_for_files_in_a_directory_listing
>> to mention the tasks one could already accomplish with no custom
>> scripts. I had thought netrw could accomplish a lot of this, I now
>> believe this may have been incorrect.
>>
>>
>
> Well, netrw does support the notion of "hiding" (see :help netrw-hiding).
>  However, I don't have :Explore's "star" patterns tied into hiding (they're
> not tied into the marked-files, either -- that's a change I've considered
> making recently).
>

This looks promising, but again only seems to apply to the current
directory, not the parent, which is also showing in the tree view.

--
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

No comments:

Post a Comment