Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: User friendly input box by default for CodyTask #219

Closed
manish-baghel opened this issue Mar 12, 2024 · 1 comment
Closed

Suggestion: User friendly input box by default for CodyTask #219

manish-baghel opened this issue Mar 12, 2024 · 1 comment

Comments

@manish-baghel
Copy link

Preview

2024-03-13-024915_1014x424_scrot

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
Copy link
Author

@tjdevries
I can raise a PR if this looks alright to you.

@mmanela mmanela added the Migrated label May 6, 2024 — with Linear
@eseliger eseliger removed the Migrated label May 21, 2024
@eseliger eseliger changed the title Suggestion: User friendly input box by default for CodyTask Suggestion: User friendly input box by default for CodyTask May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants