Root Folder Context Menu

approved

by Michael Naumov

Enables context menu for vault root folder

6 stars5,498 downloadsUpdated 19d agoMIT

Root Folder Context Menu

Buy Me a Coffee GitHub release GitHub downloads Coverage: 100%

Every folder in Obsidian's File Explorer has a full right-click menu — every folder except the one you use most. The vault root and the empty area below the file list get only a short menu of their own, missing most of what a folder row offers, so acting on the top level means picking some other folder and moving things afterwards, or reaching for the ribbon.

This plugin gives both spots the same context menu any other folder gets, minus the entries that cannot apply to the vault itself.

The vault root gets the same menu any folder has

More screenshots
Without it: only the few entries Obsidian offers Long-press below your files: the root gets a folder's menu Without it: only the few entries Obsidian offers

Demo vault

The documentation is a demo vault. Each feature has a note that explains what it does and why you would want it, with a sample folder to create things next to.

Start reading here — it is plain markdown, so it works on GitHub with nothing installed.

A copy of the vault ships with every release. You can access it via any of the following:

  1. Running the Root Folder Context Menu: Open demo vault command.
  2. Downloading root-folder-context-menu-demo-vault.zip from the Releases. It unzips into a single root-folder-context-menu-demo-vault-<version> folder.
  3. Browsing its source in demo-vault/ in this repository.

What it does

  • The vault-name row — at the very bottom of the left sidebar on desktop, at the top of the left drawer on mobile — gets the full folder menu: New note, New folder, New canvas, Set as attachment folder, and the rest. 01 Root folder context menu
  • The empty area below the last file in the Files pane opens that same menu, so you do not have to aim at the vault-name row. 02 Empty area context menu

Entries that make no sense for the vault itself — Rename, Delete, Move folder to..., Make a copy, Search in folder — are removed. There is nothing to configure.

Installation

The plugin is available in the official Community Plugins repository.

Beta versions

To install the latest beta release of this plugin (regardless if it is available in the official Community Plugins repository or not), follow these steps:

  1. Ensure you have the BRAT plugin installed and enabled.
  2. Click Install via BRAT.
  3. An Obsidian pop-up window should appear. In the window, click the Add plugin button once and wait a few seconds for the plugin to install.

Debugging

By default, debug messages for this plugin are hidden.

To show them, run the following command in the DevTools Console:

window.DEBUG.enable('root-folder-context-menu');

For more details, refer to the documentation.

Changelog

All notable changes to this project will be documented in the CHANGELOG.

Contributing

Contributions are welcome — see CONTRIBUTING to get set up.

Support

Buy Me A Coffee

My other Obsidian resources

See my other Obsidian resources.

License

© Michael Naumov

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.