Trash Explorer

by Per Mortensen
5
4
3
2
1
Score: 43/100

Description

Category: File Management

The Obsidian Trash Explorer plugin provides a straightforward way to manage the files in the .trash folder within Obsidian. It allows users to easily list, restore, or permanently delete files that have been moved to trash, directly from the Obsidian interface. This plugin is especially useful for managing hidden folders, particularly on iOS devices where accessing the trash folder might be problematic. While the plugin restores items to their original folder structure in the vault, limitations exist, as Obsidian moves all trashed items to the root of the .trash folder, losing their original path structure. Users can also empty the trash with a single command for bulk file management.

Reviews

No reviews yet.

Stats

74
stars
66,110
downloads
5
forks
1,419
days
261
days
261
days
2
total PRs
2
open PRs
0
closed PRs
0
merged PRs
12
total issues
10
open issues
2
closed issues
11
commits

Latest Version

9 months ago

Changelog

  • Tech: Update dependencies (including Svelte v4 to v5) and various minor improvements

Full Changelog: https://github.com/proog/obsidian-trash-explorer/compare/1.2.3...1.2.4

README file from

Github

Obsidian Trash Explorer

A plugin for Obsidian that makes it possible to list, restore, and delete files in the .trash folder in your Obsidian vault. This is useful if you're having trouble accessing hidden folders, such as on iOS.

Install Trash Explorer from Obsidian community plugins.

Screenshot of the trash explorer view

Usage

Important: this plugin works only with Obsidian's own .trash folder. It does not work with the system trash.

To enable this, open the settings and go to File & Links, then set Deleted files to Move to Obsidian trash.

Click the trash explorer icon in the ribbon or use Show trash explorer from the command palette. Then you can restore or delete files and folders with the buttons in the trash explorer view. It's also possible to delete all trashed files with the Empty trash command.

Items are restored to a vault location matching their location in the trash. For instance, .trash/Recipes/Belgian waffles.md will be restored to Recipes/Belgian waffles.md, creating any intermediate folders if they don't exist. If the restore path already exists in the vault, the item will not be restored; you'll have to rename the existing file to something else first.

Limitations

This plugin is at the mercy of where Obsidian places trashed items, as it has no access to their original location. In particular, Obsidian always moves items to the root of the .trash folder, regardless of their parent folder structure, so any parent folders will not be preserved when restoring. For instance, trashing the file Recipes/Belgian waffles.md will move it to .trash/Belgian waffles.md, and restoring it will move it to Belgian waffles.md in the root of the vault.

Development

UI testing

# tl;dr
npm install
./e2e-setup.sh /path/to/obsidian.app
npm run e2e

Running npm run e2e tests the plugin in an actual Obsidian app using Playwright. Each Playwright test restores a test vault, launches Obsidian, and performs automated actions to smoke-test the plugin in a real environment.

Before running npm run e2e, it's necessary to run e2e-setup.sh in a terminal and follow its instructions. The purpose of this script is to create a copy of Obsidian's files that are usable by Playwright as well as to configure Obsidian itself. The script has currently only been tested on macOS - it may or may not work on other operating systems (please make a PR!).

As for why the setup script is necessary:

It used to be possible to automate the regular Obsidian executable from Playwright, but starting with an Obsidian update in 2024 the app could no longer be launched without timing out. This is likely due to the EnableNodeCliInspectArguments fuse being disabled, a known issue that's also mentioned in the Playwright documentation. Flipping Electron fuses in a packaged app changes the app's signature which makes the OS refuse to launch it. This project tries to work around it by extracting the JavaScript source files from the Obsidian app using Electron's ASAR tool, then launch those with Electron itself.

