Comments (3)
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.
from bidi.nvim.
I think I will also use this functionality to correct lines/text that are bidi'd incorrectly.
from bidi.nvim.
Added in 8fc5741
from bidi.nvim.
Related Issues (13)
- Add descriptions to user commands HOT 1
- Handle lines that changed in `insert mode` HOT 1
- `RL` mode uses `rightleft` HOT 1
- `Bidi-Mode` replaces `\` characters at EOL with `\n` HOT 1
- `U+FEFF` BOM displayed when run through FriBidi
- Add "How It Works" section to README
- Add logging at INFO and DEV level
- Add option to reverse <Del> and <BS> when in `revins` HOT 1
- Use buffer-local autocommands HOT 1
- Creating a Vimscript version for Vim
- Dynamic padding in `ML` and `MR` modes HOT 1
- Add `checkhealth` functionality HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bidi.nvim.