You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I have multiple workspaces, I was expecting that :ObsidianSearch and :ObsidianTags use only files from currently selected workspace. However, it currently searches the main workspace (or all, not sure).
I have a main vault for my general notes, but for every project I work on, I create _wiki folder in the root of it. I'm using dynamic workspaces which finds project_wiki_root and puts it in the path (with curr_dir fallback):
{
name = "project-vault",
path = function()
local project_wiki_path = GetProjectWikiPath()
if project_wiki_path then
return project_wiki_path
else
return assert(vim.fs.dirname(vim.api.nvim_buf_get_name(0)))
end
end,
overrides = {
notes_subdir = vim.NIL, -- have to use 'vim.NIL' instead of 'nil'
new_notes_location = "current_dir",
templates = {
folder = vim.NIL,
},
disable_frontmatter = true,
},
},
That works ok, but I fail to see any advantages of multiple (and/or dynamic) workspaces without some more functionality.
Alternatives
Only alternative I can think of is to write custom Telescope search which will search only inside project_wiki_root directory.
Additional context
I'm just trying obsidian.nvim for the first time, so I might be terribly wrong how all this works.
The text was updated successfully, but these errors were encountered:
🚀 The feature, motivation and pitch
If I have multiple workspaces, I was expecting that :ObsidianSearch and :ObsidianTags use only files from currently selected workspace. However, it currently searches the main workspace (or all, not sure).
I have a main vault for my general notes, but for every project I work on, I create _wiki folder in the root of it. I'm using dynamic workspaces which finds project_wiki_root and puts it in the path (with curr_dir fallback):
That works ok, but I fail to see any advantages of multiple (and/or dynamic) workspaces without some more functionality.
Alternatives
Only alternative I can think of is to write custom Telescope search which will search only inside project_wiki_root directory.
Additional context
I'm just trying obsidian.nvim for the first time, so I might be terribly wrong how all this works.
The text was updated successfully, but these errors were encountered: