Skip to content

Instantly share code, notes, and snippets.

View shabegom's full-sized avatar
🔘
clicking buttons

Sam shabegom

🔘
clicking buttons
View GitHub Profile
@shabegom
shabegom / obsidian.templater.move-line.js
Created April 28, 2021 15:09 — forked from GitMurf/obsidian.templater.move-line.js
Move the active line of the active file to a chosen file.
<%*
//v1.1: Choose where to move line to in file
//'first' will add to top of file. 'last' will add to bottom of file
let firstOrLastLine = 'last';
//Choose a specific line to move to underneath; overrules firstOrLastLine if true
const bChooseLine = false;
//After moving the line, open the file it was moved to