Skip to content

Commit 3a3d3ce

Browse files
committed
feat(commands): join to paragraphs
1 parent 9404062 commit 3a3d3ce

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/app.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,18 @@ async function main() {
212212
},
213213
))
214214

215+
logseq.App.registerCommandPalette({
216+
label: ICON + ' Join to paragraphs', key: 'join-6-paragraphs',
217+
// @ts-expect-error
218+
keybinding: {},
219+
}, (e) => joinBlocksCommand(
220+
false,
221+
(root, level, children) => {
222+
const suffix = '\n\n'
223+
return (root ? root + suffix : '') + children.join('\n\n')
224+
},
225+
))
226+
215227

216228
// Navigation
217229
logseq.App.registerCommandPalette({

0 commit comments

Comments
 (0)