Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

tools.completion: add "paths-matching".

  • Loading branch information...
commit bea3053a318c9c3d48c0822dbf79b9d9e82d9785 1 parent c6a404b
@mrjbq7 mrjbq7 authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 basis/tools/completion/completion.factor
View
9 basis/tools/completion/completion.factor
@@ -2,9 +2,9 @@
! See http://factorcode.org/license.txt for BSD license.
USING: accessors arrays assocs colors.constants combinators fry
-io kernel locals make math math.order namespaces sequences
-sorting strings unicode.case unicode.categories unicode.data
-vectors vocabs vocabs.hierarchy words ;
+io io.directories kernel locals make math math.order namespaces
+sequences sorting strings unicode.case unicode.categories
+unicode.data vectors vocabs vocabs.hierarchy words ;
IN: tools.completion
@@ -97,3 +97,6 @@ PRIVATE>
: colors-matching ( str -- seq )
named-colors dup zip completions ;
+
+: paths-matching ( str path -- seq )
+ directory-files dup zip completions ;
Please sign in to comment.
Something went wrong with that request. Please try again.