[pass] [PATCH] Add find/search command

Rephorm rephorm at rephorm.com
Fri Apr 5 06:07:27 CEST 2013


On Apr 4, 2013, at 3:06 PM, "Jason A. Donenfeld" <Jason at zx2c4.com> wrote:
> What I had in mind was actually just displaying the directory names
> that match, but not necessarily showing their contents (unless the
> contents also has matching strings). But I could be persuaded
> otherwise to go with what you've done; it's certainly easier to
> implement your way. What made you choose one over the other?

I personally have a fairly flat hierarchy with one or, at most two levels of directories. Typically, I use a structure like domain.com/username. The number of usernames is typically also small 1-3 or so.
So, for *this* use case, it's worth giving the extra information included in the full contents (to avoid another step of info retrieval).

But, for general tree usage, it's probably better to just include the dir and not the contents.

I could change the name of the matchdir option to something related to "show matching directories' contents" (suggestions appreciated).

The default --purge can do what you want with a simple patch like Alexis'

Brian





More information about the Password-Store mailing list