-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This reverts commit 3c76e49.
- Loading branch information
Showing
6 changed files
with
27 additions
and
1,710 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import '@logseq/libs'; | ||
|
||
//Inputs 5 numbered blocks when called | ||
async function insertSomeBlocks (e) { | ||
console.log('Open the calendar!') | ||
let numberArray = [1, 2, 3, 4, 5] | ||
for (const number in numberArray){ | ||
logseq.App.showMsg("Function has been run") | ||
logseq.Editor.insertBlock(e.uuid, `This is block ${numberArray[number]}`, {sibling: true})} | ||
|
||
} | ||
|
||
|
||
const main = async () => { | ||
console.log('plugin loaded'); | ||
logseq.Editor.registerSlashCommand('insertBlocks', async (e) => { | ||
insertSomeBlocks(e) | ||
} | ||
|
||
)} | ||
|
||
logseq.ready(main).catch(console.error); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.