crop icon indicating copy to clipboard operation
crop copied to clipboard

🌾 A pretty fast text rope

Results 9 crop issues
Sort by recently updated
recently updated
newest added

Hello sir, Good job on `crop`! I was considering using it in my toy editor, however I found out looking around in the API that some things I like in...

For use-cases like [`logos::Source`](https://docs.rs/logos/latest/logos/source/trait.Source.html), efficient access to raw bytes can be important. Would you be OK with adding a method like [`ropey::RopeSlice::chunk_at_byte`](https://docs.rs/ropey/latest/ropey/struct.RopeSlice.html#method.chunk_at_byte)? Not a feature request, just want to know...

Hello, Following up on #6 (long time no see 😄), here is `Rope::is_instance()`. Documentation taken from [ropey's](https://github.com/cessen/ropey/blob/f1292371cab9e83bba6cf2ea5c6b7347baada4eb/src/rope.rs#L1178), test taken from [ropey's](https://github.com/cessen/ropey/blob/f1292371cab9e83bba6cf2ea5c6b7347baada4eb/src/rope.rs#L3438). What do you think about that? Thanks

Related: https://github.com/nomad/crop/issues/20 This makes the concept of "lines" and line counts align with what we would expect when displaying text in a text editor, e.g. the empty string is 1...

Hi! This crate is amazing, thank you for your work on it. I'm curious what the motivation is for having the empty line after a trailing newline not be counted...

Hi, this isn't an issue but more of an ask for some pointers on how to make finding regex matches in a `crop::Rope` work. I checked out the regex crate...

enhancement

Hello, Unless I'm mistaken, crop doesn't require edition 2024. Is it possible to modify Cargo.toml with this line for a future version? edition = "2021"

The zed editor has a custom rope implementation: https://github.com/zed-industries/zed/tree/main/crates/rope Would be cool to see a comparison of the performance! I don't think it has a builder API, but the rest...