epwalsh / epwalsh/obsidian.nvim

Obsidian Templates stopped working.

Open
#604 5 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Lua
Stars
6.2k
Forks
250
PR merge metrics
No merged PRs in 30d

Description

### 🐛 Describe the bug

Telescope is not able to detect templates.
This started after updates it was working fine a few days ago with this exact configuration.

I have also used `folder = "Templates"` instead of the `subdir` i have right now still does not work.

### Config

```lua
return {
"epwalsh/obsidian.nvim",
version = "*", -- recommended, use latest release instead of latest commit
lazy = true,
cmd = "ObsidianQuickSwitch",
ft = "markdown",
keys = {
{ "wW", mode = "n", "ObsidianQuickSwitch", desc = "Obsidian Notes" },
},

-- Replace the above line with this if you only want to load obsidian.nvim for markdown files in your vault:
-- event = {
-- -- If you want to use the home shortcut '~' here you need to call 'vim.fn.expand'.
-- -- E.g. "BufReadPre " .. vim.fn.expand "~" .. "/my-vault/**.md"
-- "BufReadPre path/to/my-vault/**.md",
-- "BufNewFile path/to/my-vault/**.md",
-- },
dependencies = {
-- Required.
"nvim-lua/plenary.nvim",
"hrsh7th/nvim-cmp",
"nvim-telescope/telescope.nvim",
"nvim-treesitter/nvim-treesitter",
"3rd/image.nvim",
-- see below for full list of optional dependencies 👇
},
opts = {
templates = {

subdir = "Templates",
},
daily_notes = {
folder = "Daily",
template = "/Daily Notes.md",
},
attachments = {
img_folder = "Images",
},
follow_url_func = function(url)
print("Opening URL: " .. url)
vim.fn.jobstart({ "xdg-open", url }) -- linux
end,
workspaces = {
{
name = "personal",
path = "~/Code/Obsidian/",
},
},
},
}

```

### Environment

```
Obsidian.nvim v3.7.12 (db41b1f20459293436fab510bec58c82a73bd1f7)
Status:
• buffer directory: nil
• working directory: /home/redox
Workspaces:
✓ active workspace: Workspace(name='personal', path='/home/redox/Code/Obsidian', root='/home/redox/Code/Ob
bsidian')
Dependencies:
✓ plenary.nvim: a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683
✓ nvim-cmp: 5260e5e8ecadaf13e6b82cf867a909f54e15fd07
✓ telescope.nvim: 4c96370cf93e2ba287548da12d673442d0ffecc3
Integrations:
✓ picker: TelescopePicker()
✓ completion: enabled (nvim-cmp) ✗ refs, ✗ tags, ✗ new
all sources:
• nvim_lsp
• path
• buffer
• snippets
• luasnip
• emoji
Tools:
✓ rg: ripgrep 14.1.0
Environment:
• operating system: Linux
Config:
• notes_subdir: nil
```

Contributor guide

Open the contributing guide

Research direction

No repository files or tests are named. Reproduce the issue with the supplied Neovim configuration, workspace path, and ObsidianQuickSwitch entry point, then trace template detection using the `templates.subdir` setting. Done means templates in the configured Templates directory are detected and usable.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, neovim
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.