diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md index 4874ae6..c34fc60 100644 --- a/ARCHITECTURE.md +++ b/ARCHITECTURE.md @@ -245,8 +245,8 @@ Manual testing with real Neovim configurations in the `fixtures/` directory: source fixtures/nvim-aliases.sh vv nvim-tree # Test with nvim-tree integration vv oil # Test with oil.nvim integration +vv mini-files # Test with mini.files integration vv netrw # Test with built-in netrw -vv mini-files # Test with built-in mini.files # Each fixture provides: # - Complete Neovim configuration diff --git a/CLAUDE.md b/CLAUDE.md index ed5d84a..8224cc1 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -51,6 +51,7 @@ The `fixtures/` directory contains test Neovim configurations for verifying plug - `netrw` - Tests with Neovim's built-in file explorer - `nvim-tree` - Tests with nvim-tree.lua file explorer - `oil` - Tests with oil.nvim file explorer +- `mini-files` - Tests with mini.files file explorer **Usage**: `source fixtures/nvim-aliases.sh && vv oil` starts Neovim with oil.nvim configuration @@ -318,7 +319,7 @@ Log levels for authentication events: ### Integration Support - Terminal integration supports both snacks.nvim and native Neovim terminal -- Compatible with popular file explorers (nvim-tree, oil.nvim) +- Compatible with popular file explorers (nvim-tree, oil.nvim, neo-tree, mini.files) - Visual selection tracking across different selection modes ## Release Process diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 4e4b85b..7c0311a 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -148,6 +148,7 @@ source fixtures/nvim-aliases.sh # Test with specific integration vv nvim-tree # Start Neovim with nvim-tree configuration vv oil # Start Neovim with oil.nvim configuration +vv mini-files # Start Neovim with mini.files configuration vv netrw # Start Neovim with built-in netrw configuration # List available configurations diff --git a/README.md b/README.md index 6c0cdcb..8df15f2 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ When Anthropic released Claude Code, they only supported VS Code and JetBrains. "as", "ClaudeCodeTreeAdd", desc = "Add file", - ft = { "NvimTree", "neo-tree", "oil" }, + ft = { "NvimTree", "neo-tree", "oil", "minifiles" }, }, -- Diff management { "aa", "ClaudeCodeDiffAccept", desc = "Accept diff" }, @@ -182,7 +182,7 @@ Configure the plugin with the detected path: 1. **Launch Claude**: Run `:ClaudeCode` to open Claude in a split terminal 2. **Send context**: - Select text in visual mode and use `as` to send it to Claude - - In `nvim-tree`/`neo-tree`/`oil.nvim`, press `as` on a file to add it to Claude's context + - In `nvim-tree`/`neo-tree`/`oil.nvim`/`mini.nvim`, press `as` on a file to add it to Claude's context 3. **Let Claude work**: Claude can now: - See your current file and selections in real-time - Open files in your editor diff --git a/dev-config.lua b/dev-config.lua index a8ddc97..d1a34bc 100644 --- a/dev-config.lua +++ b/dev-config.lua @@ -24,7 +24,7 @@ return { "as", "ClaudeCodeTreeAdd", desc = "Add file from tree", - ft = { "NvimTree", "neo-tree", "oil" }, + ft = { "NvimTree", "neo-tree", "oil", "minifiles" }, }, -- Development helpers diff --git a/lua/claudecode/diff.lua b/lua/claudecode/diff.lua index 63d9887..45296ef 100644 --- a/lua/claudecode/diff.lua +++ b/lua/claudecode/diff.lua @@ -51,6 +51,7 @@ local function find_main_editor_window() or filetype == "neo-tree-popup" or filetype == "NvimTree" or filetype == "oil" + or filetype == "minifiles" or filetype == "aerial" or filetype == "tagbar" ) diff --git a/lua/claudecode/integrations.lua b/lua/claudecode/integrations.lua index af6faec..69df7b6 100644 --- a/lua/claudecode/integrations.lua +++ b/lua/claudecode/integrations.lua @@ -1,5 +1,5 @@ ----Tree integration module for ClaudeCode.nvim ----Handles detection and selection of files from nvim-tree, neo-tree, and oil.nvim +--- Tree integration module for ClaudeCode.nvim +--- Handles detection and selection of files from nvim-tree, neo-tree, mini.files, and oil.nvim ---@module 'claudecode.integrations' local M = {} diff --git a/lua/claudecode/tools/open_file.lua b/lua/claudecode/tools/open_file.lua index 0642039..3408328 100644 --- a/lua/claudecode/tools/open_file.lua +++ b/lua/claudecode/tools/open_file.lua @@ -80,6 +80,7 @@ local function find_main_editor_window() or filetype == "neo-tree-popup" or filetype == "NvimTree" or filetype == "oil" + or filetype == "minifiles" or filetype == "aerial" or filetype == "tagbar" )