Skip to content

MinhPham123456789/obsidian_image_pasting_management

Repository files navigation

Obsidian Image Pasting Management Plugin

This plugin is based on the repository https://github.com/reorx/obsidian-paste-image-rename.git

Plugin Description

When pasting image into obsidian note:

  1. A new directory is created in the same directory with the current in used note and the directory's name is the note's name (replace spaces with _) concatenate with "_images"
  2. The pasted image's name will be concatenated with a unique ID to avoid duplicate
  3. The pasted image will be stored in the new directory
  4. The pasted image's markdown link will display the image's concatenated name

Behind The Scene

  1. Create new directory
  2. Create the pasted image with Obsidian's auto generated name or original name
  3. Rename the pasted image in the same directory
  4. Move the pasted image to the new directory using the same method when renaming the pasted image (This helps avoiding triggering error in Obsidian's app.js and broken pasted image when initiate new directory and create the image in the new directory)

Installation

git clone https://github.com/MinhPham123456789/obsidian_image_pasting_management
cd [repository directory]
npm install
npm run dev

When the terminal says (Build finished) just press Ctrl + C

Copy the main.ts manifest.json to vault/.obisidian/plugins/obsidian_image_pasting_management/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published