Skip to content

Add setting openInEditor#19

Open
Dimfred wants to merge 1 commit intoChaitanya-Shahare:mainfrom
Dimfred:main
Open

Add setting openInEditor#19
Dimfred wants to merge 1 commit intoChaitanya-Shahare:mainfrom
Dimfred:main

Conversation

@Dimfred
Copy link

@Dimfred Dimfred commented Feb 15, 2025

Hey hey,
I just wanted to write that plugin, and then saw yours, does almost what I want, except for begin in the dropdown term.
I added the config :)
Cheers

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds a new configuration option lazygit.openInEditor that allows users to control whether Lazygit opens in the editor area or remains in the terminal panel. This addresses a user preference where some users may prefer to have Lazygit remain in the dropdown terminal panel rather than being moved to the editor area.

Key changes:

  • Added a new boolean configuration setting lazygit.openInEditor with a default value of true to maintain backward compatibility
  • Implemented conditional logic to skip moving the terminal to the editor area when the setting is false
  • Version bumped to 1.0.7

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/extension.ts Added configuration check for openInEditor setting; conditionally executes terminal-to-editor movement logic based on user preference
package.json Added lazygit.openInEditor configuration property with boolean type and description
package-lock.json Version bumped from 1.0.6 to 1.0.7

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

}

export function deactivate() {}
export function deactivate() { }
Copy link

Copilot AI Dec 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The spacing inside the curly braces has been changed from the original style. The original code used export function deactivate() {} without spaces, but this change adds a space as export function deactivate() { }. This is inconsistent with the codebase style where empty function bodies use no spaces.

Suggested change
export function deactivate() { }
export function deactivate() {}

Copilot uses AI. Check for mistakes.
"lazygit.openInEditor": {
"type": "boolean",
"default": true,
"description": "Whether to open Lazygit in the editor or in the terminal"
Copy link

Copilot AI Dec 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description could be more clear about what happens when this setting is disabled. Consider updating it to explicitly state that when set to false, Lazygit will remain in the terminal panel instead of being moved to the editor area. For example: "Whether to open Lazygit in the editor area. When false, Lazygit remains in the terminal panel."

Suggested change
"description": "Whether to open Lazygit in the editor or in the terminal"
"description": "Whether to open Lazygit in the editor area. When false, Lazygit remains in the terminal panel."

Copilot uses AI. Check for mistakes.
@Dimfred
Copy link
Author

Dimfred commented Jan 29, 2026

ping

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.

2 participants