PaperWeight

by sirduckie9779
5
4
3
2
1
Score: 50/100

Description

Lightweight Obsidian Plugin for preserving and toggling fold states

Reviews

No reviews yet.

Stats

1
stars
82
downloads
0
forks
64
days
40
days
64
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
20
commits

Latest Version

2 months ago

Changelog

fixed paste catcher not firing

README file from

Github

paperWeight

Keeps your folded headings completely folded, even after copy/paste or indenting.

The problem

Obsidian unfolds everything when you paste text, and re-indenting a folded section can knock its fold state loose. If you rely on folded headings to keep long notes organized, this gets annoying fast.

Features

Paste preserves folds: Copy a folded section and paste it elsewhere (even in a different note): its folded parts stay folded, instead of Obsidian automatically unfolding everything on paste.

Toggle fold for everything in a selection: Select a range of text and run "Toggle fold for everything in selection" from the command palette to fold or unfold every heading, list item, code block, or callout inside it in one go. The toggle is configurable to any keybind.

Indent-safe folding: Tab / Shift-Tab to indent or outdent text no longer disrupts existing folds in the document.

Installation

From Obsidian

  1. Open Settings → Community plugins
  2. Click Browse and search for "paperWeight"
  3. Click Install, then Enable

Manual installation

  1. Download main.js, manifest.json, and styles.css (if present) from the latest release
  2. Create a folder paperWeight inside your vault's .obsidian/plugins/ directory
  3. Copy the downloaded files into that folder
  4. Reload Obsidian and enable PaperWeight under Settings → Community plugins

Usage

  • Copy/paste: works automatically, no setup needed.
  • Toggle fold in selection: select text, then run the command from the command palette (Ctrl/Cmd + P), or select keybind in settings.
  • Indent-safe folding: works automatically on load, no setup needed.

Known limitations

  • Multi-cursor copy (multiple simultaneous selections) does not currently preserve fold state: copy/paste will still work normally, folds just won't be restored in that case.

Support

Found a bug or have a feature request? Please open an issue.

License

MIT