Trash Explorer

by Per Mortensen
5
4
3
2
1
Score: 40/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

71
stars
57,768
downloads
4
forks
1,277
days
119
days
119
days
1
total PRs
1
open PRs
0
closed PRs
0
merged PRs
11
total issues
9
open issues
2
closed issues
6
commits

Latest Version

4 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.
Paste image rename
4 years ago by Reorx
Renames pasted images and all the other attachments added to the vault
Update time on edit
5 years ago by beaussan
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.
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
Telegram Sync
3 years ago by Burtasov Volodymyr
Transfer messages and files from Telegram to Obsidian
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.
Syncthing Integration
3 years ago by LBF38
Obsidian plugin for Syncthing integration
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
Luhman
5 years ago by Dylan Elliott
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.
Reveal Active File Button
4 years ago by Clare Macrae
Obsidian plugin to add a button to the top of the Obsidian File Explorer, to reveal the active file.
Merge Notes
3 years ago by fnya
Merge Notes is Plugin for Obsidian
Unique attachments
5 years ago by Dmitry Savosh
Obsidian plugin. Renames attachments, making their names unique.
Binary File Manager
4 years ago by qawatake
An Obsidian plugin to manage binary files
Differential ZIP Backup
2 years ago by vorotamoroz
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.
Update Relative Links
4 years ago by val
Link indexer
5 years ago by Yuliya Bagriy
Vault Transfer
2 years ago by ImaginaryProgramming
Transfers a note from one vault to another.
CSV Lite
a year ago by Jay Bridge
Simple enough for csv, no more fancy function you need to learn and think!
Media Companion
a year ago by Nick de Bruin
Android nomedia
3 years ago by JakeisAwesome
When syncing Obsidian with Android you will see a lot of media associated with your vaults. This will add the .nomedia file to ever folder in your Vault.
Note archiver
3 years ago by thenomadlad
Webdav File Explorer
3 years ago by red0orange
Cloudinary Uploader
4 years ago by Jordan Handy
An uploader for Obsidian to Cloudinary
Insert Multiple Attachments
a year ago by mnaoumov
Obsidian Plugin that allows to insert multiple attachments at a time
Screwdriver
4 years ago by vorotamoroz
File chucker
3 years ago by Ken Lim
File Preview
2 years ago by Huajin
Add file preview contents under file in file explorer.
Open File by Magic Date
4 years ago by simplgy
Auto Archive
3 years ago by Shane Burke
Auto Archive plugin for Obsidian
External Rename Handler
a year ago by mnaoumov
Obsidian Plugin that handles external renames made outside of the app
Remove Empty Folders
3 years ago by fnya
Remove Empty Folders for Obsidian
Copy Metadata
3 years ago by wenlzhang
An Obsidian plugin to copy metadata to clipboard and insert it into file name.
Simple Image Inserter
2 years ago by Joey Holtzman
Add images from the file system into Obsidian notes through a built-in file explorer
Git File Explorer
2 years ago by Mateus Molina
Recently Added Files
a year ago by Lemon695
List files by last added, includes pictures, pdfs, etc.
Inbox Organiser
a year 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.
Archive/trash to single note
3 years ago by mwoz123
Obsidian.md plugin allows to archive/trash files to a single note
New Note Fixer
a year ago by mnaoumov
Obsidian Plugin that unifies the way non-existing notes are created when clicking on their links
Local Any Files
a year ago by ShermanTsang
A obsidian plugin used to extract and download files in your obsidian note.
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.
Simple Archiver
a year ago by Mike Farr
An Obsidian plugin that enables you to quickly archive a single note or an entire folder of notes.
Markdown Hijacker
a year ago by Yongmini
Beyond the Vault. One hub for every Markdown, everywhere
S3agle
2 years ago by Turner Monroe (turnercore)
Graphic Organizer
2 months ago by Nick Le Guillou - Superhuman Curiosity
Interactive tree view for visualizing and managing your vault's file hierarchy.
Structured Copy: Files & Folders
a year ago by SchmidA
VaultSync
a year ago by Justin Bird
Obsidian plugin to link your vault to a cloud storage provider.
New Filename
a year ago by Amin Sennour
Simple plugin to change the default name for a new note from "Untitled" to a UUID.
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.
Tencent COS for Imgur
a year ago by bobostudio
🔥 Obsidian 腾讯云 COS 图床插件
NSFW filter
2 years ago by catvatar
Obsidian Plugin adding a button to toggle visiblity of NSFW notes
Remote Fetch
8 months 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
Rename File to Selection
a year ago by Aava
Rename your file to the current text selection.
sync-db-os
2 years ago by ketd
WebDAV Explorer
2 months ago by 蓝星晓夜
WebDAV Explorer: Connect to WebDAV server, preview files directly in web view, and generate links through simple drag-and-drop.