vim.async "structured concurrency" has landed โฉ in Nvim 0.13!
https://t.co/KUxOXKTRst
Try it if you ever want to chain several callbacks together, or wait for multiple processes to finish. Optional handling of errors, cancellation, and more.
Thanks to lewis6991 ๐ซก
users are already extending Nvim 0.13 multicursor ๐ฆ
(cursors are queryable as an extmarks namespace)
here's a script by celeste3z to get "align" functionality (similar to tabular, vim-lion):
https://t.co/nyW9rloL5o
@tanloong_@justinmk each cursor has its own set of registers, so it should work as you expect.
there is a known issue with <c-r> in insert-mode, is that what you're doing?
โ๏ธ LOOT DROP ๐ก๏ธ
Multicursor is available in @Neovim 0.13 nightly.
https://t.co/jzkVx6Kqug
According to Sublime Text, "any praise about multiple selections is an understatement".
https://t.co/TTZuGQXTlM
@WillEhrendreich yep! it runs fully on the client, and should just work in any web browser.
https://t.co/zSKkzAIIp1
but, see notes at https://t.co/ZSLLPU12mF
@WillEhrendreich scenarios where a cross-platform, sandboxed (or minimal permissions), Nvim executable is useful:
- web browser extension for editing text areas (no RPC)
- vscode plugin (no Nvim install)
@qiine_@peter_p_c no. we are talking about an implementation detail.
:restart calls :mksession /path/to/tempfile, performs the restart, then deletes the session file immediately.
with CmdAtom, a lot of "leader key" mappings will just be unnecessary, bc you can compose macros on the fly.
in this demo I type "n" + "zz", then I type "2<space>" to bring up the cmdwin with the last 2 atoms prefilled. I hit Enter to save the macro, then <space> repeats the macro.
at the end of the demo I type "<c-w>v" to split the window, then repeat it with ",,,," to repeat it a bunch of times.
The "atom" concept is now available in Neovim 0.13. All *user actions* emit CmdAtom events.
This is a deep architectural upgrade, which provides the basis for multicursors (essentially "atomic macros"), plus other use cases:
- repeat any "previous action"
- repeat partial actions ("sub-modes")
- repeat "visual operations" semantically
See dev_arch.txt for notes on the design.
https://t.co/uxRx9sSJcx