Skip to content

Commit cf78328

Browse files
committed
Finish formatting in the template
1 parent 869c24e commit cf78328

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

lua/telescope/_extensions/gh_actions.lua

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,10 @@ A.gh_issue_insert_markdown_link = function(prompt_bufnr)
8585
"--json",
8686
"number,title,url",
8787
"--template",
88-
'{{printf "%.0f\\x1f%s\\x1f%s" .number .title .url}}',
88+
'{{printf "[%s (#%.0f)](%s)" .title .number .url}}',
8989
}
9090
if text then
91-
local tmp_table = vim.split(text[1], "\x1f")
92-
vim.api.nvim_put({ string.format("[%s (#%s)](%s)", tmp_table[2], tmp_table[1], tmp_table[3]) }, "b", true, true)
91+
vim.api.nvim_put(text, "b", true, true)
9392
end
9493
end
9594

0 commit comments

Comments
 (0)