Skip to content

Conversation

@xeon826
Copy link

@xeon826 xeon826 commented Jan 19, 2026

File picker using fzf-lua to select git files or open buffers to add to the prompt. Use it like so:

		vim.keymap.set("t", "<C-f>", function()
			require("opencode").fzf.select_files()
		end, opts)
		vim.keymap.set("t", "<C-b>", function()
			require("opencode").fzf.select_buffers()
		end, opts)
image

@NickvanDyke
Copy link
Owner

Neat, thank you! I have thought about something like this.

I think it'd be more powerful and reusable the way sidekick.nvim does it. Is that possible in fzf-lua? That could get us started on supporting other pickers too. 🙂

@xeon826
Copy link
Author

xeon826 commented Jan 20, 2026

I created another branch using my fork that more resembles the functionality you're referring to but it seems opencode is lacking an endpoint for submitting file paths so I created an issue and rough draft branch of opencode for adding that.

@NickvanDyke
Copy link
Owner

NickvanDyke commented Jan 20, 2026

I think that missing feature is fine for now - it's an optimization, not a requirement. And is consistent with other filepath references anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants