obsprune

command module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 8 Imported by: 0

README

obsprune

obsprune is a simple go utility designed to prune dangingling attachments from an Obsidian vault. When run it will look for any attachments that are not referenced in any of your Obsidian files and ask if you would like to delete them.

Limitations

  • MacOS only
    • Presumably will compline on other Unix operating systems but this has not been tested
  • Assumes all attachments are stored in a single folder in your vault
  • Currently only detects embedded attachments with the ![[{attachment name}]] syntax

Usage

obsprune <path to vault> <path to attachments directory>

Installation

Option 1

If you have Go installed you can install with:

go install github.com/jmarkIT/obsprune@latest
Option 2

Download the the executable from the Releases section and place it anywhere in your path.

About

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL