diff options
author | Michael Davis | 2023-07-10 21:43:16 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2023-07-31 06:05:38 +0000 |
commit | da2afe7353066743e30592f03a7a55f24df4dd5c (patch) | |
tree | ad8bd23402b1e9675e8eb4dd3a0fdf591883c8ba /docs | |
parent | 5eb1a25d8a0aeb202358b5b5a3b44bb5f43eced6 (diff) |
Add '#' and '.' special registers
These come from Kakoune:
* '#' is the selection index register. It's read-only and produces the
selection index numbers, 1-indexed.
* '.' is the selection contents register. It is also read-only and
mirrors the contents of the current selections when read.
We switch the iterators returned from Selection's `fragments` and
`slices` methods to ExactSizeIterators because:
* The selection contents register can simply return the fragments
iterator.
* ExactSizeIterator is already implemented for iterators over Vecs, so
it's essentially free.
* The `len` method can be useful on its own.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions