Skip to content

フォルダ毎にメニューの表示スタイルを設定可能にする#347

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/enable-menu-display-style-per-folder
Draft

フォルダ毎にメニューの表示スタイルを設定可能にする#347
Copilot wants to merge 2 commits intomainfrom
copilot/enable-menu-display-style-per-folder

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 25, 2026

全体設定のメニュースタイル(横向き/縦向き)をフォルダ単位で上書きできるようにする。横並びメニューでも特定フォルダ(AIプロンプト等)だけ縦向きにすることが可能になる。

変更内容

  • FOLDER_STYLE 列挙型を追加 (const.ts)

    export enum FOLDER_STYLE {
      INHERIT = "inherit",   // デフォルト: 全体設定を継承
      HORIZONTAL = "horizontal",
      VERTICAL = "vertical",
    }
  • CommandFolder 型に style?: FOLDER_STYLE を追加 (types/index.ts, types/schema.ts)

  • FolderEditDialog にスタイル選択フィールドを追加 — 継承 / 横向き / 縦向き の3択

  • Menu.tsxMenuFolder でスタイル解決ロジックを追加

    • トリガーボタンは親メニューのスタイルに従う(isHorizontal
    • フォルダコンテンツ(サブメニュー)は folder.style で上書き可能(isHorizontalContent
    • INHERIT の場合は親スタイルをそのまま伝播
  • 14言語のロケールファイルに Option_folder_style / Option_folder_style_desc キーを追加

Original prompt

This section details on the original issue you should resolve

<issue_title>フォルダ毎にメニューの表示スタイルを設定可能にする #94</issue_title>
<issue_description>## 要件
フォルダ毎の設定として、フォルダ内のメニューを表示する際の表示スタイルを設定可能にする

  • 横向き・・・メニューを横向きに表示する
  • 縦向き・・・メニューを縦向きに表示する
  • 継承・・・全体の設定(UserSettings.style)を継承する(※デフォルト)

期待効果

  • AIプロンプトコマンドで、メニューを横向きにしてアイコンだけの表示にした場合、Tooltipでしか内容が判別できず、選択しづらい
  • メニューを横向きにした場合でも、特定フォルダでは縦向きにすることで、AIプロンプトコマンドを選びやすくする

参考

// packages/extension/src/const.ts
export enum STYLE {
  HORIZONTAL = "horizontal",
  VERTICAL = "vertical",
}
```</issue_description>

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

<comments>
</comments>

📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.

Copilot AI changed the title [WIP] Add ability to set menu display style per folder フォルダ毎にメニューの表示スタイルを設定可能にする Mar 25, 2026
Copilot AI requested a review from ujiro99 March 25, 2026 03:58
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.

フォルダ毎にメニューの表示スタイルを設定可能にする #94

2 participants