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
/* line up quotes with other bullets */ | |
span.rem.relative.rn-editor__rem.rn-quote, | |
div.rem.relative.rn-editor__rem.rn-quote { | |
padding-left: 0px; | |
margin-left: -4px; | |
} | |
span.rem.relative.rn-editor__rem.rn-quote > div > div.rem-button__container, | |
div.rem.relative.rn-editor__rem.rn-quote > div.rem-button__container { | |
left: -48px !important; |
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
/* Blocks refs and [[refs]] are the same in RemNote */ | |
body.light .rn-editor-container .rem-reference-container:not([data-rem-tags*="link"]):not([data-rem-tags*="daily-document"]) > span > .rn-rem-reference.rem-reference.button, | |
body.light .rn-editor-container .rem-reference-container:not([data-rem-tags*="link"]):not([data-rem-tags*="daily-document"]) > .rn-rem-reference.rem-reference.button { | |
color: unset; | |
border-radius: 0px; | |
border-bottom: 1px dashed black; | |
padding-bottom: 1px; | |
} | |
/* fix for Template Slots */ | |
body.light .rn-editor-container .rem-reference-container:not([data-rem-tags*="link"]) .rn-rem-reference.rem-reference.button .\!not-italic.rem-reference--pdf-highlight { |
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
<%* | |
const editor = app.workspace.activeLeaf.view.editor; | |
const getCurSelection = editor.getSelection(); | |
const getCur = editor.getCursor("from"); | |
const curLineNo = getCur.line; | |
const curLineText = editor.getLine(curLineNo); | |
const matchBullet = curLineText.match(/^[ \t]*[-\*] (.*)/); | |
let foundContent = ""; | |
if(matchBullet) { | |
foundContent = matchBullet[1]; |
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
<%* | |
// v0.1 | |
/* START OF USER DEFINED SETTINGS */ | |
// template to use | |
const templateFolder = "templates"; | |
const templateName = "template_anthony.md"; | |
// creating the new file | |
const newFileFolder = "test/meetings"; | |
const openNewFile = false; |
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
<%* | |
const noteName = tp.file.title; | |
let queryKeyword = await tp.system.prompt("Keyword for Section search query (do NOT add [ ] brackets around it)", noteName); | |
if(queryKeyword) { | |
// Un-comment the next line if you want the keyword to require [] brackets around it for backlinks matching purposes | |
queryKeyword = `\\[\\[${queryKeyword}[\\|\\]]`; // the | pipe check accounts for alias links | |
tR = ` | |
# Keyword Section Query | |
\`\`\`query |
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
<%* | |
const folderLocation = '/all-links'; | |
const fileNameSuffix = 'Outgoing and Incoming Links'; | |
const outlinksName = "outlinks"; | |
const inlinksName = "inlinks"; | |
let newFileName = `${tp.date.now('YYYY_MM_DD_hhmmss')}_${fileNameSuffix}`; | |
function removeNamespace(linkStr) { | |
let newLink = linkStr; | |
if(linkStr.indexOf("/") > -1) { |
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
<%* | |
/* USER CONFIG SETTINGS */ | |
const collapsed = false; | |
const showMoreContext = false; | |
//SortOrder Options: alphabeticalReverse, alphabetical, byModifiedTime, byModifiedTimeReverse, byCreatedTime, byCreatedTimeReverse | |
const sortOrder = "byModifiedTime"; | |
/* END OF CONFIG SETTINGS */ | |
const search = app.workspace.getLeavesOfType("search")[0]; | |
let thisFile = app.workspace.getActiveFile(); |
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
<%* | |
let startDate = await tp.system.prompt('Start Date'); | |
let endDate = await tp.system.prompt('End Date'); | |
const nlDatesPlugin = app.plugins.getPlugin('nldates-obsidian'); | |
function getNldDate(nlDatesPlugin, dateString) { | |
let parseResultLink = null; | |
let parseResult = nlDatesPlugin.parseDate(dateString); | |
if(parseResult){ parseResultLink = parseResult.formattedString }; | |
if(parseResultLink === "Invalid date") { parseResultLink = null } |
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
<%* | |
//Set to false if you do NOT want to ask for a custom title or whether foldable or not | |
const bCustomTitle = true; | |
const bFoldable = true; | |
const calloutOptions = ['note', 'abstract', 'summary', 'tldr', 'info', 'todo', 'tip', 'hint', 'important', 'success', 'check', 'done', 'question', 'help', 'faq', 'warning', 'caution', 'attention', 'failure', 'fail', 'missing', 'danger', 'error', 'bug', 'example', 'quote', 'cite']; | |
let calloutType = await tp.system.suggester(calloutOptions, calloutOptions, false); | |
if(!calloutType) { return }; | |
calloutType = calloutType.toUpperCase(); |
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
<%* | |
const search = app.workspace.getLeavesOfType("search")[0]; | |
let keyword = await tp.system.prompt('Keyword', '[' + '[Journal'); | |
keyword = keyword.replace(/(\[|\])/g, "\\$1"); | |
const searchQuery = `section:(/^#+ ${keyword}.*\\n+\\S[\\s\\S]*[^\\n]/) OR section:(/^#+ ${keyword}.*/ section:(/[\\s\\S]*[^\\n]/))`; | |
//Collapse=true, Expand=false | |
search.view.setCollapseAll(false); | |
//Show Extra Context: true or false | |
search.view.setExtraContext(false); | |
//SortOrder Options: alphabeticalReverse, alphabetical, byModifiedTime, byModifiedTimeReverse, byCreatedTime, byCreatedTimeReverse |
NewerOlder