13 Commits

Author SHA1 Message Date
Alex Schroeder
ad1732f57f Fix all gocritic and golint issues 2025-12-06 14:10:20 +01:00
Alex Schroeder
67120af7cc Run goimports and rearrange imports 2025-12-06 13:38:46 +01:00
Alex Schroeder
f635cb738a go fmt 2025-09-01 17:40:17 +02:00
Alex Schroeder
8385bc424a Improving path vs filepath code
Rename the "path" argument to "name" if it refers to a page name (i.e.
a path) or "fp" if it refers to a filepath.

Don't escape Page.Name when ready to render a HTML template because in
some case this means unescaping in functions.

New method isHiddenName to replace ad-hoc checks for "." prefixes and
the like.
2025-03-14 00:56:40 +01:00
Alex Schroeder
afda27be76 Fix more errors regarding tree walking
Also prevent hidden files from being shown.
2024-02-10 00:35:02 +01:00
Alex Schroeder
9457d38cc1 Fix errors regarding skipping hidden files
When looking for hidden files, one needs to check whether the base
name of the path starts with a period. Sadly, a few places checked the
path itself, which only makes sense in the root directory.
2024-02-09 21:36:28 +01:00
Alex Schroeder
0da22a69da Added notify command 2023-11-05 10:48:32 +01:00
Alex Schroeder
8d49e01282 Errors from subcommands should go to STDERR 2023-10-12 15:33:59 +02:00
Alex Schroeder
0415fdc27f Fix grammar in output of "replace" subcommand 2023-10-12 09:00:59 +02:00
Alex Schroeder
1ee5b80d48 go fmt 2023-10-07 00:03:15 +02:00
Alex Schroeder
d39d9c198d Replace does regular string search by default
This adds the -regexp flag.
2023-10-05 09:35:42 +02:00
Alex Schroeder
8183d39eb3 Test the replace command 2023-09-21 14:55:31 +02:00
Alex Schroeder
806ee6d270 Renamed the cmd files 2023-09-21 13:48:03 +02:00