Additionally, the E2E tests rely on a known test vault as the tests do manipulate real files in a real folder. As it's not currently possible to open a vault from the CLI unless Obsidian has previously opened it, it's necessary to manually open the e2e-vault in the unpacked Obsidian app before tests can be run against it.

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Recent Files
6 years ago by Tony Grosinger
Display a list of most recently opened files
Notebook Navigator
2 months ago by Johan Sanneblad
A better file browser and calendar inspired by Apple Notes, Bear, Evernote and Day One.
Paste image rename
4 years ago by Reorx
Renames pasted images and all the other attachments added to the vault
Custom Attachment Location
5 years ago by RainCat1998
Customize attachment location with variables($filename, $data, etc) like typora.
HTML Reader
4 years ago by Nuthrash
This is a plugin for Obsidian (https://obsidian.md). Can open document with .html and .htm file extensions.
File Explorer++
4 months ago by kelszo
A plugin for https://obsidian.md, which enables the ability to hide and pin specific files and folders in the file explorer by applying custom filters.
Local Backup
2 months ago by velviagris
Automatically creates a local backup of the vault.
Update time on edit
5 years ago by beaussan
VSCode Editor
3 years ago by Sun Xvming
Edit Code Files like VSCode in Obsidian.
Update frontmatter modified date
3 years ago by Alan Grainger
Automatically update a frontmatter/YAML modified date field
Better File Link
5 years ago by Marc Julian Schwarz
A plugin for the note taking app Obsidian to add better external file links to your notes.
File Order
3 years ago by lukasbach
Obsidian plugin to reorder files with drag-and-drop by customizing a number-prefix in the filenames
File Hider
4 years ago by Oliver Akins
A plugin for https://obsidian.md that allows hiding specific files and folders from the file explorer.
Telegram Sync
3 years ago by Burtasov Volodymyr
Transfer messages and files from Telegram to Obsidian
Syncthing Integration
3 years ago by LBF38
Obsidian plugin for Syncthing integration
Reveal Active File Button
5 years ago by Clare Macrae
Obsidian plugin to add a button to the top of the Obsidian File Explorer, to reveal the active file.
Edit History
3 years ago by Antonio Tejada
Obsidian Edit History Plugin, automatically save all the edit history of a note, browse and restore previous versions
Folder Focus Mode
4 years ago by grochowski
Focus file explorer on chosen folder and its files and subdirectories, while hiding all the other elements.
Luhman
5 years ago by Dylan Elliott
Merge Notes
3 years ago by fnya
Merge Notes is Plugin for Obsidian
Differential ZIP Backup
3 years ago by vorotamoroz
Unique attachments
6 years ago by Dmitry Savosh
Obsidian plugin. Renames attachments, making their names unique.
Binary File Manager
5 years ago by qawatake
An Obsidian plugin to manage binary files
CSV Lite
a year ago by Jay Bridge
Simple enough for csv, no more fancy function you need to learn and think!
Vault Transfer
3 years ago by ImaginaryProgramming
Transfers a note from one vault to another.
Auto Filename
3 years ago by rcsaquino
Auto Filename is an Obsidian.md plugin that automatically renames files in Obsidian based on the first x characters of the file, saving you time and effort.
Link indexer
6 years ago by Yuliya Bagriy
Media Companion
2 years ago by Nick de Bruin
Enhance Copy Note
3 months ago by kzhovn
Plugin which enhances the copy command for Obsidian.
Update Relative Links
4 years ago by val
Insert Multiple Attachments
2 years ago by mnaoumov
Obsidian Plugin that allows to insert multiple attachments at a time
File Explorer Reload
5 months ago by mnaoumov
Obsidian Plugin that reloads the file explorer files list
Note archiver
3 years ago by thenomadlad
Cloudinary Uploader
5 years ago by Jordan Handy
An uploader for Obsidian to Cloudinary
Webdav File Explorer
3 years ago by red0orange
File Preview
2 years ago by Huajin
Add file preview contents under file in file explorer.
Screwdriver
5 years ago by vorotamoroz
External Rename Handler
2 years ago by mnaoumov
Obsidian Plugin that handles external renames made outside of the app
File chucker
4 years ago by Ken Lim
Open File by Magic Date
4 years ago by simplgy
Auto Archive
3 years ago by Shane Burke
Auto Archive plugin for Obsidian
Copy Metadata
3 years ago by wenlzhang
An Obsidian plugin to copy metadata to clipboard and insert it into file name.
New Note Fixer
2 years ago by mnaoumov
Obsidian Plugin that unifies the way non-existing notes are created when clicking on their links
Inbox Organiser
2 years ago by Jamie Hurst
Obsidian plugin to capture any new notes into an inbox and periodically prompt to organise these into other folders within the vault.
Recently Added Files
2 years ago by Lemon695
List files by last added, includes pictures, pdfs, etc.
Git File Explorer
3 years ago by Mateus Molina
Remove Empty Folders
3 years ago by fnya
Remove Empty Folders for Obsidian
Simple Archiver
2 years ago by Mike Farr
An Obsidian plugin that enables you to quickly archive a single note or an entire folder of notes.
Cloud Storage
2 years ago by Jiajun Ma
Obsidian Cloud Storage is a powerful and user-friendly plugin designed to seamlessly integrate cloud storage capabilities into your Obsidian workflow. This plugin allows you to effortlessly upload your attachments to the cloud, freeing up local storage space and enabling easy sharing and access across all your devices.
Local Any Files
2 years ago by ShermanTsang
A obsidian plugin used to extract and download files in your obsidian note.
Copy Contents
2 months ago by Richard Jones
Copy or export file and folder contents - perfect for LLMs
Attachment Organizer
2 months ago by kiteruunner
Automatically organize attachments into zone-based folders with conflict detection and batch operations
External File Card
2 years ago by James-Yu
A plugin for Obsidian showing a card displaying basic information of a file in pre-defined folders.
Markdown Hijacker
a year ago by Yongmini
Beyond the Vault. One hub for every Markdown, everywhere
S3agle
2 years ago by Turner Monroe (turnercore)
Tencent COS for Imgur
2 years ago by bobostudio
🔥 Obsidian 腾讯云 COS 图床插件
Auto Move File
23 days ago by sx kan
Automatically move files based on frontmatter properties in Obsidian
Graphic Organizer
6 months ago by Nick Le Guillou - Superhuman Curiosity
Simple Image Inserter
3 years ago by Joey Holtzman
Add images from the file system into Obsidian notes through a built-in file explorer
VaultSync
2 years ago by Justin Bird
Obsidian plugin to link your vault to a cloud storage provider.
New Filename
2 years ago by Amin Sennour
Simple plugin to change the default name for a new note from "Untitled" to a UUID.
NSFW filter
2 years ago by catvatar
Obsidian Plugin adding a button to toggle visiblity of NSFW notes
WebDAV Explorer
6 months ago by 蓝星晓夜
WebDAV Server Explorer.
Remote Fetch
a year ago by Shaharyar
Guid Renamer
2 years ago by Taskscape LTD, Kacper Pabianiak
Renames the currently selected file by providing a unique file name based on GUID pattern
MD Butler
a month ago by Peter Petschownik
Automatically manages YAML frontmatter fields for all notes. A reliable alternative to Templater formulas for consistent metadata.
Rename File to Selection
a year ago by Aava
Rename your file to the current text selection.
Note Types
2 months ago by jsmorabito
Add Attachment
17 days ago by olegg90
Obsidian plugin for adding multi attachments
sync-db-os
2 years ago by ketd
Store
2 months ago by shimeoki
Manage your notes within a single folder.
Alternative Explorer
a month ago by sk-obsidian
Alternative Explorer is an Apple Notes–style sidebar for browsing folders and notes in Obsidian. Switch between an expandable folder tree and a notes list — a compact alternative to the built-in File Explorer.