Skip to content

[FEATURE] Support ClaudeCodeTreeAdd in snacks_picker_list #192

@iai6203

Description

@iai6203

Feature Description

I would like the ClaudeCodeTreeAdd command to support the snacks_picker_list filetype (from the snacks.nvim plugin). Currently, the command only works in specific tree-like buffers, and attempting to use it within a Snacks picker results in an error.

Use Case

When searching for files or grepping through code using snacks.nvim pickers, it would be much more efficient to directly add the highlighted file to the Claude Code context without having to open the file first. This would streamline the workflow for building a context-rich prompt.

Proposed Solution

If you have ideas about how to implement the feature, share them here.

Alternatives Considered

Have you considered any alternative solutions or workarounds?

Additional Context

Error message encountered:
[ClaudeCode] [command] [ERROR] ClaudeCodeTreeAdd: Not in a supported tree buffer (current filetype: snacks_picker_list)

P.S. I am not a native English speaker, so I wrote this feature request with the help of an LLM. Please understand if some expressions are slightly awkward.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions