-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.toml
More file actions
87 lines (69 loc) · 2.66 KB
/
config.example.toml
File metadata and controls
87 lines (69 loc) · 2.66 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
# Magonote Configuration Example
# Copy this file to ~/.config/magonote/config.toml or specify with --config
[core]
# Sets the alphabet used for generating hints
alphabet = "qwerty"
# Output format for the picked hint (%H = hint text, %U = uppercase flag)
format = "%H"
# Hint position: "left", "right", "off_left", or "off_right"
position = "left"
# Enable multi-selection mode
multi = false
# Reverse the order for assigned hints
reverse = false
# Unique level: 0 = none, 1 = unique hints, 2 = highlight only one duplicate
unique_level = 0
# Put square brackets around hint for visibility
contrast = false
[rules]
# User-defined matching and filtering rules
[rules.include]
# Additional rules to match. Only { type = "regex" } is honored here.
rules = [
# { type = "regex", pattern = "\\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Z|a-z]{2,}\\b" }, # Email
# { type = "regex", pattern = "\\bhttps?://[\\w.-]+\\b" }, # URL
]
[rules.exclude]
# Exclusion rules to filter out unwanted matches by defining regions in the original text
# The rules first identify exclusion regions in the input text, then filter out any matches
# whose coordinates overlap with these regions
rules = [
# Example: Exclude entire shell prompt lines
# { type = "regex", pattern = "^user@hostname:.*\\$ " }, # Lines starting with prompt
# { type = "text", pattern = "~/project$ " }, # Specific prompt fragment
# Additional examples:
# { type = "text", pattern = "DEBUG" }, # Regions containing "DEBUG"
# { type = "regex", pattern = "^\\[.*\\]\\$ " }, # Bracketed prompts like "[user@host]$ "
# { type = "regex", pattern = "^\\d{4}-\\d{2}-\\d{2}" }, # Lines starting with dates
# { type = "regex", pattern = "Error:.*" }, # Entire error message lines
# Exclude log timestamps and noise:
# { type = "regex", pattern = "^\\d{2}:\\d{2}:\\d{2}" }, # Timestamps like 12:34:56
# { type = "text", pattern = "INFO" }, # Any region containing INFO logs
]
[colors.match]
# Foreground color for matches
foreground = "green"
# Background color for matches
background = "black"
[colors.hint]
# Foreground color for hints
foreground = "yellow"
# Background color for hints
background = "black"
[colors.multi]
# Foreground color for multi selected items
foreground = "yellow"
# Background color for multi selected items
background = "black"
[colors.select]
# Foreground color for selection
foreground = "blue"
# Background color for selection
background = "black"
[plugins.tabledetection]
enabled = true
min_lines = 3
min_columns = 3
confidence_threshold = 0.8
[plugins.colordetection]
enabled = true