Skip to content

[BUG] ClaudeCodeAdd fails on paths with spaces #314

Description

@7A1T

Bug Description

ClaudeCodeAdd with default keybinding fails on filepaths that contain spaces

To Reproduce

Steps to reproduce the behavior:

  1. Start Claude Code integration with a path containing spaces
  2. Run command 'ClaudeCodeAdd %'
  3. See error Too many arguments

Expected Behavior

Default command should handle paths with spaces.

Fix:

Update readme:

    {
      "<leader>ab",
      function()
        require("claudecode").send_at_mention(vim.fn.expand("%:p"), nil, nil, "ClaudeCodeAdd")
      end,
      desc = "Add current buffer",
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed or likely defectneeds-triageAwaiting maintainer triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions