Repository navigation
Onigiri Editor v1.3.6
Onigiri Editor v1.3.6 brings Apple Foundation Models (Apple Intelligence) on-device AI support for macOS, Long-Press / Right-Click Submenus for Toolbar AI Custom Buttons, All-Mode Status Bar Mode Switching when the header bar is hidden, a major Keyboard Shortcuts Expansion (112 built-in commands + dynamic AI Custom & submenu shortcuts), Responsive Header & Toolbar Layout with Instant Custom Tooltips, and Optimized Default Prompts for AI Translate.
Highlights (v1.3.6)
- Responsive Header & Format Toolbar Polish (Anti-Wrapping & Measurement-Based Progressive Collapse):
- Button labels never wrap vertically onto multiple lines (
white-space: nowrap; flex-shrink: 0). - Progressively collapses labels based on real-time DOM measurements and hysteresis: TopBar relaxes center-balance to borrow left margin, then collapses Theme and Language labels (to 28×28px icon buttons), layout switch labels, and version badge; FormatToolbar collapses "Copy Rich Text" label first, then "AI Clean" (to 26×26px icon buttons).
- Automatically hides redundant New / Open / Save file buttons in the Format Toolbar when the top header bar is already visible (saving ~90px of space).
- Added gradient edge fade masks, smooth
</>scroll buttons, and horizontal mouse wheel scrolling support when the toolbar overflows in narrow windows.
- Button labels never wrap vertically onto multiple lines (
- Instant Custom Tooltips (
0.15sQuick Hover & Shortcut Badges):- Replaced delayed native tooltips on header and toolbar controls with a lightweight, theme-aware Portal tooltip layer displaying within 0.15s, featuring
<kbd>shortcut badges and zero edge clipping.
- Replaced delayed native tooltips on header and toolbar controls with a lightweight, theme-aware Portal tooltip layer displaying within 0.15s, featuring
- Optimized Default Prompt for "AI Translate" Preset:
- Upgraded the built-in AI Translate preset prompt with structured
# 命令(automatic English ↔ Japanese language detection) and# 制約事項(strict prohibition of conversational filler and preservation of original markdown formatting).
- Upgraded the built-in AI Translate preset prompt with structured
- macOS Only: Apple Foundation Models (Apple Intelligence) On-Device AI Provider:
- Select Apple Foundation Models under Local AI in AI Chat (visible on macOS only) to run Apple's on-device Foundation Models completely offline and free with zero external API keys or servers (requires Apple Silicon Mac running macOS 26+ with Apple Intelligence enabled; weak-linked so older macOS versions still launch safely).
- Supports both Apple Intelligence (Default) and Apple Intelligence (Content Transformations / Permissive) modes for smoother translation, proofreading, and rewriting across AI Chat, Inline AI Edit, and Toolbar AI Custom buttons.
- Features live streaming progress, request cancellation, automatic context-limit safety trimming (~4,096 tokens), and availability diagnostics with a 1-click Open System Settings button in Connection Support.
- Toolbar AI Custom Buttons: Long-Press / Right-Click Submenus (Up to 10 Items per Button):
- Normal click runs the primary AI button action as before; long-press (~0.4s) or right-click smoothly slides open a downward popover menu when submenus are enabled (indicated by a subtle bottom-right triangle indicator).
- Configure submenus in Settings → AI Custom (off by default): enable the submenu checkbox to automatically scaffold the first item, and add, reorder, edit, or delete up to 10 submenu items per button—each with its own 24-icon picker, name, AI prompt, and independent Copy to clipboard / Replace document (or selection) checkboxes.
- Status Bar One-Step Mode Switcher Across All Modes (When Header Bar Is Hidden):
- Whenever the top header bar is hidden, the Status Bar now shows a compact, clickable mode-transition button in every mode:
- Simple Mode:
Simple → Basic - Basic Mode:
Basic → Advanced - Advanced Mode:
Advanced → Basic
- Simple Mode:
- Whenever the top header bar is hidden, the Status Bar now shows a compact, clickable mode-transition button in every mode:
- Massive Keyboard Shortcuts Expansion (112 Commands + AI Custom & Submenu Shortcuts):
- Added dedicated direct mode shortcuts (Simple:
⌘⌥1/Ctrl+Alt+1, Basic:⌘⌥2/Ctrl+Alt+2, Advanced:⌘⌥3/Ctrl+Alt+3) and expanded Settings → Keybindings from 27 to 112 customizable commands across Mode, File, View/Layout, Edit, Format, AI, Markdown, Note, Data, Browser, Workspace, Git, Macro, Export, Theme, and Settings—now with category filter chips. - AI Custom Button & Submenu Shortcuts: Assign custom keyboard shortcuts to every registered AI Custom button and every enabled submenu item directly from either Settings → Keybindings or inline inside Settings → AI Custom (synchronized with conflict detection, reflected in toolbar tooltips, submenu badges, Command Palette, and JSON settings backups).
- macOS
⌥(Option) Shortcut Reliability: NormalizedAlt/Option-modified key events via physical key codes (e.code) so shortcuts such as⌘⌥1or⌘⌥Trecord and trigger reliably on macOS.
- Added dedicated direct mode shortcuts (Simple:
Downloads
- macOS (Universal: Apple Silicon & Intel, includes Apple Foundation Models support on macOS 26+):
.dmg/.app.tar.gz - Windows (x64):
.exe(NSIS installer) /.msi - Linux (x64):
.AppImage/.deb
Onigiri Editor v1.3.6 では、Mac 版限定のオンデバイス AI Apple Foundation Models(Apple Intelligence)対応、ツールバー AIカスタムボタンの 長押し/右クリックによるサブメニュー展開、上部ヘッダーバー非表示時の 全モード対応ステータスバー・モード移動ボタン、全 112 コマンド+AIカスタム(親ボタン&サブメニュー)対応のキーボードショートカット大幅拡充、ヘッダー&書式ツールバーのレスポンシブ刷新・即時カスタムツールチップ、および 「AI翻訳」デフォルトプロンプトの最適化 を実装しました。
主な変更点(v1.3.6)
- ヘッダー&書式ツールバーのレスポンシブ刷新(改行防止・実測ベース段階的折りたたみ・重複ボタン整理):
- ウィンドウ幅が狭くなってもボタン内のラベル文字が改行されないよう
white-space: nowrapとflex-shrink: 0を徹底しました。 - 実測ベース(ResizeObserver)とチラつき防止ヒステリシスによる段階的なアイコン化を導入:書式ツールバーは「リッチテキストでコピー」→「AI出力を整形」の順で段階的に 26×26px のアイコンボタンへ移行し、ヘッダーバーは中央寄せを自動融通した上で「テーマ」「言語」→「レイアウト切替」→「バージョンバッジ」を順次コンパクト化します。
- 上部ヘッダーバーが表示されている時は書式ツールバー側の重複していたファイル操作ボタン(新規・開く・保存)を自動非表示にして約 90px の横幅を節約し、上部バー非表示時のみツールバー側に表示します。
- アイコン化しても入りきらない狭い幅では、左右にグラデーションのフェード影とスクロール矢印ボタン(
</>)を表示し、マウスホイールでの横スクロールにも対応しました。
- ウィンドウ幅が狭くなってもボタン内のラベル文字が改行されないよう
- 即座に出るカスタムツールチップ(0.15秒・ショートカットバッジ付き):
- ヘッダー・ツールバーのオンマウス表示を、待ち時間がなく(0.15 秒)テーマ色に馴染んだカスタムツールチップに刷新。ショートカットキーを
<kbd>バッジで並べ、React Portal 描画で見切れを防止しました。
- ヘッダー・ツールバーのオンマウス表示を、待ち時間がなく(0.15 秒)テーマ色に馴染んだカスタムツールチップに刷新。ショートカットキーを
- 「AI翻訳」初期プリセットプロンプトの最適化:
- デフォルトの AI 翻訳プロンプトを構造化された命令(
# 命令、英語⇔日本語の自動判定ルール)と制約事項(# 制約事項、前置き・解説の禁止、原文の改行構造維持)に刷新し、出力精度を高めました。
- デフォルトの AI 翻訳プロンプトを構造化された命令(
- Mac 版限定: Apple Foundation Models(Apple Intelligence)プロバイダー対応:
- macOS 版のみ AI チャットの「ローカル AI」一覧に Apple Foundation Models を追加。API キーや外部サーバー不要・完全オフラインかつ無料でオンデバイス推論を利用できます(Apple Silicon 搭載 Mac・macOS 26 以降・Apple Intelligence 有効環境で動作。フレームワークは弱リンクのため旧 macOS でも問題なく起動します)。
- Apple Intelligence(標準) と翻訳・校正・リライト向けの Apple Intelligence(文章変換向け) の 2 モードを選択可能。AI チャット・選択範囲インライン編集・ツールバー AIカスタムボタンのすべてで利用でき、ストリーミング進捗表示・キャンセル・接続サポートからの「システム設定を開く」ボタンを備えています。
- AIカスタムボタンの長押し/右クリック&サブメニュー機能(1 ボタンあたり最大 10 件):
- 通常クリックで親ボタンを実行し、サブメニューが有効なボタンでは 長押し(約 0.4 秒)または右クリック で下方向アニメーション付きポップオーバーが開き、登録済みサブメニュー項目を実行できます(サブメニュー付きボタンには右下に小さな三角マークを表示)。
- 設定 → AIカスタム の各ボタンカードに「サブメニューを有効にする」チェックボックス(初期値 OFF)を追加。ON にすると自動で 1 件目が用意され、最大 10 件までアイコン(24 種類)・ボタン名・プロンプト・返事の取り扱い(
クリップボードに入れる/本文を置き換える)を個別に設定できます。
- 上部ヘッダーバー非表示時のステータスバー・モード移動ボタン(全モード対応):
- 上部ヘッダーバーを非表示にしている際、どのモードでも下部ステータスバーからワンクリックで 1 ステップ先のモードへ移動できるようになりました:
- シンプルモード時:
シンプル → 標準 - 標準モード時:
標準 → 拡張 - 拡張モード時:
拡張 → 標準
- シンプルモード時:
- 上部ヘッダーバーを非表示にしている際、どのモードでも下部ステータスバーからワンクリックで 1 ステップ先のモードへ移動できるようになりました:
- キーボードショートカット大幅拡充(112 コマンド+AIカスタム&サブメニュー対応):
- 各モードへのダイレクト切替ショートカット(シンプル:
⌘⌥1/Ctrl+Alt+1、標準:⌘⌥2/Ctrl+Alt+2、拡張:⌘⌥3/Ctrl+Alt+3)を新設し、ファイル・表示/レイアウト・編集・書式・AI・Markdown・ノート・データ整形・ブラウザ・Git・マクロ・書き出し・テーマまで 計 112 コマンド を割り当て可能にしました(設定 → キーボード にカテゴリ絞り込みチップを追加)。 - AIカスタム(親ボタン&サブメニュー)へのショートカット割り当て: 登録した各 AIカスタムボタンおよび有効なサブメニュー項目ごとにショートカットを設定可能。「設定 → キーボード」と「設定 → AIカスタム」の各カード内のどちらからでも編集・解除・重複チェックでき、ツールバーのツールチップ・サブメニュー右端バッジ・コマンドパレット・JSON バックアップに自動反映されます。
- macOS
⌥(Option) キー併用の精度改善: macOS で⌥併用時に特殊文字へ変化するキー入力を物理キーコードで正規化し、⌘⌥1や⌘⌥Tなどが確実に録音・発火するよう改善しました。
- 各モードへのダイレクト切替ショートカット(シンプル:
ダウンロード(バイナリ一覧)
- macOS(Universal: Apple Silicon / Intel 両対応・macOS 26+ Apple Foundation Models 対応):
.dmg/.app.tar.gz - Windows(x64):
.exe(インストーラ) /.msi - Linux(x64):
.AppImage/.deb