update obsidian config
This commit is contained in:
parent
b6f5af87e7
commit
d962226a0d
1 changed files with 10 additions and 5 deletions
|
@ -67,15 +67,20 @@ return {
|
||||||
|
|
||||||
new_notes_location = "current_dir",
|
new_notes_location = "current_dir",
|
||||||
|
|
||||||
wiki_link_func = function(opts)
|
wiki_link_func = "use_alias_only",
|
||||||
return require("obsidian.util").wiki_link_id_prefix(opts)
|
|
||||||
end,
|
-- wiki_link_func = function(opts)
|
||||||
|
-- return require("obsidian.util").wiki_link_id_prefix(opts)
|
||||||
|
-- end,
|
||||||
|
|
||||||
preferred_link_style = "wiki",
|
preferred_link_style = "wiki",
|
||||||
|
|
||||||
note_id_func = function(title)
|
note_id_func = function(title)
|
||||||
return tostring(os.date("%Y-%m-%d") .. "-" .. title:gsub(" ", "-"):gsub("[^A-Za-z0-9-]", ""):lower())
|
return title
|
||||||
end,
|
end,
|
||||||
|
-- note_id_func = function(title)
|
||||||
|
-- return tostring(os.date("%Y-%m-%d") .. "-" .. title:gsub(" ", "-"):gsub("[^A-Za-z0-9-]", ""):lower())
|
||||||
|
-- end,
|
||||||
disable_frontmatter = true,
|
disable_frontmatter = true,
|
||||||
|
|
||||||
-- Optional, by default when you use `:ObsidianFollowLink` on a link to an external
|
-- Optional, by default when you use `:ObsidianFollowLink` on a link to an external
|
||||||
|
@ -91,7 +96,7 @@ return {
|
||||||
-- file it will be ignored but you can customize this behavior here.
|
-- file it will be ignored but you can customize this behavior here.
|
||||||
---@param img string
|
---@param img string
|
||||||
follow_img_func = function(img)
|
follow_img_func = function(img)
|
||||||
vim.fn.jobstart({ "xdg-open", url }) -- linux
|
vim.fn.jobstart({ "xdg-open", img }) -- linux
|
||||||
end,
|
end,
|
||||||
attachments = {
|
attachments = {
|
||||||
-- The default folder to place images in via `:ObsidianPasteImg`.
|
-- The default folder to place images in via `:ObsidianPasteImg`.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue