MCPcopy Index your code
hub / github.com/alephpiece/obsidian-slash-commander

github.com/alephpiece/obsidian-slash-commander @0.4.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.4.1 ↗ · + Follow
245 symbols 541 edges 52 files 8 documented · 3% updated 5d ago0.4.1 · 2026-06-24★ 1099 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Slash Commander

Customizable slash command list for Obsidian.

Features

  • [x] Customizable slash command trigger (defaults to /)
    • [x] Additional triggers
  • [x] Per-command trigger modes
  • [x] Customizable slash command list
    • [x] Drag-and-drop command setting items
    • [ ] Command groups
  • [x] Triggering slash commands only at the beginning of a line

How to install

Community plugins

  1. Open Obsidian settings and scroll to "Community plugins".
  2. Turn off the restricted mode.
  3. Browse community plugins, search Slash Commander and install it.
  4. Enable this plugin.

Using BRAT

  1. Install this plugin using BRAT.
  2. Go to "Community plugins" and install "Obsidian42 - BRAT".
  3. Add https://github.com/alephpiece/obsidian-slash-commander to BRAT.
  4. Enable this plugin.

How to use

Simple usage

slash-commander-usage

Add a new slash command

slash-commander-add

Define your own trigger(s)

slash-commander-triggers

Triggering on new line

slash-commander-newline

Show descriptions

slash-commander-description

Development

Requires Node.js 22.13 or newer. Corepack is recommended so the pinned pnpm version in package.json is used.

# enable package manager
corepack enable

# install deps
pnpm install

# dev
pnpm dev

# build
pnpm build

Release

Version bumps use the package manager's version lifecycle. The command updates package.json, syncs manifest.json, updates versions.json only when the minimum Obsidian app version changes, then creates a local commit and tag.

pnpm version:patch
pnpm version:minor
pnpm version:major

Review the generated commit and tag, then push them manually when ready:

git push
git push --tags

Credits

Extension points exported contracts — how you extend this code

ConfirmDeleteProps (Interface)
* Props for the confirm delete component
src/ui/components/ConfirmDeleteComponent.tsx
SettingState (Interface)
(no doc)
src/data/stores/useSettingStore.ts
CommandVisibilityContext (Interface)
(no doc)
src/services/command.ts
ConfirmRestoreProps (Interface)
* Props for the confirm restore component
src/ui/components/ConfirmRestoreComponent.tsx
InternalPlugin (Interface)
(no doc)
src/data/models/ObsidianModules.ts
ObsidianIconProps (Interface)
(no doc)
src/ui/components/obsidianIconComponent.tsx
InternalPlugins (Interface)
(no doc)
src/data/models/ObsidianModules.ts
BaseComponentProps (Interface)
(no doc)
src/ui/components/settingItemComponent.tsx

Core symbols most depended-on inside this repo

buildQueryPattern
called by 22
src/services/search.ts
isCommandGroup
called by 13
src/services/command.ts
close
called by 12
src/services/suggest/subSuggest.ts
empty
called by 11
src/services/suggest/suggester.ts
open
called by 8
src/services/suggest/subSuggest.ts
getDeviceModeInfo
called by 7
src/services/utils.ts
getTriggerModeInfo
called by 7
src/services/utils.ts
isCommandPathVisible
called by 7
src/services/command.ts

Shape

Function 115
Method 78
Interface 27
Class 25

Languages

TypeScript100%

Modules by API surface

src/services/suggest/suggester.ts31 symbols
src/services/command.ts26 symbols
src/ui/modals/BindingEditorModal.tsx24 symbols
src/ui/viewer/utilities.ts17 symbols
src/ui/viewer/CommandViewer.tsx14 symbols
src/ui/modals/ChooseIconModal.ts8 symbols
src/services/suggest/slashSuggest.ts8 symbols
src/data/stores/useSettingStore.ts8 symbols
src/ui/modals/ConfirmDeleteModal.ts7 symbols
src/ui/modals/ConfirmRestoreModal.ts6 symbols
src/services/suggest/menuSuggest.ts6 symbols
src/main.ts6 symbols

For agents

$ claude mcp add obsidian-slash-commander \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page