You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Essentially, pipe register contents through fribidi() before inserting the text into the buffer.
Would it make more sense to assign a specific register to this or apply to all registers?
The text was updated successfully, but these errors were encountered:
I think I'll assign this functionality to all registers,
but rather than piping the register contents through fribidi(),
pasting will temporarily disable Bidi-Mode, insert contents, then re-enable Bidi-Mode.
That way padding for ML and MR base directions can be applied.
Unfortunately, there is no autocmd event for pasting,
so I think I will make a custom function and command that pastes from a specified register.
The user command (BidiPaste, which will only run when Bidi-Mode is enabled) should take the register name as input.
Perhaps the function (paste()) can detect the next keypress/letter (with option to ) to determine the register to paste from.
The user command can then simulate this keypress from the input.
Essentially, pipe register contents through
fribidi()
before inserting the text into the buffer.Would it make more sense to assign a specific register to this or apply to all registers?
The text was updated successfully, but these errors were encountered: