swerc

anselm's simpler werc fork
git clone git://git.suckless.org/swerc
Log | Files | Refs | README

commit 0d653b60662a4131f02b8f8e1b644d56822fa53e
parent 0c82a4d8c564e93e7029d084d5f8496ad304cbe0
Author: uriel@suckless.org <unknown>
Date:   Sat,  5 Jul 2008 04:32:29 +0200

Make it easy to hide certain directories or files from _config
Diffstat:
Mbin/controller.rc | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/bin/controller.rc b/bin/controller.rc @@ -26,7 +26,13 @@ fn gentitle { } # 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 {