Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[FEATURE] Send prompt with selection to Claude Code

Open
#234 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
52/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
lua, neovim
Domain
devtools

Research direction

Start by tracing the current selection-to-Claude Code flow described in the issue, then compare it with the linked Opencode Nvim ask() function. The work is done when a prompt can be attached before sending, the resulting text follows the @filename#L1-10 selection prompt format, and the combined message is sent automatically.

Written by the indexing model from the issue text.

Description

Feature Description

Before sending a visual selection to Claude Code, allow prompts to be attached. The final piece sent to Claude should look like: @filename#L1-10 selection prompt, this should also be sent automatically.

Use Case

At the moment the flow for prompting about a piece of code is this:

  1. Make a selection
  2. Send selection to claude code
  3. Shift focus to Claude Code
  4. Write additional prompt about the selection
  5. Send.

The feature request would condense from 2-5 into one step.

Proposed Solution

Something similar is implemented in Opencode Nvim using the ask() function

Dominant language
Lua
Stars
3.1k
Forks
219
PR merge metrics
No merged PRs in 30d

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

  • No Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from coder/claudecode.nvim

All issues in coder/claudecode.nvim

Similar issues

More Lua issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.