Giter VIP home page Giter VIP logo

logseq-bidi's People

Contributors

ahangarha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

logseq-bidi's Issues

Apply bidi to the root block by default

In many cases, the content under a block follows the same direction of the root block.

Applying the bidi to the root block has these advantages:

  • Better UX when adding sub-blocks in different direction (in most of the cases)
  • Better performance because of less processing

We can add an option in the setting for applying bidi to the whole tree. Maybe we can call it greedy.

NOW and LATER are considered Strong character (While DONE isn't)

Screenshot 2024-05-07 at 1 09 25

See screenshot for illustration.

  • When using the default labels NOW/LATER, it reverts the block to LTR.
  • When using the label DONE, it stays RTL.

Ideally, the plugin disregards NOW/LATER when it parses them and doesn't count them as the first strong character.

Different behaviour in Mac between RTL and LTR, when using CMD + left/right and OPT + left/right

Hi,

The correct behaviour is when the block is LTR:

  1. CMD + left arrow = Home (move cursor to start of block)
  2. CMD + right arrow = End (move cursor to end of block)
  3. OPT + left arrow = move cursor one word backwards
  4. OPT + right arrow = move cursor one word forwards

However, when the block is in RTL mode, this doesn't work.

Ideally, this will be implemented similarly to the LTR behaviour, but with the arrows switched, i.e.:

  1. CMD + left arrow = End (move cursor to end of block)
  2. CMD + right arrow = Home (move cursor to start of block)
  3. OPT + left arrow = move cursor one word forwards
  4. OPT + right arrow = move cursor one word backwards

@ahangarha, I would be happy to tip money to have this implemented

Appreciation for the logseq-bidi extension

I am writing to express my sincere gratitude for your work on the logseq-bidi extension. As a user who frequently writes in right-to-left languages, this extension has significantly improved my experience with Logseq.
Before discovering your extension, I was struggling with the lack of native right-to-left support in Logseq. Your extension has effectively addressed this issue, making it much easier for me to take notes in my native language.
Your work is greatly appreciated. Please keep up the excellent work!

Fix padding/Margins for RTL texts

Add an optional setting for fixing padding/margin styles for RTL content.

It should be optional so that it doesn't affect custom themes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.