-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.toml
More file actions
200 lines (168 loc) · 6.57 KB
/
config.example.toml
File metadata and controls
200 lines (168 loc) · 6.57 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
# Example configuration for cfrename
# On first run, cfrename will offer to create this file automatically.
#
# Platform-specific config locations:
# - Linux: ~/.config/cfrename/config.toml
# - macOS: ~/Library/Application Support/io.swiizyy.cfrename/config.toml
# - Windows: %APPDATA%\swiizyy\cfrename\config.toml
# =============================================================================
# GLOBAL SETTINGS
# =============================================================================
# Language for user interface (optional)
# Supported values: "english" (or "en"), "french" (or "fr")
# Default: english
language = "english"
# Base path for all document organization (optional)
# If set, category target_directory paths will be relative to this base path
# Supports tilde (~) expansion for home directory
base_path = "~/Documents"
# Date input formats (optional)
# Defines the formats accepted when entering dates interactively
# The first format is used as the default display format
# Note: Output filenames will ALWAYS use YYYY-MM-DD format regardless of input
date_formats = [
"%Y-%m-%d", # YYYY-MM-DD (ISO format)
"%d/%m/%Y", # DD/MM/YYYY (European format)
"%d-%m-%Y", # DD-MM-YYYY
]
# =============================================================================
# CATEGORIES
# =============================================================================
# Each category can have a target_directory:
# - If base_path is set and target_directory is relative → combined
# Example: base_path="~/Documents" + target_directory="Administrative"
# → ~/Documents/Administrative
# - If target_directory is absolute → used as-is (base_path ignored)
# - If target_directory is omitted → files stay in source directory
# =============================================================================
# ============================================================================
# ADMINISTRATIVE CATEGORY
# ============================================================================
[categories.administrative]
name = "Administrative"
# Relative path (combined with base_path if set)
target_directory = "Administrative"
# Tax documents
[categories.administrative.types.tax]
name = "Tax"
descriptions = ["Notice", "Declaration", "Receipt", "Refund"]
require_entity = false
# Bank documents
[categories.administrative.types.bank]
name = "Bank"
descriptions = ["Statement", "IBAN", "Contract", "Card"]
require_entity = true
entities = ["BNP", "Credit Agricole", "Societe Generale", "Revolut"]
# Insurance documents
[categories.administrative.types.insurance]
name = "Insurance"
descriptions = ["Policy", "Claim", "Certificate", "Invoice"]
require_entity = true
entities = ["AXA", "Allianz", "Generali", "MAIF"]
# Utilities
[categories.administrative.types.utilities]
name = "Utilities"
descriptions = ["Bill", "Contract", "Statement"]
require_entity = true
entities = ["Electricity", "Water", "Gas", "Internet", "Phone"]
# ============================================================================
# PROFESSIONAL CATEGORY
# ============================================================================
[categories.professional]
name = "Professional"
# Relative path (combined with base_path)
target_directory = "Professional"
# Work documents
[categories.professional.types.work]
name = "Work"
descriptions = ["Permanent Contract", "Fixed-Term Contract", "Amendment", "Payslip", "Resignation"]
require_entity = true
entities = ["ACME", "TechCorp", "GlobalServices"]
# Training documents
[categories.professional.types.training]
name = "Training"
descriptions = ["Certificate", "Diploma", "Program", "Attendance"]
require_entity = false
# Business documents
[categories.professional.types.business]
name = "Business"
descriptions = ["Invoice", "Quote", "Purchase Order", "Receipt"]
require_entity = true
entities = ["Client A", "Client B", "Client C"]
# ============================================================================
# MEDICAL CATEGORY
# ============================================================================
[categories.medical]
name = "Medical"
# Relative path (combined with base_path)
target_directory = "Medical"
# Prescriptions
[categories.medical.types.prescription]
name = "Prescription"
descriptions = ["Consultation", "Renewal", "Specialist"]
require_entity = false
# Lab results
[categories.medical.types.lab]
name = "Lab"
descriptions = ["Blood Test", "Radiology", "Urine Test", "Other"]
require_entity = false
# Medical reports
[categories.medical.types.report]
name = "Report"
descriptions = ["Annual Checkup", "Specialist Visit", "Emergency", "Surgery"]
require_entity = false
# Vaccinations
[categories.medical.types.vaccination]
name = "Vaccination"
descriptions = ["Certificate", "Record", "Appointment"]
require_entity = false
# ============================================================================
# PERSONAL CATEGORY
# ============================================================================
[categories.personal]
name = "Personal"
# Relative path (combined with base_path)
target_directory = "Personal"
# ID documents
[categories.personal.types.id]
name = "ID"
descriptions = ["Passport", "ID Card", "Driver License", "Birth Certificate"]
require_entity = false
# Receipts
[categories.personal.types.receipt]
name = "Receipt"
descriptions = ["Purchase", "Warranty", "Return", "Gift"]
require_entity = false
# Legal documents
[categories.personal.types.legal]
name = "Legal"
descriptions = ["Contract", "Power of Attorney", "Will", "Deed"]
require_entity = false
# Travel documents
[categories.personal.types.travel]
name = "Travel"
descriptions = ["Ticket", "Booking", "Visa", "Insurance"]
require_entity = false
# =============================================================================
# EXAMPLE: Category with absolute path (ignores base_path)
# =============================================================================
# [categories.archived]
# name = "Archived"
# # Absolute path - base_path will be ignored for this category
# target_directory = "/mnt/backup/documents/archived"
#
# [categories.archived.types.old]
# name = "Old Documents"
# descriptions = ["Archive"]
# require_entity = false
# =============================================================================
# EXAMPLE: Category without target_directory (stays in source folder)
# =============================================================================
# [categories.temporary]
# name = "Temporary"
# # No target_directory - files stay where they are, just renamed
#
# [categories.temporary.types.misc]
# name = "Miscellaneous"
# descriptions = ["Temporary", "Draft", "Notes"]
# require_entity = false