Skip to content

Instantly share code, notes, and snippets.

View TfTHacker's full-sized avatar

TfTHacker

View GitHub Profile
@GitMurf
GitMurf / obsidian.templater.nlp-date-input.js
Created April 22, 2021 19:04
Requires @argenos Natural Language Dates Plugin. Pop up input box asks for date and then parses it as a date and turns it into a [[Daily Notes Page]] page ref.
<%*
//v1.0
let dueDateStr = await tp.system.prompt("Due Date");
let parseResult;
let parseResultLink;
if(dueDateStr) {
let nlDatesPlugin = this.app.plugins.getPlugin('nldates-obsidian');
parseResult = nlDatesPlugin.parseDate(dueDateStr);
if(parseResult){parseResultLink = '[' + '[' + parseResult.formattedString + ']]';}
@GitMurf
GitMurf / obsidian.live-preview.css.block-ref-inline.css
Last active October 27, 2025 08:27
CSS for inline block references that works for both NEW CM6 Live Preview and also Preview Mode for both CM5 (Legacy) and CM6 (New)
: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;
}
/*
@TakuanPickle
TakuanPickle / Vocab Note Workflow.md
Last active October 14, 2023 21:53
A sample workflow for creating links to vocabulary notes in a transcription with prompts for fields.

Vocab Note Workflow

I created a quick way to make flashcards and vocab notes for my Japanese learning. I had been struggling with how slow making Anki cards can be and found myself more likely to actually review cards if they were all in Obisidian, which I always have open, rather than opening Anki.

Required Plugins

  1. Templater
  2. QuickAdd
  3. Spaced Repetition
  4. Dataview
  5. Supercharged Links (Optional)
@TfTHacker
TfTHacker / open-file-from-ribbon-commandpalette.js
Last active October 17, 2025 04:38
Adds command to ribbon and command palette to open a given file
<%*
//
// updated: 2022-09-26
//
// Script adds a Command Palette command to open a file
//
// Install:
// 1. Add this text to a markdown file in your Templater "templates" folder
// 2. In templater settings, add the file you created in step 1 to the Startup section of Templater Settings