emacs-evil / emacs-evil/evil

Enhancement request: Proper RTL movement

Open
#892 17 comments 1 reaction 0 assignees View on GitHub
enhancement help wanted
Dominant language
Emacs Lisp
Stars
3.9k
Forks
307
PR merge metrics
No merged PRs in 30d

Description

#Issue Type
- Enhancement request

Emacs version: GNU Emacs 25.2.1
Operating System: Arch Linux with the latest updates
Evil version: 1.2.12
Evil installation type: Manual
Graphical/Terminal: Graphical
Tested in a [clean environment](https://github.com/emacs-evil/evil/blob/master/CONTRIBUTING.md#bug-reports): Yes

# Reproduction steps
- Start Emacs
- Type some Arabic (Farsi, Hebrew or Urdu) text so that it appears from the right to the left, for example:

هذا نص عربي للتجربة

- Try moving (using right and left arrow keys, or 'h' and 'l' keys) while in normal mode.

# Expected behavior
The movement keys should move the cursor to the left when pressing the left arrow key, and to the right when pressing the right arrow key, while on a RTL text.

# Actual behavior
The keys move the cursor to opposite of the direction they are supposed to move the cursor in while in a RTL text.

# Further notes
Please note that I have only faced this problem when trying to move by characters, other movements that depend on text objects (i.e. pressing 'e' moves correctly to the end of the word on the left side of the cursor) behave correctly.

I hope that there is a quick workaround that makes evil recognise different language environments and reverse its behaviour accordingly.

Thanks and Best Regards

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.