ref: d9453c56be4c6077460ce657832a58992e94306c
parent: a45fb36bc5e4f28601d95f22d9703258d03053f9
author: uriel <uriel@suckless.org>
date: Sat Jul 5 00:32:29 EDT 2008
Make it easy to hide certain directories or files from _config
--- a/bin/controller.rc
+++ b/bin/controller.rc
@@ -26,7 +26,13 @@
}
# Don't change var name or trailing ';', some dirs change the filter!
-dirfilter = '/\/[._]/d; s,^\./,,; s,\.md$,,; s,\.html,,;'
+dirfilter = '/\/[._]/d; s,^\./,,; s,\.md$,,; s,\.html,,; '
+
+fn hide_paths {
+ for(i in $*) {
+ dirfilter = $dirfilter^'/^'$i'$/d; '
+ }
+}
# Sidebar
fn menu {