Move "Delete current file" from top spot in Slash commands

Use case or problem

  1. Enable the core Slash commands plugin.
  2. Type / in a note.
  3. Accidentally hit enter without typing anything :scream:.

Screenshot 2025-02-03 123828

  1. Be sad that your file is deleted.

Proposed solution

Move the Delete current file command out of the top position and replace it with something nondestructive. e.g. Show debug info, Show release notes, etc.

Current workaround (optional)

Make sure you don’t hit enter there. :slightly_smiling_face:

Related feature requests (optional)

Update:

After playing around a bit, I noticed the Slash commands follow along with the new (as of v1.8):

  • Recently used commands now appear at the top of the command palette.

so Delete current file will shift out of that top position after using a few other commands. Much better.

To refine the request a bit: make sure there are no destructive commands in that top slot (if possible).

2 Likes

This just happened to me on mobile.

Forward slash is used alone in many contexts, like directory paths on MacOS, Linux, and others.

Data loss is the number one scariest thing when using a knowledge management app and leaving “Delete Current Note” as the default action is unconscionable.

I have fully disabled the slash commands core plug-in until this is remedied.