Skip to content

refactor: improve terminal toggle logic #23

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

blink-so[bot]
Copy link
Contributor

@blink-so blink-so bot commented Jun 8, 2025

This pull request refactors the terminal toggle logic to be more intelligent. The M.toggle function in lua/claudecode/terminal.lua now handles the native terminal case more intelligently. It will check if the terminal is already open and visible, and then either hide it or focus it.

@blink-so blink-so bot changed the title fix: toggle terminal instead of closing refactor: improve terminal toggle logic Jun 8, 2025
@ThomasK33
Copy link
Member

@blink-so there's still something wrong with the fix. When I run :ClaudeCode it still opens a new buffer, even though the old one is hidden.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant