jackMort / jackMort/ChatGPT.nvim

[feature request]: Add some events for autocmd to the plugin

Open
#189 1 comment 1 reaction 0 assignees View on GitHub
enhancement help wanted
Dominant language
Lua
Stars
4k
Forks
317
PR merge metrics
No merged PRs in 30d

Description

Hello everyone.

How about adding some events for autocmd to the events (open, close, etc.) of this plugin? This will allow users to have more versatile settings. For example, the following GIF is my use case.

![for_chatgpt](https://github.com/jackMort/ChatGPT.nvim/assets/100141359/26bf7a98-3261-4325-ad4b-9cfd9560d994)

In this example, I'm using the popup feature of tmux and using neovim as an interface for ChatGPT. I'm using an event to close neovim when ChatGPT finishes. This way, I can easily access ChatGPT even during non-coding work (in my case, server maintenance). Of course, some users might come up with even better ways to use it.

This time, I added events only to the part where the chat window closes, but there may be other useful events as well. I would like to hear everyone's opinions on this matter.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by examining the plugin's chat-window close handling and any existing event or autocmd behavior. Clarify which lifecycle events should be exposed, then define the event names and expected behavior before verifying that users can trigger actions such as closing Neovim when the chat window closes.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.