Skip to content

Commit

Permalink
fix: replace ❯ with >.
Browse files Browse the repository at this point in the history
  • Loading branch information
yuukibarns committed Sep 23, 2024
1 parent 14e0427 commit e30e3c5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lua/obsidian/pickers/_fzf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion lua/obsidian/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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|? }
Expand Down
6 changes: 3 additions & 3 deletions test/obsidian/util_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit e30e3c5

Please sign in to comment.