Skip to content

Add external command execution support with environment variables#11

Merged
sile merged 6 commits intomainfrom
external-command
Sep 5, 2025
Merged

Add external command execution support with environment variables#11
sile merged 6 commits intomainfrom
external-command

Conversation

@sile
Copy link
Copy Markdown
Owner

@sile sile commented Sep 5, 2025

No description provided.

@sile sile requested a review from Copilot September 5, 2025 14:28
Copy link
Copy Markdown

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 PR adds external command execution support to the application with environment variables for current cursor context. It introduces a preview system to display command output and simplifies action applicability logic.

  • Add external command execution with preview display for stdout/stderr
  • Provide environment variables (MAMEGREP_FILE, MAMEGREP_LINE, MAMEGREP_GREP_COMMAND) to external commands
  • Remove deprecated FlipCaseSensitive action and simplify context boundary checks

Reviewed Changes

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

File Description
src/app.rs Adds preview field, command execution logic, and environment variable setup
src/action.rs Removes FlipCaseSensitive action and adds ExecuteCommand variant
configs/sile.jsonc New SILE configuration with comprehensive key bindings including external commands

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@sile sile merged commit ff22a35 into main Sep 5, 2025
9 checks passed
@sile sile deleted the external-command branch September 5, 2025 14:31
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