cursor-rtl-chat-fix
Fixes RTL text rendering issues in Cursor AI Chat. | حل مشکل نمایش متون فارسی و راستچین در Cursor
Install / Use
npx skills add mrezadalaee/cursor-rtl-chat-fixInstalls into whichever agent you are using.
.cursorrules
Cursor IDE rules (legacy)
Quality Score
Category
Development & EngineeringSupported Platforms
Tags
Skill content
View source on GitHubRTL Support Snippets for AI Coding Tools 🚀
A collection of JavaScript snippets to fix Right-to-Left (RTL) text rendering issues (Persian, Arabic) in various AI coding tools.
Currently, many AI tools do not fully support RTL directionality in their chat interfaces, causing mixed English/RTL sentences to scramble. These snippets force the correct direction without breaking code blocks.
Available Scripts
| Script | Target | Method |
|--------|--------|--------|
| rtl.js | Cursor Editor | CSS injection |
| opencode-rtl.js | Opencode CLI Chat | Smart per-element RTL detection |
| claude-rtl.js | Claude Desktop | CSS injection |
| antigravity-rtl.js | Antigravity IDE | Smart per-element RTL detection |
✨ Features
- Smart Direction: Sets RTL only for text, keeping code blocks LTR.
- Non-destructive: Does not modify application files permanently.
- Easy to use: No plugins required.
🛠 How to Use
Cursor
- Open the
rtl.jsfile and copy its content. - Open Cursor.
- Press
Ctrl + Shift + P(orCmd + Shift + Pon Mac) →Toggle Developer Tools. - Go to the Console tab, paste the code, and press Enter.
Opencode
- Open the
opencode-rtl.jsfile and copy its content. - Open Opencode in your browser.
- Press
F12orCtrl + Shift + Ito open Developer Tools. - Go to the Console tab, paste the code, and press Enter.
Claude Desktop
- Open the
claude-rtl.jsfile and copy its content. - Open Claude Desktop.
- Press
Ctrl + Shift + I(orCmd + Option + Ion Mac) to open Developer Tools. - Go to the Console tab, paste the code, and press Enter.
Antigravity IDE
- Open the
antigravity-rtl.jsfile and copy its content. - Open Antigravity IDE.
- Press
Ctrl + Shift + P(orCmd + Shift + Pon Mac) →Toggle Developer Tools. - Go to the Console tab, paste the code, and press Enter.
Note: These are temporary fixes injected into the running instance. You will need to re-apply the snippet if you completely restart the application.
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
Related Skills
career-ops
72.4kOpen-source AI job search: scan job portals, evaluate listings into a structured A-H report with a global 1-5 score, tailor your CV, track applications — runs locally in your AI coding CLI (Claude Code, Codex, OpenCode, Antigravity…)
ai-job-search
43.6kThe job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
claude-howto
41.6kA visual, example-driven guide to Claude Code — from basic concepts to advanced agents, with copy-paste templates that bring immediate value.
guizang-ppt-skill
26.7kAI-agent Skill for generating polished HTML slide decks: editorial magazine and Swiss layouts, image prompts, social covers, and a WebGL/low-power presentation runtime.
