Page:
Commands
Pages
Actions
Attachment
Audio recorder
Autocmds
Bookmarks
Breaking Changes
Cache
Checkbox
Commands
Completion
Daily Notes
Editing this wiki
Extensions
File
Folding
Footer
Frontmatter
Home
Images
Integrations
Keymaps
LSP Progress
LSP
Link
Navigation
Note
Open
Recipes
Resolvers
Scripting
Search
Startup Guide
Statusline
Sync
Tag
Template
Unique Note
Workspace
No results
7
Commands
github-actions edited this page 2026-02-18 23:02:56 +00:00
Table of contents
Deprecation of legacy commands
Currently commands are available in two formats, for example:
ObsidianExtractNote(legacy format)Obsidian extract_note
Warning
The legacy format of commands will no longer be maintained from version 4.0.0.
You can clean the Obsidian namespace by passing the following into the setup function:
require("obsidian").setup {
legacy_commands = false,
}
Completion for sub-commands
For real completion as you type, add following snippet to your config, this will not play well with custom cmdline completion implementations like blink.cmp or nvim-cmp, it is recommended you use mini.cmdline, or explore how the plugins above can be avoided from being triggered in this context, and share the solution, so that the following snippet can become the default.
vim.api.nvim_create_autocmd("CmdlineChanged", {
callback = function()
local cmdline = vim.fn.getcmdline()
if vim.fn.getcmdtype() ~= ":" then
return
end
if not cmdline:match "^Obsidian[A-Za-z0-9]*$" then
return
end
vim.fn.wildtrigger()
end,
})
🌟 obsidian.nvim
Topics
- Actions
- Autocmds
- Commands
- Folding
- Extensions
- Images
- Integrations
- Keymaps
- Navigation
- Scripting
- Startup-Guide
- Recipes
- LSP
- LSP-Progress