coder / coder/claudecode.nvim

[FEATURE] Allow opening terminal without automatically entering insert mode

オープン
#145 コメント 4 件 リアクション 18 件 担当者 0 名 GitHub で見る
主要言語
Lua
スター
3.1k
フォーク
216
PR マージ指標
30日以内にマージされた PR はありません

説明

## 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" },
},
}
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

まず、ターミナルプロバイダーがフォーカスと挿入モードの動作をどのように処理しているかを追跡し、次に要求された terminal.snacks_win_opts の値を既存の snacks 統合と比較します。設定されたターミナルオプションが尊重される状態で、ターミナルを開いたりフォーカスしたりしてもノーマルモードのままでいられれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
lua, neovim
領域
tooling
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。