Skip to content

Commit eca7d2f

Browse files
committed
chore: get_selected_entry don't have arguments
1 parent 523d9c2 commit eca7d2f

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

lua/telescope/_extensions/gh_actions.lua

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ local flatten = vim.tbl_flatten
88
local A = {}
99

1010
local function close_telescope_prompt(prompt_bufnr)
11-
local selection = action_state.get_selected_entry(prompt_bufnr)
11+
local selection = action_state.get_selected_entry()
1212
actions.close(prompt_bufnr)
1313
local tmp_table = vim.split(selection.value, "\t")
1414
if vim.tbl_isempty(tmp_table) then
@@ -79,7 +79,7 @@ end
7979

8080
A.gh_web_view = function(type)
8181
return function(prompt_bufnr)
82-
local selection = action_state.get_selected_entry(prompt_bufnr)
82+
local selection = action_state.get_selected_entry()
8383
actions.close(prompt_bufnr)
8484
local tmp_table = vim.split(selection.value, "\t")
8585
if vim.tbl_isempty(tmp_table) then
@@ -90,7 +90,7 @@ A.gh_web_view = function(type)
9090
end
9191

9292
A.gh_gist_append = function(prompt_bufnr)
93-
local selection = action_state.get_selected_entry(prompt_bufnr)
93+
local selection = action_state.get_selected_entry()
9494
actions.close(prompt_bufnr)
9595
if selection.id == "" then
9696
return
@@ -111,7 +111,7 @@ A.gh_gist_create = function(prompt_bufnr)
111111
end
112112

113113
A.gh_gist_edit = function(prompt_bufnr)
114-
local selection = action_state.get_selected_entry(prompt_bufnr)
114+
local selection = action_state.get_selected_entry()
115115
actions.close(prompt_bufnr)
116116
if selection.id == "" then
117117
return
@@ -120,7 +120,7 @@ A.gh_gist_edit = function(prompt_bufnr)
120120
end
121121

122122
A.gh_gist_delete = function(prompt_bufnr)
123-
local selection = action_state.get_selected_entry(prompt_bufnr)
123+
local selection = action_state.get_selected_entry()
124124
actions.close(prompt_bufnr)
125125
if selection.id == "" then
126126
return
@@ -133,7 +133,7 @@ A.gh_gist_delete = function(prompt_bufnr)
133133
end
134134

135135
A.gh_secret_append = function(prompt_bufnr)
136-
local selection = action_state.get_selected_entry(prompt_bufnr)
136+
local selection = action_state.get_selected_entry()
137137
actions.close(prompt_bufnr)
138138
if selection.value == "" then
139139
return
@@ -144,7 +144,7 @@ A.gh_secret_append = function(prompt_bufnr)
144144
end
145145

146146
A.gh_secret_remove = function(prompt_bufnr)
147-
local selection = action_state.get_selected_entry(prompt_bufnr)
147+
local selection = action_state.get_selected_entry()
148148
actions.close(prompt_bufnr)
149149
if selection.value == "" then
150150
return
@@ -168,7 +168,7 @@ A.gh_secret_set_new = function(prompt_bufnr)
168168
end
169169

170170
A.gh_secret_set = function(prompt_bufnr)
171-
local selection = action_state.get_selected_entry(prompt_bufnr)
171+
local selection = action_state.get_selected_entry()
172172
actions.close(prompt_bufnr)
173173
local secret_body = vim.fn.input "[SECRET] Enter secret value: "
174174
if secret_body == "" then
@@ -185,7 +185,7 @@ A.gh_pr_v_toggle = function(prompt_bufnr)
185185
else
186186
status.gh_pr_preview = "diff"
187187
end
188-
local entry = action_state.get_selected_entry(prompt_bufnr)
188+
local entry = action_state.get_selected_entry()
189189
action_state.get_current_picker(prompt_bufnr).previewer:preview(entry, status)
190190
end
191191

@@ -211,7 +211,7 @@ A.gh_pr_approve = function(prompt_bufnr)
211211
end
212212

213213
A.gh_run_web_view = function(prompt_bufnr)
214-
local selection = action_state.get_selected_entry(prompt_bufnr)
214+
local selection = action_state.get_selected_entry()
215215
actions.close(prompt_bufnr)
216216
if selection.id == "" then
217217
return
@@ -220,7 +220,7 @@ A.gh_run_web_view = function(prompt_bufnr)
220220
end
221221

222222
A.gh_run_rerun = function(prompt_bufnr)
223-
local selection = action_state.get_selected_entry(prompt_bufnr)
223+
local selection = action_state.get_selected_entry()
224224
actions.close(prompt_bufnr)
225225
if selection.id == "" then
226226
return
@@ -230,7 +230,7 @@ A.gh_run_rerun = function(prompt_bufnr)
230230
end
231231

232232
A.gh_run_cancel = function(prompt_bufnr)
233-
local selection = action_state.get_selected_entry(prompt_bufnr)
233+
local selection = action_state.get_selected_entry()
234234
actions.close(prompt_bufnr)
235235
if selection.id == "" or selection.active == "completed" then
236236
return
@@ -241,7 +241,7 @@ end
241241

242242
A.gh_run_view_log = function(opts)
243243
return function(prompt_bufnr)
244-
local selection = action_state.get_selected_entry(prompt_bufnr)
244+
local selection = action_state.get_selected_entry()
245245
actions.close(prompt_bufnr)
246246
if selection.id == "" then
247247
return

lua/telescope/_extensions/gh_builtin.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ B.gh_pull_request = function(opts)
142142
map("i", "<c-t>", gh_a.gh_web_view "pr")
143143
map("i", "<c-a>", gh_a.gh_pr_approve)
144144
map("i", "<c-f>", function(prompt_bufnr)
145-
local selection = action_state.get_selected_entry(prompt_bufnr)
145+
local selection = action_state.get_selected_entry()
146146
actions.close(prompt_bufnr)
147147
local pr_number = vim.split(selection.value, "\t")[1]
148148

0 commit comments

Comments
 (0)