aboutsummaryrefslogtreecommitdiff
path: root/xtask
diff options
context:
space:
mode:
authorMichael Davis2023-07-10 21:30:42 +0000
committerBlaž Hrastnik2023-07-31 06:05:38 +0000
commit5eb1a25d8a0aeb202358b5b5a3b44bb5f43eced6 (patch)
treea29b19b4473c30458578ff9cf80a64bc6941528a /xtask
parent57952c46a4f3bf75d0b9940c2c42399980416523 (diff)
Refactor Registers to take Editor
This sets up a new Registers type that will allow us to expand support for special registers. (See the child commits.) We start simple with the regular (`Vec<String>`) registers and the simplest special register, the black hole. In the child commits we will expand these match arms with more special registers. The upcoming special registers will need a few things that aren't possible with the current Registers type in helix-core: * Access to the `Editor`. This is only necessary when reading from registers, so the `&Editor` parameter is only added to `Registers::read`. * Returning owned values. Registers in helix-core returns references to the values backed by the `Vec<String>` but future special registers will need to return owned values. We refactor the return value of the read operations to give `Cow<str>`s and iterators over those. * Returning a `Result` for write/push functions. This will be used by the clipboard special registers.
Diffstat (limited to 'xtask')
0 files changed, 0 insertions, 0 deletions