We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eca7d2f commit 36df6b2Copy full SHA for 36df6b2
1 file changed
lua/telescope/_extensions/gh_actions.lua
@@ -80,12 +80,18 @@ end
80
A.gh_web_view = function(type)
81
return function(prompt_bufnr)
82
local selection = action_state.get_selected_entry()
83
+ local id = ""
84
actions.close(prompt_bufnr)
85
local tmp_table = vim.split(selection.value, "\t")
86
if vim.tbl_isempty(tmp_table) then
87
return
88
end
- os.execute("gh " .. type .. " view --web " .. tmp_table[1])
89
+ if type == "gist" then
90
+ id = selection.id
91
+ else
92
+ id = tmp_table[1]
93
+ end
94
+ os.execute("gh " .. type .. " view --web " .. id)
95
96
97
0 commit comments