No description
Find a file
2025-03-11 15:21:52 +01:00
.github chore: update dep + bun 2025-01-03 15:54:47 +01:00
hooks chore(dep): forgot changelog file 2024-06-03 21:24:16 +02:00
src fix: disable arrow key on menu for disabling item. 2025-01-18 18:45:01 +01:00
.gitignore chore: ignore .env 2024-06-04 12:15:43 +02:00
biome.json fix: disable arrow key on menu for disabling item. 2025-01-18 18:45:01 +01:00
bun.lock chore: switch to a text based lockfile for bun 2025-01-18 18:45:50 +01:00
CHANGELOG.md chore(release): 0.0.7 2025-01-18 18:45:19 +01:00
commit-and-tag-version.mjs refactor the plugin for my own purpose 2024-06-03 21:20:13 +02:00
esbuild.config.mjs chore: update dep + bun 2025-01-03 15:54:47 +01:00
LICENSE Chore: Update LICENSE 2024-06-05 08:26:17 +02:00
manifest.json chore(release): 0.0.7 2025-01-18 18:45:19 +01:00
package.json chore(release): 0.0.7 2025-01-18 18:45:19 +01:00
README.md Update README.md 2025-03-11 15:21:52 +01:00
tsconfig.json Hide items from menu (#2) 2022-06-05 22:53:58 -04:00
versions.json Initial Release of this Plugin 2021-08-07 20:47:25 +02:00

Context Menu Hider

This plugin allows you to hide any commands, including those of community plugins, to the right click menu.

Warning

You need to disable "native menu" to use this. This option can be disabled in the "Appareance" > "Native menu"

Remove Commands

Add the name of the command to hide exactly as it appears in the Obsidian menu (unless the capitalization). Note that this setting will remove all instances of a command with that name from all context menus across Obsidian (note menu, file explorer menu, etc), not just the in-note menu. This means that in cases where a command with the same name appears in several different menus (for instance, "Open in default app" in both the file explorer menu and the note menu), it is currently impossible to hide just one of them.

If you would like to style the listed commands yourself, instead of simply removing them, the selector is div.custom-menu-hide-item.

Regex are supported if the text is enclosed by / (e.g. /^Open in default app$/), as flags (i, g, m, s) are supported.

You can try regex here but don't forget to set the flavor on ECMAScript (JavaScript).

When a command is added or removed, the menu will automatically hide them, without needing to reload Obsidian or the plugin.

Thanks

  • This plugin was initially a fork of phibr0's excellent customizable sidebar
  • The code for hiding menu items comes in part from Panossa's Mindful Obsidian
  • The original code for this plugin was written by kzhovn. I removed part that is now handle by Obsidian Commander and reworked the settings. As the ID of the plugin was changed, you can import safely your old settings with the big button "Import old settings" and copy and paste the string you eventually have before.