From e30e3c5120835fde6baf903ec99194db00730b47 Mon Sep 17 00:00:00 2001 From: yuukibarns Date: Mon, 23 Sep 2024 12:35:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20replace=20=E2=9D=AF=20with=20>.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/obsidian/pickers/_fzf.lua | 2 +- lua/obsidian/util.lua | 2 +- test/obsidian/util_spec.lua | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lua/obsidian/pickers/_fzf.lua b/lua/obsidian/pickers/_fzf.lua index 5e7b3a608..5fa08ce32 100644 --- a/lua/obsidian/pickers/_fzf.lua +++ b/lua/obsidian/pickers/_fzf.lua @@ -14,7 +14,7 @@ local function format_prompt(prompt_title) if not prompt_title then return else - return prompt_title .. " ❯ " + return prompt_title .. " > " end end diff --git a/lua/obsidian/util.lua b/lua/obsidian/util.lua index 1db3d044e..9da1fb46b 100644 --- a/lua/obsidian/util.lua +++ b/lua/obsidian/util.lua @@ -973,7 +973,7 @@ end ---@param anchor obsidian.note.HeaderAnchor ---@return string util.format_anchor_label = function(anchor) - return string.format(" ❯ %s", anchor.header) + return string.format(" > %s", anchor.header) end ---@param opts { path: string, label: string, id: string|integer|?, anchor: obsidian.note.HeaderAnchor|?, block: obsidian.note.Block|? } diff --git a/test/obsidian/util_spec.lua b/test/obsidian/util_spec.lua index c4cb7e0ea..048df368d 100644 --- a/test/obsidian/util_spec.lua +++ b/test/obsidian/util_spec.lua @@ -315,7 +315,7 @@ describe("util.wiki_link_id_prefix()", function() it("should work with an anchor link", function() assert.equals( - "[[123-foo#heading|Foo ❯ Heading]]", + "[[123-foo#heading|Foo > Heading]]", util.wiki_link_id_prefix { path = "123-foo.md", id = "123-foo", @@ -336,7 +336,7 @@ describe("util.wiki_link_path_prefix()", function() it("should work with an anchor link and header", function() assert.equals( - "[[123-foo.md#heading|Foo ❯ Heading]]", + "[[123-foo.md#heading|Foo > Heading]]", util.wiki_link_path_prefix { path = "123-foo.md", id = "123-foo", @@ -372,7 +372,7 @@ describe("util.markdown_link()", function() it("should work with an anchor link", function() assert.equals( - "[Foo ❯ Heading](123-foo.md#heading)", + "[Foo > Heading](123-foo.md#heading)", util.markdown_link { path = "123-foo.md", id = "123-foo",