Skip to content

Mini.files support touch-ups #98

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Aug 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ When Anthropic released Claude Code, they only supported VS Code and JetBrains.
"<leader>as",
"<cmd>ClaudeCodeTreeAdd<cr>",
desc = "Add file",
ft = { "NvimTree", "neo-tree", "oil" },
ft = { "NvimTree", "neo-tree", "oil", "minifiles" },
},
-- Diff management
{ "<leader>aa", "<cmd>ClaudeCodeDiffAccept<cr>", desc = "Accept diff" },
Expand Down Expand Up @@ -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 `<leader>as` to send it to Claude
- In `nvim-tree`/`neo-tree`/`oil.nvim`, press `<leader>as` on a file to add it to Claude's context
- In `nvim-tree`/`neo-tree`/`oil.nvim`/`mini.nvim`, press `<leader>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
Expand Down
2 changes: 1 addition & 1 deletion dev-config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ return {
"<leader>as",
"<cmd>ClaudeCodeTreeAdd<cr>",
desc = "Add file from tree",
ft = { "NvimTree", "neo-tree", "oil" },
ft = { "NvimTree", "neo-tree", "oil", "minifiles" },
},

-- Development helpers
Expand Down
1 change: 1 addition & 0 deletions lua/claudecode/diff.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
4 changes: 2 additions & 2 deletions lua/claudecode/integrations.lua
Original file line number Diff line number Diff line change
@@ -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 = {}

Expand Down
1 change: 1 addition & 0 deletions lua/claudecode/tools/open_file.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down