cessen / ropey

A utf8 text rope for manipulating and editing large texts.
MIT License
1.04k stars 46 forks source link

Add `line + column <-> char` indexes conversion helpers #84

Closed gavrilikhin-d closed 1 year ago

gavrilikhin-d commented 1 year ago

This is useful when implementing extension for vscode, because it uses line+column indexes instead of chars

cessen commented 1 year ago

Thanks for the PR and the effort you put into this!

However, these functions have been intentionally left out of Ropey because they're pretty trivial to implement in client code with the APIs that Ropey already provides.