You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(settings): pin toolbar by default; drop inline-renderer toggles
Add a `toolbarPinned` setting (default true) so new users get the
inline-table toolbar pinned out of the box; runtime toggling via the
toolbar/right-click menu still writes the same key.
Remove the `enableInlineRenderer` and `inlineEditable` settings. Both
were on by default and there's no real reason to expose disabling them
— the inline renderer is the plugin's whole point. The renderer is
still gated on the host's experimental block-renderer API, and the now
always-on editable branch was inlined.
Copy file name to clipboardExpand all lines: src/index.js
+34-45Lines changed: 34 additions & 45 deletions
Original file line number
Diff line number
Diff line change
@@ -20,20 +20,6 @@ const applyTheme = (mode) => {
20
20
21
21
// Settings schema
22
22
constsettingsSchema=[
23
-
{
24
-
key: 'enableInlineRenderer',
25
-
type: 'boolean',
26
-
default: true,
27
-
title: 'Inline table rendering',
28
-
description: "Render markdown-table blocks inline as tables (replacing Logseq's native outline view). Requires a Logseq version that supports the experimental block renderer API; ignored on older versions. Reload the plugin after changing this."
29
-
},
30
-
{
31
-
key: 'inlineEditable',
32
-
type: 'boolean',
33
-
default: true,
34
-
title: 'Edit inline tables in place',
35
-
description: "Make the inline-rendered table's cells editable directly (debounced auto-save back to the block). When off, the inline table is read-only. Requires \"Inline table rendering\". Reload the plugin after changing this."
36
-
},
37
23
{
38
24
key: 'inlineEditDebounceMs',
39
25
type: 'number',
@@ -54,6 +40,13 @@ const settingsSchema = [
54
40
default: -1,
55
41
title: 'Monospace table font size offset (px)',
56
42
description: "Adjust the monospace table-source font size relative to Logseq's base font, in pixels (e.g. -1 = 1px smaller, 0 = same, 2 = 2px larger). Reload the plugin after changing this."
43
+
},
44
+
{
45
+
key: 'toolbarPinned',
46
+
type: 'boolean',
47
+
default: true,
48
+
title: 'Pin inline table toolbar by default',
49
+
description: 'When enabled, the inline table toolbar stays pinned above the focused table. You can still toggle pinning at runtime from the toolbar/right-click menu.'
57
50
}
58
51
]
59
52
@@ -203,9 +196,8 @@ if (isInBrowser) {
203
196
// Inline block renderer: replace Logseq's native view for markdown-table
204
197
// blocks with an editable table. Host-mounted via the experimental
205
198
// Experiments API; a clean no-op on older Logseq hosts.
0 commit comments