tools.completion: add "paths-matching".
parent
5e57a8258d
commit
d5998a712f
|
@ -2,9 +2,9 @@
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
|
|
||||||
USING: accessors arrays assocs colors.constants combinators fry
|
USING: accessors arrays assocs colors.constants combinators fry
|
||||||
io kernel locals make math math.order namespaces sequences
|
io io.directories kernel locals make math math.order namespaces
|
||||||
sorting strings unicode.case unicode.categories unicode.data
|
sequences sorting strings unicode.case unicode.categories
|
||||||
vectors vocabs vocabs.hierarchy words ;
|
unicode.data vectors vocabs vocabs.hierarchy words ;
|
||||||
|
|
||||||
IN: tools.completion
|
IN: tools.completion
|
||||||
|
|
||||||
|
@ -97,3 +97,6 @@ PRIVATE>
|
||||||
|
|
||||||
: colors-matching ( str -- seq )
|
: colors-matching ( str -- seq )
|
||||||
named-colors dup zip completions ;
|
named-colors dup zip completions ;
|
||||||
|
|
||||||
|
: paths-matching ( str path -- seq )
|
||||||
|
directory-files dup zip completions ;
|
||||||
|
|
Loading…
Reference in New Issue