Skip to content

zf 0.7.0

Compare
Choose a tag to compare
@natecraddock natecraddock released this 11 Feb 21:53
· 76 commits to master since this release

The headline feature of this release is strict path matching, another way that zf is optimized for filtering filepaths with accuracy and precision.

With strict path matching, when a query token contains a / character, any other characters after the slash must appear in a single path segment. As an example, the query /foo would match /foo/bar/ but not /fo/obar because the characters "foo" must appear in a single path segment.

This is useful for narrowing down results when you know the exact path structure of your files. As a more complex example, with the following paths

app/models/foo/bar/baz.rb
app/models/foo/bar-baz.rb
app/models/foo-bar-baz.rb
app/monsters/dungeon/foo/bar/baz.rb

The query a/m/f/b/baz filters to only app/models/foo/bar/baz.rb whereas in previous versions of zf the string app/monsters/dungeon/foo/bar/baz.rb is also included in the results. To end strict path matching, just add a space to start a new token.

This release also includes many fixes, refactors, optimizations, unicode support, and a few other small features.

See the changelog for more details.