Age | Commit message (Collapse) | Author | |
---|---|---|---|
2024-04-06 | rename *.mdwn to */index.md, except index/topbar/farbar/sidebar files | Jonas Smedegaard | |
command: ``` perl -MPath::Tiny -WE 'use strict; path(".")->visit(sub{return unless -f && /\.mdwn$/; my $stem=$_->basename(".mdwn"); my $new=$_->sibling($stem,"index.md"); return if $stem =~ /^index|topbar|sidebar|farbar|footer$/ || $new->exists; $new->parent->mkpath; system("git","mv", $_, $new)},{recurse=>1})' ``` |