From 662fb1af2d27554d30e7221ccb234ec3aa789e38 Mon Sep 17 00:00:00 2001 From: David Date: Tue, 7 May 2024 19:18:02 +0200 Subject: [PATCH 1/4] Added checkbox for important --- lua/obsidian/config.lua | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/lua/obsidian/config.lua b/lua/obsidian/config.lua index b365afc2e..12bb8ee09 100644 --- a/lua/obsidian/config.lua +++ b/lua/obsidian/config.lua @@ -132,8 +132,8 @@ config.ClientOpts.normalize = function(opts, defaults) if warn then log.warn_once( "The config options 'completion.prepend_note_id', 'completion.prepend_note_path', and 'completion.use_path_only' " - .. "are deprecated. Please use 'wiki_link_func' instead.\n" - .. "See https://github.com/epwalsh/obsidian.nvim/pull/406" + .. "are deprecated. Please use 'wiki_link_func' instead.\n" + .. "See https://github.com/epwalsh/obsidian.nvim/pull/406" ) end end @@ -155,7 +155,7 @@ config.ClientOpts.normalize = function(opts, defaults) opts.completion.preferred_link_style = nil log.warn_once( "The config option 'completion.preferred_link_style' is deprecated, please use the top-level " - .. "'preferred_link_style' instead." + .. "'preferred_link_style' instead." ) end @@ -164,7 +164,7 @@ config.ClientOpts.normalize = function(opts, defaults) opts.completion.new_notes_location = nil log.warn_once( "The config option 'completion.new_notes_location' is deprecated, please use the top-level " - .. "'new_notes_location' instead." + .. "'new_notes_location' instead." ) end @@ -172,7 +172,7 @@ config.ClientOpts.normalize = function(opts, defaults) opts.detect_cwd = nil log.warn_once( "The 'detect_cwd' field is deprecated and no longer has any affect.\n" - .. "See https://github.com/epwalsh/obsidian.nvim/pull/366 for more details." + .. "See https://github.com/epwalsh/obsidian.nvim/pull/366 for more details." ) end @@ -429,8 +429,9 @@ config.UIOpts.default = function() checkboxes = { [" "] = { order = 1, char = "󰄱", hl_group = "ObsidianTodo" }, ["~"] = { order = 2, char = "󰰱", hl_group = "ObsidianTilde" }, - [">"] = { order = 3, char = "", hl_group = "ObsidianRightArrow" }, - ["x"] = { order = 4, char = "", hl_group = "ObsidianDone" }, + ["!"] = { order = 3, char = "", hl_group = "ObsidianImportant" }, + [">"] = { order = 4, char = "", hl_group = "ObsidianRightArrow" }, + ["x"] = { order = 5, char = "", hl_group = "ObsidianDone" }, }, bullets = { char = "•", hl_group = "ObsidianBullet" }, external_link_icon = { char = "", hl_group = "ObsidianExtLinkIcon" }, @@ -443,6 +444,7 @@ config.UIOpts.default = function() ObsidianDone = { bold = true, fg = "#89ddff" }, ObsidianRightArrow = { bold = true, fg = "#f78c6c" }, ObsidianTilde = { bold = true, fg = "#ff5370" }, + ObsidianImportant = { bold = true, fg = "#d73128" }, ObsidianBullet = { bold = true, fg = "#89ddff" }, ObsidianRefText = { underline = true, fg = "#c792ea" }, ObsidianExtLinkIcon = { fg = "#c792ea" }, From e8c3c72ec6c3b4a6a26d96e144a0d818d4f0929b Mon Sep 17 00:00:00 2001 From: David Date: Tue, 7 May 2024 19:41:24 +0200 Subject: [PATCH 2/4] Fixed formatting --- lua/obsidian/config.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lua/obsidian/config.lua b/lua/obsidian/config.lua index 12bb8ee09..c8396d7d5 100644 --- a/lua/obsidian/config.lua +++ b/lua/obsidian/config.lua @@ -132,8 +132,8 @@ config.ClientOpts.normalize = function(opts, defaults) if warn then log.warn_once( "The config options 'completion.prepend_note_id', 'completion.prepend_note_path', and 'completion.use_path_only' " - .. "are deprecated. Please use 'wiki_link_func' instead.\n" - .. "See https://github.com/epwalsh/obsidian.nvim/pull/406" + .. "are deprecated. Please use 'wiki_link_func' instead.\n" + .. "See https://github.com/epwalsh/obsidian.nvim/pull/406" ) end end @@ -155,7 +155,7 @@ config.ClientOpts.normalize = function(opts, defaults) opts.completion.preferred_link_style = nil log.warn_once( "The config option 'completion.preferred_link_style' is deprecated, please use the top-level " - .. "'preferred_link_style' instead." + .. "'preferred_link_style' instead." ) end @@ -164,7 +164,7 @@ config.ClientOpts.normalize = function(opts, defaults) opts.completion.new_notes_location = nil log.warn_once( "The config option 'completion.new_notes_location' is deprecated, please use the top-level " - .. "'new_notes_location' instead." + .. "'new_notes_location' instead." ) end @@ -172,7 +172,7 @@ config.ClientOpts.normalize = function(opts, defaults) opts.detect_cwd = nil log.warn_once( "The 'detect_cwd' field is deprecated and no longer has any affect.\n" - .. "See https://github.com/epwalsh/obsidian.nvim/pull/366 for more details." + .. "See https://github.com/epwalsh/obsidian.nvim/pull/366 for more details." ) end From 092ada4594c8921d5192fdb9f30fb7592f5d36d1 Mon Sep 17 00:00:00 2001 From: David Date: Thu, 9 May 2024 10:07:36 +0200 Subject: [PATCH 3/4] Updated README to include new checkbox --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 2a1c5e0b4..930ce7a00 100644 --- a/README.md +++ b/README.md @@ -463,6 +463,7 @@ This is a complete list of all of the options that can be passed to `require("ob ["x"] = { char = "", hl_group = "ObsidianDone" }, [">"] = { char = "", hl_group = "ObsidianRightArrow" }, ["~"] = { char = "󰰱", hl_group = "ObsidianTilde" }, + ["!"] = { char = "", hl_group = "ObsidianImportant" }, -- Replace the above with this if you don't have a patched font: -- [" "] = { char = "☐", hl_group = "ObsidianTodo" }, -- ["x"] = { char = "✔", hl_group = "ObsidianDone" }, From 90b6c03b50034ece2f08706d1cbb026f99ff6045 Mon Sep 17 00:00:00 2001 From: David Date: Fri, 17 May 2024 06:54:24 +0200 Subject: [PATCH 4/4] Added Highlight Group to README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 930ce7a00..ffc704c71 100644 --- a/README.md +++ b/README.md @@ -485,6 +485,7 @@ This is a complete list of all of the options that can be passed to `require("ob ObsidianDone = { bold = true, fg = "#89ddff" }, ObsidianRightArrow = { bold = true, fg = "#f78c6c" }, ObsidianTilde = { bold = true, fg = "#ff5370" }, + ObsidianImportant = { bold = true, fg = "#d73128" }, ObsidianBullet = { bold = true, fg = "#89ddff" }, ObsidianRefText = { underline = true, fg = "#c792ea" }, ObsidianExtLinkIcon = { fg = "#c792ea" },