blob: d366716ddc5d7ab52f6c7d36bf7be42b341bea3d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
;; -*- mode: lisp -*-
;; vim: set ft=lisp :
;;
;; krino rules for one directory. The syntax is explained in sexp-primer.md,
;; installed as share/doc/krino/sexp-primer.md under the install prefix,
;; which is ~/.local by default; every form is described in krino.conf(5).
(path "@PATH@")
;; Settings for this directory; each overrides the defaults in krino.conf.
;; Remove the ";; " to use one.
;; (recursive no) ; yes: also sort files in subdirectories
;; (max-depth 3) ; with recursive: how deep to go
;; (case ignore) ; ignore | strict
;; (fold yes) ; yes: "spolka" matches "spółka"
;; (min-age 2m) ; skip files modified in the last 2 minutes
;; (max-read 50M) ; no content extraction above this size
;; (max-size 2G) ; skip files larger than this entirely
;; (on-conflict suffix) ; suffix | skip | overwrite
;; Files and directories to leave alone, in .gitignore syntax.
(ignore "*.part" "*.crdownload" "*.aria2" ".*")
;; Files no rule here may touch, tested before any rule. The conditions in
;; one form must all hold; a file matching any form is set aside.
;; (exclude (type iso img)) ; by extension
;; (exclude (name "^keep-")) ; by name, a regex
;; (exclude (type pdf) (content "confidential")) ; by content
;; Rules run top to bottom. Every rule that matches a file adds its actions
;; to that file; (stop) ends the search for it. Some examples:
;; (rule "invoices"
;; (when (type pdf)
;; (content "invoice" "faktura"))
;; (move "Invoices/{mtime:%Y}")
;; (stop))
;; (rule "images"
;; (when (type image))
;; (move "Images"))
;; (rule "old-packages"
;; (when (type package) (age > 30d))
;; (delete))
|