Suggestion: User friendly input box by default for `CodyTask`
manish-baghel opened this issue · comments
Manish Baghel commented
Preview
Code Example
{
"<space>ca",
function()
local buf = vim.api.nvim_get_current_buf()
local start_row, end_row = utils.get_visual_selection_rows()
vim.ui.input({ prompt = "Task/Ask: " }, function(input)
if input == nil or input == "" then
return
end
require("sg.cody.commands").do_task(buf, start_row, end_row, input)
end)
end,
mode = "v",
},
Manish Baghel commented
@tjdevries
I can raise a PR if this looks alright to you.