epwalsh / epwalsh/obsidian.nvim
Can't search iCloud fault
- Dominant language
- Lua
- Stars
- 6.2k
- Forks
- 250
- PR merge metrics
- No merged PRs in 30d
Description
### 🐛 Describe the bug

I get this error message when I try to `:ObsidianSearch`. I can create new notes however
### Config
```
{
"epwalsh/obsidian.nvim",
lazy = false,
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 " .. vim.fn.expand "~" .. "/Library/Mobile Documents/iCloud~md~obsidian/Documents/Katarina/**.md",
"BufNewFile " .. vim.fn.expand "~" .. "/Library/Mobile Documents/iCloud~md~obsidian/Documents/Katarina/**.md",
},
dependencies = {
"nvim-lua/plenary.nvim",
},
config = function()
local path = vim.fn.expand "~" .. "/Library/Mobile Documents/iCloud~md~obsidian/Documents/Katarina/"
vim.keymap.set('n', '.', ":ObsidianNew ")
require("obsidian").setup {
dir = path,
note_id_func = function(title)
return title
end,
disable_frontmatter = true,
finder = "fzf-lua",
}
end
},
```
### Environment
```
NVIM v0.9.5
Build type: Release
LuaJIT 2.1.1703358377
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/local/Cellar/neovim/0.9.5/share/nvim"
Run :checkhealth for more info
Obsidian.nvim v3.7.3 (450c3dabffa395502800d6ac0b1d1dcd5d89f80e)
Status:
buffer directory: nil
working directory: /Users/saint/code/karamake
Workspaces:
✓ active workspace: Workspace(name='Katarina', path='/Users/saint/Library/Mobile Documents/iCloud~md~obsidian/Documents/Katarina', root='/Users/saint/Library/Mobile Documents/iCloud~md~obsidian/Documents/Katarina')
Dependencies:
plenary.nvim: 4f71c0c4a196ceb656c824a70792f3df3ce6bb6d
nvim-cmp: 04e0ca376d6abdbfc8b52180f8ea236cbfddf782
telescope.nvim: 0f865f17af4f9bc1587a0132414cdfd32d91852e
fzf-lua: 25185036079fe9d73249aaab41a5e39163390b54
Integrations:
picker: FzfPicker()
completion: enabled (nvim-cmp)
Tools:
rg: ripgrep 13.0.0
Environment:
operating system: Darwin
Config:
notes_subdir: nil%
```
Contributor guide
Research direction
Start by reproducing :ObsidianSearch with the configured fzf-lua finder against the iCloud vault, then inspect the search path and the rg dependency reported in the environment. Done means searching notes in this workspace works without the reported error; the issue does not name a source file or test to run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- devtools, search
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100