Skip to content

Instantly share code, notes, and snippets.

@dmych
dmych / NextParagraph.md
Created January 12, 2023 18:59
Go to the next/previous paragraph (e.g. empty line) using Templater scripts. Put all files to your Templater scripts folder, add both .md files to the Template Hotkeys and assign hot keys.

<%* tp.user.para(tp, false) %>

@dmych
dmych / OpenParent.js
Last active January 13, 2023 19:21
This is a Obsidian Templater template which opens the parent note when using Folder Note pluging. Save it as .md file, put to your Templater scripts folder and assign hot key (I prefer Cmd/Ctrl+U)
<%*
let parName = tp.file.folder(true) + '.md';
if (await tp.file.exists(parName)) {
app.workspace.openLinkText('', parName);
}
%>
@dmych
dmych / AltCheckbox.js
Last active November 5, 2023 13:14
A script for Obsidian Templater that allows you to select a checkbox value from a menu. It is recommended to assign a template to a hotkey or a button in the mobile toolbar. Save the template as .md file to your Templater scripts folder.
<%*
let lst = ['[ ] to-do',
'[/] incomplete',
'[x] done',
'[-] canceled',
'[>] forwarded',
'[<] scheduling',
'[?] question',
'[!] important',
'[*] star',