This file contains hidden or 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
| /* custom font */ | |
| html { | |
| --colorEditorText: var(--colorGray700); | |
| font-family: Chivo; | |
| font-weight: 300; | |
| -webkit-font-smoothing: antialiased; | |
| } | |
| html.isDarkMode { | |
| --colorEditorText: var(--colorGray300); |
This file contains hidden or 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
| /* ==UserStyle== | |
| @name app.tana.inc - 10/21/2022, 9:02:58 PM | |
| @namespace github.com/openstyles/stylus | |
| @version 1.0.0 | |
| @description A new userstyle | |
| @author Me | |
| ==/UserStyle== */ | |
| @-moz-document domain("app.tana.inc") { | |
| :root { | |
| --bulletDiameterInner: 6px; |
This file contains hidden or 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
| ```dataviewjs | |
| //get all md files in vault | |
| const files = app.vault.getMarkdownFiles() | |
| //create an array with the filename and lines that include the desired tag | |
| let arr = files.map(async(file) => { | |
| const content = await app.vault.cachedRead(file) | |
| //turn all the content into an array | |
| let lines = await content.split("\n").filter(line => line.includes("- [?]")) | |
| return ["[["+file.name.split(".")[0]+"]]", lines] |
This file contains hidden or 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; | |
| if(editor.somethingSelected() === true) { | |
| let selectedText = editor.getSelection(); | |
| let splitLines = selectedText.split('\n'); | |
| let finalOutput = ''; | |
| let listItem = false; | |
| let codeBlock = false; | |
| splitLines.forEach(eachLine => { |
This file contains hidden or 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
| /* Add the Obsidian purple border */ | |
| .markdown-source-view.mod-cm6.is-live-preview .cm-preview-code-block { | |
| border: 4px solid var(--interactive-accent); | |
| border-radius: 10px; | |
| } | |
| /* Hide query syntax in search query embeds */ | |
| .markdown-source-view.mod-cm6.is-live-preview .cm-preview-code-block .internal-query div.internal-query-header { | |
| display: none; | |
| } | |
| .markdown-source-view.mod-cm6.is-live-preview .cm-preview-code-block .internal-query { |
This file contains hidden or 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
| /* | |
| This script returns a list of activity options you could do (each defined by a Markdown file), | |
| depending on how much time you have available. | |
| REQUIRES: | |
| - Obsidian: https://obsidian.md | |
| - Obsidian Dataview plugin: https://blacksmithgu.github.io/obsidian-dataview/ | |
| - Obsidian Templater plugin: https://silentvoid13.github.io/Templater/ | |
| - this folder structure: |
This file contains hidden or 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
| /* RAINBOW INDENT COLORS */ | |
| :root { | |
| /* default */ | |
| --font-use-default: var(--default-font); | |
| --font-size-use-default: var(--editor-font-size); | |
| --indent-use-default: 1.8ch; | |
| /* ------- */ | |
| /* theme */ | |
| --font-use-theme: inherit; |
This file contains hidden or 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
| :root { | |
| /* #7159de (similar to Obsidian purple) */ | |
| --block-ref-line-color: grey; | |
| --block-ref-line-type: solid; | |
| --block-ref-line-size: 2px; | |
| /* Set to "inherit" for no bg color */ | |
| --block-ref-hover-bg-color: #d4d0d026; | |
| } | |
| /* |
This file contains hidden or 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
| javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{ | |
| default: Turndown | |
| }, { | |
| default: Readability | |
| }]) => { | |
| /* Optional vault name */ | |
| const vault = "Brain"; | |
| /* Optional folder name such as "Clippings/" */ |
This file contains hidden or 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
| javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{ | |
| default: Turndown | |
| }, { | |
| default: Readability | |
| }]) => { | |
| /* Optional vault name */ | |
| const vault = ""; | |
| /* Optional folder name such as "Clippings/" */ |
NewerOlder