Undo file/folder delete doesn't work

Steps to reproduce

  1. In Obsidian Mac, create a folder in a vault, then spend a long time painstakingly filling it with scores of important files and folders.
  2. Context click on the top level folder to rename it, but since “rename” is right next to “delete”. hit that instead by accident and instantly remove everything.
  3. Hit CMD-Z.
  4. Panic.
  5. Select menu/edit/undo.
  6. Panic.
  7. Frantically check Obsidian settings that you had elected to save deletions to Mac trash, find them, and restore them.
  8. FIle a bug report because this makes no kind of sense.

Did you follow the troubleshooting guide? [Y/N]

Y

Expected result

FIles restored.

Actual result

Nothing.

Environment

SYSTEM INFO:
Obsidian version: v1.7.7
Installer version: v1.7.6
Operating system: Darwin Kernel Version 24.1.0: Thu Oct 10 21:02:26 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T8122 24.1.0
Login status: logged in
Language: en
Catalyst license: none
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 1
Restricted mode: off
Plugins installed: 5
Plugins enabled: 4
1: Tasks v7.13.0
2: Importer v1.6.12
3: Text Format v3.1.0
4: Local Backup v0.1.8

RECOMMENDATIONS:
Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.


Additional information

  1. Why don’t undo menu item and hotkey work?
  2. Why is there an in-vault trash option, but still no way to get things out of it via the UI?
  3. Why is Rename (frequently used and safe) right next to Delete (seldom used and dangerous), when everything else in the system seems to be enforced alpha sort?
  4. Why does this bug exist on a mature product? Isn’t this the most basic/essential of file editor/manager features?

This is not a bug. The undo/redo is an editor command (related to text editing not any other action).

You can search/open a FR to have a history of operations of every UI action, not just note edits, and have undo/redo do what you are asking.

Regarding delete, there is the option (enabled by default) to show a confirmation dialog.

The app has a unified UI, with file and foilder and page and UX elements mixed together. Undo should work on file actions like move and delete, just like pretty much every other editor in the world.

If I use Obsidian trash, at least it gets saved forever, is that right? Is there a UI for working with Obsidian trash? Can I view that foilder in my folder tree?

What is an FR? Oh, feature request? There are plenty of requests for undo move, undo delete, going back many years. So I don’t see anything for me to add.

Confirmation is a good workaround while waiting for this critical feature.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.