-
|
Hello 👋! Full disclaimer, I'm a complete noob when it comes to Obsidian and its inner works. I literally just started my journey into note taking. Sadly, it has been a bit of a bumpy road so far. I'm at a complete lost at how on earth do you add tags to an existing note. Or rather, how do you deal with tags overall. Watch me here attempt to add tags here, and fail miserably over and over again: obsidian.mp4This makes the tagging system (and the whole frontmatter metadata system) very unreliable, I'm scared to edit something and loose everything 😵💫 But I'm sure I'm doing something wrong, hence my question: How do you all deal with tags and frontmatter properties? Specially when editing. It seems to work fine when creating, but as soon as I want to add a tag to an existing note... 💥 Here's my config btw: return {
"obsidian-nvim/obsidian.nvim",
version = "*",
event = {
"BufReadPre " .. vim.fn.expand("~") .. "/notes/obsidian/gonzalo_notes/*.md",
},
cmd = "Obsidian",
keys = {
{"<leader>on", ":Obsidian new_from_template<CR>"},
},
---@module 'obsidian'
---@type obsidian.config
opts = {
legacy_commands = false,
ui = {
enable = false,
ignore_conceal_warn = true,
},
completion = {
blink = true,
nvim_cmp = false,
},
notes_subdir = "new",
new_notes_location = "notes_subdir",
workspaces = {
{
name = "personal",
path = "~/notes/obsidian/gonzalo_notes/",
},
},
picker = {
name = "fzf-lua",
},
callbacks = {
-- Make sure I don't have any formatting (not sure if this affects frontmatter)
enter_note = function()
vim.cmd("ConformDisable")
end,
leave_note = function()
vim.cmd("ConformEnable")
end,
},
note_path_func = function(spec)
local date = os.date("%Y_%m_%d")
local title = spec.title and spec.title:gsub(" ", "_"):lower() or ""
local filename = date .. "_" .. title .. ".md"
return filename
end,
open_notes_in = "current",
templates = {
subdir = "templates",
date_format = "%Y-%m-%d",
time_format = "%H:%M:%S",
},
daily_notes = {
folder = "dailies",
date_format = "%Y-%m-%d",
template = "note",
},
},
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hi! Welcome to the community! It is totally normal that you are lost if you come into this the first time without prior experience with obsidian app, we should do more guiding to fix that. I will go through the points you did wrong one by one, but don't feel stupid or anything because actually some of your instincts like going for completions is what we are going towards :)
So to conclude, write tags like tags:
- tag1
- tag2or inline some text #here/is/a/tag
and when inline, you get completion trigger by |
Beta Was this translation helpful? Give feedback.
Hi! Welcome to the community! It is totally normal that you are lost if you come into this the first time without prior experience with obsidian app, we should do more guiding to fix that.
I will go through the points you did wrong one by one, but don't feel stupid or anything because actually some of your instincts like going for completions is what we are going towards :)
#tag, with a leading #, while tags in the frontmatter don't need it, see https://help.obsidian.md/tags for how tags in markdown worksso completion for inline tags is triggered by, and completion for tags in the frontmatter is on the roadmap but not realized yet, so you just put things in like#t…