Skip to content

Commit 869c24e

Browse files
committed
refactor: rename action function
1 parent c86e326 commit 869c24e

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

lua/telescope/_extensions/gh_actions.lua

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,20 @@ A.gh_issue_insert = function(prompt_bufnr)
7272
end
7373
end
7474

75-
A.gh_insert_markdown_link = function(prompt_bufnr)
75+
A.gh_issue_insert_markdown_link = function(prompt_bufnr)
7676
if not (vim.api.nvim_buf_get_option(vim.api.nvim_get_current_buf(), "modifiable")) then
7777
return
7878
end
7979
local issue_number = close_telescope_prompt(prompt_bufnr)
8080
local text = utils.get_os_command_output {
81-
"gh", "issue", "view", issue_number,
82-
"--json", "number,title,url",
83-
"--template", '{{printf "%.0f\\x1f%s\\x1f%s" .number .title .url}}',
81+
"gh",
82+
"issue",
83+
"view",
84+
issue_number,
85+
"--json",
86+
"number,title,url",
87+
"--template",
88+
'{{printf "%.0f\\x1f%s\\x1f%s" .number .title .url}}',
8489
}
8590
if text then
8691
local tmp_table = vim.split(text[1], "\x1f")

lua/telescope/_extensions/gh_builtin.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ B.gh_issues = function(opts)
110110
attach_mappings = function(_, map)
111111
actions.select_default:replace(gh_a.gh_issue_insert)
112112
map("i", "<c-t>", gh_a.gh_web_view "issue")
113-
map("i", "<c-l>", gh_a.gh_insert_markdown_link)
113+
map("i", "<c-l>", gh_a.gh_issue_insert_markdown_link)
114114
return true
115115
end,
116116
}):find()

0 commit comments

Comments
 (0)