[FEATURE] autocmd event to set up keybinds on the buffer
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 38/100
Research direction
Start by reviewing the plugin's existing Claude Code buffer setup and the proposed ugaterm.nvim commit linked in the issue. Identify where the buffer is created or entered, add the requested User autocmd behavior there, and verify that buffer-local terminal and normal-mode keymaps can be registered through the shown callback pattern.
Written by the indexing model from the issue text.
Description
Feature Description
I want an autocmd User event for addding specific keybind on the claude code buffer.
Use Case
I want to toggle claudecode buffer with some keymap when the mode is terminal insert mode.
Proposed Solution
ugaterm.nvim has this feature.
https://github.com/uga-rosa/ugaterm.nvim/commit/c12135abec935e2b78e99d710bbe9c7a690ab36e
With this event, I can add autocmds like this, and can close ugaterm buffer from terminal insert mode with just hitting <Esc><Esc>.
vim.api.nvim_create_autocmd('User',
{
pattern = 'UgatermEnter',
callback =
function(args)
vim.keymap.set('t', '<Esc>', '<C-\\><C-n>', { buffer = args.buf })
vim.keymap.set('n', '<Esc>', '<cmd>UgatermHide<CR>', { buffer = args.buf })
end
})
- Dominant language
- Lua
- Stars
- 3.1k
- Forks
- 219
- PR merge metrics
- No merged PRs in 30d
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from coder/claudecode.nvim
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
coder/claudecode.nvim#321 ·
-
bug needs-triage
Difficulty 1/5 Under an hour Newbie friendliness 88/100
coder/claudecode.nvim#314 ·
-
bug needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
coder/claudecode.nvim#313 ·
-
needs-triage
Difficulty 5/5 Over a week Newbie friendliness 20/100
coder/claudecode.nvim#319 · 2 reactions ·
-
[BUG] 框选文本一直抱错误信息Openbug needs-triage
Difficulty 4/5 3-5 days Newbie friendliness 35/100
coder/claudecode.nvim#316 · 1 comment ·
All issues in coder/claudecode.nvim
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
feature request
Difficulty 1/5 Under an hour Newbie friendliness 86/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
nvim-flutter/flutter-tools.nvim#557 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 95/100
-
Bug Feature Request Forever Module - Townsfolk Needs testing/reproduction
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day