sourcegraph / cody

Type less, code more: Cody is an AI code assistant that uses advanced search and codebase context to help you write and fix code.
https://cody.dev
Apache License 2.0
2.74k stars 298 forks source link

Add Support for Right-to-Left (RTL) Text for Persian and Arabic Languages #6105

Open salehen1372 opened 2 days ago

salehen1372 commented 2 days ago

Version

1.95.2

Describe the bug

Cody currently does not support right-to-left (RTL) text alignment for languages like Persian or Arabic. When I use Cody to generate text in these languages, the alignment defaults to left-to-right (LTR), making the text hard to read.

Steps to reproduce the issue:

  1. Open VSCode with Cody installed.
  2. Write or generate text in Persian or Arabic.
  3. Notice that the text alignment is left-to-right instead of right-to-left.

Screenshot: (Attach a screenshot showing the issue, if possible.)

Expected behavior

When generating text in right-to-left (RTL) languages like Persian or Arabic, the text should automatically align to the right. This ensures better readability and proper formatting for users working with these languages.

It would be great if Cody could detect the language and apply the appropriate text direction (RTL for Persian/Arabic, LTR for English and others).

Additional context

This issue affects all users who work with RTL languages. Many developers using VSCode for languages like Persian or Arabic could benefit from this feature.

Here are some resources on implementing RTL support in editors:

Attached is a screenshot showing how the text is misaligned currently.

linear[bot] commented 2 days ago

BUGS-705 Add Support for Right-to-Left (RTL) Text for Persian and Arabic Languages