Skip to content

Using register contents as issue body? #574

Answered by wd60622
PhilippFeO asked this question in Q&A
Discussion options

You must be logged in to vote

My understanding of the project, those flags do not exist.
This is the function that is being used

function M.save_issue(opts)
vim.fn.inputsave()
local title = vim.fn.input(string.format("Creating issue in %s. Enter title: ", opts.repo), opts.base_title)
vim.fn.inputrestore()
local body
if utils.is_blank(opts.base_body) then
local choice = vim.fn.confirm(
"Do you want to use the content of the current buffer as the body for the new issue?",
"&Yes\n&No\n&Cancel",
2
)
if choice == 1 then
local lines = vim.api.nvim_buf_get_lines(0, 0, -1, true)
body = u…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@PhilippFeO
Comment options

@wd60622
Comment options

Answer selected by PhilippFeO
@PhilippFeO
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants