Skip to content

feat: implement integrated OS terminal for Godot Editor#1

Open
gumaciel wants to merge 1 commit intomasterfrom
feat/integrated-os-terminal-12593246739520679294
Open

feat: implement integrated OS terminal for Godot Editor#1
gumaciel wants to merge 1 commit intomasterfrom
feat/integrated-os-terminal-12593246739520679294

Conversation

@gumaciel
Copy link
Contributor

This pull request implements an integrated OS terminal inside the Godot Editor, similar to VSCode's terminal. It creates an editor-only plugin that can be toggled via `Ctrl + ``.

Features:

  • MVC Architecture (ShellModel, ShellController, TerminalView).
  • Uses Thread to run OS commands without blocking or freezing the Godot editor.
  • Intercepts the cd command to persistently update the terminal's working directory.
  • Provides command history navigation (Up/Down arrow keys).

PR created automatically by Jules for task 12593246739520679294 started by @gumaciel

- Created `project.godot` to initialize the project space.
- Implemented `addons/dotshell/plugin.cfg` and `plugin.gd` to load the plugin into the Godot bottom panel and toggle it via `Ctrl + \``.
- Designed MVC architecture:
  - `ShellModel`: Manages state, working directory and command history.
  - `ShellController`: Executes OS commands in a background thread and handles `cd` internally to update the persistent state.
  - `TerminalView`: Provides the UI with a `RichTextLabel` for output and `LineEdit` for command input.
- Kept the plugin editor-only by utilizing `Engine.is_editor_hint()`.
@google-labs-jules
Copy link

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

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