RightFlow**Universal BiDi and RTL Engine for AI Coding IDEs and Agents** *High-performance right-to-left alignment for Antigravity IDE, Cursor, GitHub Copilot, Windsurf, Plans, and Monaco Editor.*Supported IDEs and AI AgentsRightFlow is engineered as a Universal RTL Suite across modern AI code editors:
OverviewWhen working with Arabic, Hebrew, or Persian in AI-assisted development environments, standard LTR interfaces frequently break: punctuation flips to the opposite side, mixed code phrases scramble sentence flow, and AI planning documents become tedious to read. RightFlow is a lightweight, non-destructive BiDi (Bidirectional) engine built specifically for Antigravity IDE. It introduces seamless paragraph-level RTL detection across agent conversations, prompt inputs, planning artifacts ( Comparison: Why RightFlow?
Key Features1. Smart Agent Chat and Thought Trace BiDi
2. Live Prompt Input Alignment
3. Native Support for Plan Artifacts (
|
| Command | Windows / Linux | macOS | Description |
|---|---|---|---|
| Toggle Editor RTL | Ctrl + Alt + R (or Alt + R) |
Cmd + Alt + R (or Option + R) |
Toggles text direction for the active file |
| Open Control Center | Ctrl + Alt + Shift + R |
Cmd + Alt + Shift + R |
Opens quick access diagnostics and settings menu |
Note: The editor shortcut works seamlessly on both English (
KeyR) and Arabic keyboard layouts (ق).
Quick Start
- Install: Ensure the extension is enabled in your Antigravity IDE extensions list.
- Reload: Press
Ctrl+Shift+P(orF1), runDeveloper: Reload Window. - Usage:
- Chat and Plans: RTL applies automatically to Arabic text.
- Code Editor: Click the RTL icon in the editor toolbar (top right) or press
Ctrl + Alt + Rwhenever you wish to view/edit a file in RTL mode.
Extension Settings
Customize RightFlow via settings.json:
{
"rightflow.autoDetect": true,
"rightflow.supportPromptInput": true,
"rightflow.enhanceFonts": true,
"rightflow.lineHeightRatio": 1.75,
"rightflow.editorRtlMode": false
}
| Setting | Type | Default | Description |
|---|---|---|---|
rightflow.autoDetect |
boolean |
true |
Automatically detect Arabic paragraphs in Chat and Plans. |
rightflow.supportPromptInput |
boolean |
true |
Align chat input textarea based on the typed language. |
rightflow.enhanceFonts |
boolean |
true |
Apply high-readability Arabic typography stack. |
rightflow.lineHeightRatio |
number |
1.75 |
Proportional line-height to avoid diacritic clipping. |
rightflow.editorRtlMode |
boolean |
false |
Manual toggle state for editor RTL mode. |
دليل الاستخدام السريع (باللغة العربية)
صُممت إضافة RightFlow خصيصاً للمطورين الناطقين باللغة العربية داخل Antigravity IDE، لتوفر تجربة قراءة وكتابة طبيعية بدون التأثير على بنية الأكواد أو سرعة المحرر:
أهم المميزات:
- شات الذكاء الاصطناعي: تفعيل تلقائي لاتجاه اليمين للفقرات العربية مع الحفاظ التام على عزل الأكواد الإنجليزية وعلامات الترقيم.
- حقل الإدخال الذكي: يتجه حقل كتابة البرومبت لليمين فور كتابة أول حرف عربي، ويعود لليسار عند الكتابة بالإنجليزية.
- ملفات الخطط (
*.plan.md) والماركداون: دعم متكامل لخطط العمل ولوحات المهام وقوائم الاختيار (- [ ]). - محرر الأكواد (Monaco Editor):
- تحكم يدوي نقي: لا يتم تفعيل RTL تلقائياً على الملفات البرمجية حتى لا يسبب ارتباكاً أثناء كتابة الكود.
- التفعيل الفوري: يمكنك تحويل المحرر لوضع RTL بضغطة زر واحدة من الشريط العلوي أو باختصار
Ctrl + Alt + R(يدعم لوحة المفاتيح العربية والإنجليزية). - سلاسة التمرير (60fps): تم التخلص نهائياً من أي وميض أو تداخل للأسطر أثناء الصعود والنزول في الملفات الطويلة.
Troubleshooting and FAQ
لماذا لا يتم تفعيل اتجاه RTL تلقائياً داخل محرر الأكواد؟
ملفات الكود البرمجي (مثل JavaScript و Python و C++) تتطلب اتجاهاً يسارياً صارماً (LTR) حتى لو احتوت على تعليقات أو نصوص عربية. لذلك تم ضبط المحرر ليعمل يدوياً فقط عند رغبة المطور (مثل كتابة ملفات التوثيق أو ترجمة النصوص)، عبر زر شريط الأدوات أو الاختصار Ctrl+Alt+R.
هل تعدل الإضافة على ملفات المشروع الأصلية؟
كلا، الإضافة تعدل فقط طريقة عرض النصوص داخل واجهة المستخدم (Rendering Layer) ولا تغير محتوى ملفاتك أو تنسيقها البرمجي على القرص.
كيف أعيد تشغيل الإضافة بعد تحديث المحرر؟
اضغط Ctrl + Alt + Shift + R لفتح قائمة التحكم، ثم اختر Activate RTL Suite، وأعد تشغيل النافذة (Developer: Reload Window).
Author and Credits
- Developer: Islam Fathy (@isl2m)
- Publisher ID:
isl2m - License: MIT License