-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.toml
More file actions
156 lines (140 loc) · 4.63 KB
/
Copy pathdefault.toml
File metadata and controls
156 lines (140 loc) · 4.63 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
# Whether to hide hint messages
no_hint = false
# Editor settings
# Uses promkit_widgets::text_editor::Config directly
[editor.on_focus]
# Editor mode
# "Insert": Insert characters at the cursor position
# "Overwrite": Replace characters at the cursor position with new ones
edit_mode = "Insert"
# Characters considered as word boundaries
# These are used to define word movement and deletion behavior in the editor
word_break_chars = ["/", "|", "(", ")", "[", "]", "@"]
# Style notation (termcfg)
# Format: "fg=<color>,bg=<color>,ul=<color>,attr=<token|token...>"
# Examples:
# - "fg=blue"
# - "fg=#00FF00,bg=black,attr=bold|underlined"
# - "attr=dim"
#
# Color tokens:
# - reset, black, red, green, yellow, blue, magenta, cyan, white
# - darkgrey, darkred, darkgreen, darkyellow, darkblue, darkmagenta, darkcyan, grey
# - #RRGGBB
#
# Attribute tokens (examples):
# - bold, italic, underlined, dim, reverse, crossedout, nounderline, nobold
#
# References:
# - https://github.com/ynqa/termcfg/blob/main/Notations.md
# Prefix shown before the cursor (animated at runtime — this is just the initial frame)
prefix = "⠶⠦ "
# Style for the prefix
prefix_style = "fg=cyan,attr=bold"
# Style for the character under the cursor
active_char_style = "bg=magenta"
# Style for all other characters
inactive_char_style = ""
# Theme settings when the editor is unfocused
[editor.on_defocus]
# Prefix shown when focus is lost
prefix = "▼ "
# Style for the prefix when unfocused
prefix_style = "fg=blue,attr=dim"
# Style for the character under the cursor when unfocused
active_char_style = "attr=dim"
# Style for all other characters when unfocused
inactive_char_style = "attr=dim"
# XML display settings
[xml]
# Number of spaces to use for indentation in the tree view
indent = 2
# Completion feature settings
[completion]
# Number of candidates loaded per chunk for search results
# A larger value displays results faster but uses more memory
search_result_chunk_size = 100
# Number of items loaded per batch during background loading
# A larger value finishes loading sooner but uses more memory temporarily
search_load_chunk_size = 50000
# Completion UI settings
# Uses promkit_widgets::listbox::Config directly
[completion.listbox]
# Number of lines to display for completion candidates
lines = 3
# Cursor character shown before the selected candidate
cursor = "❯ "
# Style for the selected candidate
active_item_style = "fg=grey,bg=yellow"
# Style for unselected candidates
inactive_item_style = "fg=grey"
# Keybinding settings
[keybinds]
# Key to exit the application
exit = ["Ctrl+C"]
# Key to copy the query to the clipboard
copy_query = ["Ctrl+Q"]
# Key to copy the result to the clipboard
copy_result = ["Ctrl+O"]
# Keys to switch focus between editor and XML viewer
switch_mode = ["Shift+Down", "Shift+Up"]
# Toggle values-only mode (show just text content, no XML tags)
# Also activated automatically when query ends with /text()
toggle_values = ["Ctrl+T"]
# Show/hide the help overlay
toggle_help = ["Ctrl+H"]
# Keybindings for editor operations
[keybinds.on_editor]
# Move cursor left
backward = ["Left"]
# Move cursor right
forward = ["Right"]
# Move cursor to beginning of line
move_to_head = ["Ctrl+A"]
# Move cursor to end of line
move_to_tail = ["Ctrl+E"]
# Move cursor to previous word boundary
move_to_previous_nearest = ["Alt+B"]
# Move cursor to next word boundary
move_to_next_nearest = ["Alt+F"]
# Delete character at the cursor
erase = ["Backspace"]
# Delete all input
erase_all = ["Ctrl+U"]
# Delete from cursor to previous word boundary
erase_to_previous_nearest = ["Ctrl+W"]
# Delete from cursor to next word boundary
erase_to_next_nearest = ["Alt+D"]
# Trigger completion
completion = ["Tab"]
# Move up in the completion list
on_completion.up = ["Up"]
# Move down in the completion list
on_completion.down = ["Down", "Tab"]
# Keybindings for XML viewer operations
[keybinds.on_xml_viewer]
# Move up in XML viewer
up = ["Up", "Ctrl+K", "ScrollUp"]
# Move down in XML viewer
down = ["Down", "Ctrl+J", "ScrollDown"]
# Move to the top of XML viewer
move_to_head = ["Ctrl+L"]
# Move to the bottom of XML viewer
move_to_tail = ["Ctrl+G"]
# Toggle expand/collapse of XML nodes
toggle = ["Enter"]
# Expand all XML nodes
expand = ["Ctrl+P"]
# Collapse all XML nodes
collapse = ["Ctrl+N"]
# Application reactivity settings
[reactivity_control]
# Delay before processing query input
# Prevents excessive updates while user is typing
query_debounce_duration = "600ms"
# Delay before redrawing after window resize
# Prevents frequent redraws during continuous resizing
resize_debounce_duration = "200ms"
# Interval for spinner animation updates
# Controls the speed of the loading spinner
spin_duration = "300ms"