Alan's Obsidian stuff

        • People @-mentions plugin
        • Quartz Publisher plugin for Obsidian
        • Add a dynamic Table of Contents
        • Always paste as plain text
        • Apply a CSS transformation to all items in a Dataview result
        • Backing up your Obsidian vault on Windows
        • Change a single property from a template
        • Dataview auto-refreshing view
        • Embed a link to today's note
        • Extract the contents of callout boxes from daily notes
        • Get TFile or full path from note name
        • How to save and load Graph View groups
        • Insert images from Immich
        • Internal link hotkey
        • Keep Obsidian open on an Android phone
        • Keeping Obsidian open on Samsung mobile devices
        • Move a linked file into the current folder
        • Move selected text to a different note, then embed the text back
        • New note template꞉ Template inception
        • Obsidian Guides
        • People @-mentions
        • Quick add tasks to Obsidian on Android
        • Review Old Notes script
        • Summarise text under headings
        • Time tracking script
        • Turn Obsidian into a portable app
        • Upcoming event calendar
        • Using Javascript classes in Templater
        • Working with durations
    Home

    ❯

    obsidian guides

    ❯

    Get TFile or full path from note name

    Get TFile or full path from note name

    Jun 15, 20241 min read

    Get TFile or full path from note name

    const name = 'Some note name'
    const file = app.metadataCache.getFirstLinkpathDest(name, '')
    console.log(file.path)

          • People @-mentions plugin
          • Quartz Publisher plugin for Obsidian
          • Add a dynamic Table of Contents
          • Always paste as plain text
          • Apply a CSS transformation to all items in a Dataview result
          • Backing up your Obsidian vault on Windows
          • Change a single property from a template
          • Dataview auto-refreshing view
          • Embed a link to today's note
          • Extract the contents of callout boxes from daily notes
          • Get TFile or full path from note name
          • How to save and load Graph View groups
          • Insert images from Immich
          • Internal link hotkey
          • Keep Obsidian open on an Android phone
          • Keeping Obsidian open on Samsung mobile devices
          • Move a linked file into the current folder
          • Move selected text to a different note, then embed the text back
          • New note template꞉ Template inception
          • Obsidian Guides
          • People @-mentions
          • Quick add tasks to Obsidian on Android
          • Review Old Notes script
          • Summarise text under headings
          • Time tracking script
          • Turn Obsidian into a portable app
          • Upcoming event calendar
          • Using Javascript classes in Templater
          • Working with durations

      This site was published directly from Obsidian with Quartz Publisher.