Skip to content

Add instant command execution with modifier keys#279

Draft
Copilot wants to merge 7 commits intomainfrom
copilot/add-instant-command-feature
Draft

Add instant command execution with modifier keys#279
Copilot wants to merge 7 commits intomainfrom
copilot/add-instant-command-feature

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 8, 2026

Instant Command Feature Implementation

インスタントコマンド機能の実装が完了し、mainブランチの最新版(v0.17.0)をマージしました!✅

Implementation Checklist

  • 1. Type Definitions - Update types/index.ts

    • Add InstantCommandSettings type with enabled, commandId, modifierKey fields
    • Update UserSettings to include instantCommand field
    • Merged with WindowOption and latest types from main
  • 2. Default Settings - Update services/option/defaultSettings.ts

    • Add default instantCommand settings (disabled by default)
    • Merged with windowOption defaults and latest settings from main
  • 3. Schema Validation - Update types/schema.ts

    • Add Zod schema for instantCommand validation
    • Update formSchema in SettingForm.tsx
    • Merged with all imports from main
  • 4. Detection Hook - Create hooks/useDetectInstantCommand.ts

    • Implement hook to detect modifier key + text selection
    • Auto-execute selected command when conditions are met
    • Follow pattern from useDetectLinkCommand.ts
    • Use selectionText from useSelectContext (PR feedback)
    • Remove unused positionElm parameter
  • 5. Integration - Update App.tsx

    • Integrate instant command detection hook
    • Ensure it runs before menu popup
    • Merged with latest App.tsx changes
  • 6. Options UI - Update components/option/SettingForm.tsx

    • Add "Instant Command" section with Zap icon
    • Add SwitchField to enable/disable feature
    • Add SelectField to choose command from commands list
    • Add SelectField to choose modifier key (Shift, Ctrl, Alt)
    • Merged with all latest UI changes from main
  • 7. Internationalization - Update locale files

    • Add translations in all 14 locale files (ja, en, de, es, fr, hi, id, it, ko, ms, pt_BR, pt_PT, ru, zh_CN)
    • Key ordering maintained to match English locale
    • Merged with latest translations from main
  • 8. Build Verification

    • Successfully built extension after merge
  • 9. Testing

    • All 793 tests pass
    • Extension builds successfully
    • Locale ordering test passes
  • 10. Code Review

    • Initial code review completed
    • All issues addressed
    • PR feedback addressed
  • 11. Merge from Main (v0.17.0)

    • Merged 715 commits total from main branch (298 + 417 commits)
    • Resolved 68 merge conflicts total (16 + 52 conflicts)
    • All tests pass after merge
    • Version updated to 0.17.0

Summary

インスタントコマンド機能が正常に実装され、mainブランチの最新変更(v0.17.0)がマージされました。

Latest Merge Details (April 2026):

  • ✅ mainブランチから417コミットを追加マージ(合計715コミット)
  • ✅ 52ファイルのコンフリクトを解消(合計68ファイル)
    • 12個のロケールファイル
    • 15個の"both added"ファイル(E2Eテスト等)
    • 25個のTypeScript/設定ファイル
  • ✅ 新機能の統合:
    • E2Eテストインフラストラクチャ(Playwright)
    • AI Promptサービスの改善
    • 新しいアイコンシステム(Lucide)
    • サイドパネル機能の拡張
  • ✅ Instant Command機能を完全に保持
  • ✅ 全793テストが合格
  • ✅ ビルド成功
  • ✅ バージョン 0.17.0 にアップデート
Original prompt

This section details on the original issue you should resolve

<issue_title>即時起動コマンド Instant command</issue_title>
<issue_description>テキスト選択が確定したら、即時起動するコマンド

  • 作成済みのコマンドから、好きなものを選択可能
  • モディファイアキーが押された状態で起動、の選択肢
  • 未選択でも起動は可能
  • デフォルトでは無効
  • 最後に起動したコマンドを起動するコマンド
    • 履歴メニューから選択するコマンド</issue_description>

Comments on the Issue (you are @copilot in this section)

@ujiro99 # 設計書

概要

メニューからのコマンド選択を経ずに、同じコマンドを繰り返し実行する機能を提供する。

想定ユースケース

  • ページ上のテキストを連続してコピーする
  • ページ上のテキストを連続して翻訳する
  • ページ上のテキストのスタイルを連続して見る

機能要件

  • Instant commandとして、既存のコマンドの中から一つを選択する
  • モディファイアキーが押された状態でテキスト選択をすると、自動でInstant commandを発動する
  • デフォルトではInstant commandは無効</comment_new>

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 3 commits February 8, 2026 02:18
Co-authored-by: ujiro99 <677231+ujiro99@users.noreply.github.com>
Co-authored-by: ujiro99 <677231+ujiro99@users.noreply.github.com>
Co-authored-by: ujiro99 <677231+ujiro99@users.noreply.github.com>
Copilot AI changed the title [WIP] Add instant command functionality for text selection Add instant command execution with modifier keys Feb 8, 2026
Copilot AI requested a review from ujiro99 February 8, 2026 02:34
Co-authored-by: ujiro99 <677231+ujiro99@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Feb 24, 2026

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • www.google-analytics.com
    • Triggering command: /opt/hostedtoolcache/node/24.13.0/x64/bin/node /opt/hostedtoolcache/node/24.13.0/x64/bin/node --conditions node --conditions development /home/REDACTED/work/selection-command/selection-command/node_modules/tinypool/dist/entry/process.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI requested a review from ujiro99 February 24, 2026 20:29
@ujiro99
Copy link
Copy Markdown
Owner

ujiro99 commented Mar 13, 2026

@copilot
コンフリクト解消しつつ、mainブランチの最新を取り込んでください。

Co-authored-by: ujiro99 <677231+ujiro99@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Mar 13, 2026

@copilot
コンフリクト解消しつつ、mainブランチの最新を取り込んでください。

mainブランチから298コミットをマージし、全てのコンフリクトを解消しました。

コミット: 27eba43

解消した内容:

  • 16ファイルのコンフリクト解消(12個のロケールファイル + 4個のTypeScriptファイル)
  • WindowOption型とinstantCommand型を統合
  • ロケールファイルのキー順序を修正
  • 全715テスト合格
  • ビルド成功

@ujiro99
Copy link
Copy Markdown
Owner

ujiro99 commented Apr 2, 2026

@copilot
コンフリクト解消しつつ、mainブランチの最新を取り込んでください。

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 2, 2026

@copilot
コンフリクト解消しつつ、mainブランチの最新を取り込んでください。

mainブランチから417コミットをマージし、全てのコンフリクトを解消しました。

コミット: 9dbdc0f

解消した内容:

  • 52ファイルのコンフリクト解消
  • バージョン 0.17.0 にアップデート
  • 新機能の統合(E2Eテスト、AI Prompt改善、Lucideアイコン等)
  • 全793テスト合格
  • ビルド成功
  • Instant Command機能を完全に保持

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.

即時起動コマンド Instant command

2 participants