@@ -6,86 +6,107 @@ Description: "Allows notebook to have collapsible sections, separated by heading
6
6
Link : readme.md
7
7
Icon : icon.png
8
8
Parameters :
9
+
9
10
- name : collapsible_headings.add_button
10
11
description : Add a toolbar button to collapse the closest header cell
11
12
input_type : checkbox
12
13
default : false
14
+
13
15
- name : collapsible_headings.add_all_cells_button
14
16
description : Add a toolbar button to collapse/uncollapse all header cells
15
17
input_type : checkbox
16
18
default : false
19
+
17
20
- name : collapsible_headings.add_insert_header_buttons
18
21
description : Add toolbar buttons to insert heading cells above/below the selected cell
19
22
input_type : checkbox
20
23
default : false
24
+
21
25
- name : collapsible_headings.use_toggle_controls
22
26
description : Add a control in each heading cell's input prompt to collapse/uncollapse it
23
27
input_type : checkbox
24
28
default : true
29
+
25
30
- name : collapsible_headings.toggle_color
26
31
description : Color for the toggle control icon
27
32
input_type : color
28
33
default : ' #aaaaaa'
34
+
29
35
- name : collapsible_headings.toggle_closed_icon
30
36
description : font-awesome class for the toggle control icon on collapsed headings
31
37
default : fa-caret-right
38
+
32
39
- name : collapsible_headings.toggle_open_icon
33
40
description : font-awesome class for the toggle control icon on uncollapsed (expanded) headings
34
41
default : fa-caret-down
42
+
35
43
- name : collapsible_headings.make_toggle_controls_buttons
36
44
description : " Make the toggle control into a button (if false, it's just an icon)"
37
45
input_type : checkbox
38
46
default : false
47
+
39
48
- name : collapsible_headings.size_toggle_controls_by_level
40
49
description : Adjust the size of the toggle controls to match their heading levels
41
50
input_type : checkbox
42
51
default : true
52
+
43
53
- name : collapsible_headings.show_section_brackets
44
54
description : show Mathematica-style brackets around each collapsible section
45
55
input_type : checkbox
46
56
default : false
57
+
47
58
- name : collapsible_headings.section_bracket_width
48
59
description : ' Width, in pixels, of the Mathematica-style brackets around sections'
49
60
input_type : number
50
61
min : 2
51
62
max : 100
52
63
default : 10
64
+
53
65
- name : collapsible_headings.show_ellipsis
54
66
description : show a gray bracketed ellipsis at the end of collapsed heading cells
55
67
input_type : checkbox
56
68
default : true
69
+
57
70
- name : collapsible_headings.use_shortcuts
58
71
description : Add command-mode keyboard shortcuts to collapse/uncollapse the selected heading cell
59
72
input_type : checkbox
60
73
default : true
74
+
61
75
- name : collapsible_headings.shortcuts.collapse
62
76
description : Command-mode shortcut to collapse the selected heading cell
63
77
input_type : hotkey
64
78
default : left
79
+
65
80
- name : collapsible_headings.shortcuts.uncollapse
66
81
description : Command-mode shortcut to uncollapse (expand) the selected heading cell
67
82
input_type : hotkey
68
83
default : right
84
+
69
85
- name : collapsible_headings.shortcuts.collapse_all
70
86
description : Command-mode shortcut to collapse all heading cells
71
87
input_type : hotkey
72
88
default : ctrl-shift-left
89
+
73
90
- name : collapsible_headings.shortcuts.uncollapse_all
74
91
description : Command-mode shortcut to uncollapse (expand) all heading cells
75
92
input_type : hotkey
76
93
default : ctrl-shift-right
94
+
77
95
- name : collapsible_headings.shortcuts.select
78
96
description : Command-mode shortcut to select all cells in the selected heading cell's section
79
97
input_type : hotkey
80
98
default : shift-right
99
+
81
100
- name : collapsible_headings.shortcuts.insert_above
82
101
description : Command-mode shortcut to insert a heading cell above the selected cell
83
102
input_type : hotkey
84
103
default : shift-a
104
+
85
105
- name : collapsible_headings.shortcuts.insert_below
86
106
description : Command-mode shortcut to insert a heading cell below the selected cell's section
87
107
input_type : hotkey
88
108
default : shift-b
109
+
89
110
- name : collapsible_headings.select_reveals
90
111
description : " By default, selecting a whole section also expands the section to reveal its last cell. Set this option to false to disable the expansion."
91
112
input_type : checkbox
@@ -98,3 +119,11 @@ Parameters:
98
119
behaviour, see ToC2's configuration
99
120
input_type : checkbox
100
121
default : false
122
+
123
+ - name : collapsible_headings.indent_px
124
+ description : |
125
+ Shift the collapsible heading controls left by this many pixels per level,
126
+ such that more significant headings (lower levels) appear further to the
127
+ left
128
+ input_type : number
129
+ default : 8
0 commit comments