coder / coder/claudecode.nvim

[FEATURE] Allow opening terminal without automatically entering insert mode

Đang mở
#145 4 bình luận 18 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Lua
Star
3.1k
Fork
216
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

## Feature Description
I would like an option where when I move my cursor to the terminal, it doesn't automatically enters terminal mode but stays in normal mode

## Use Case

I move around a lot and it always trips me up when my navigation buttons do not work anymor because they are trapped by the terminal in neovim.

## Proposed Solution

I tried passing these options, I have also set for the snacks terminal, where they work as expected.
It would nice if it would respect those options by default if they are configured in snacks terminal or pass them like this.

```lua
---@type LazySpec
return {
"coder/claudecode.nvim",
dependencies = { "folke/snacks.nvim" },
opts = {
terminal = {
provider = "snacks",
snacks_win_opts = {
start_insert = true,
auto_insert = false,
auto_close = true,
},
},
},
keys = {
{ "ac", "ClaudeCode", desc = "Toggle Claude Code" },
{ "as", "ClaudeCodeSend", mode = "v", desc = "Send to Claude Code" },
{ "ast", "ClaudeCodeStatus", desc = "Claude Code Status" },
},
}
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Bắt đầu bằng cách theo dõi cách terminal provider xử lý focus và hành vi của insert-mode, sau đó so sánh các giá trị terminal.snacks_win_opts được yêu cầu với tích hợp snacks hiện có. Công việc được xem là hoàn tất khi việc mở hoặc focus terminal có thể vẫn ở normal mode đồng thời tôn trọng các tùy chọn terminal đã cấu hình.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
lua, neovim
Lĩnh vực
tooling
Loại issue
Tính năng
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.