cornelis icon indicating copy to clipboard operation
cornelis copied to clipboard

Correctly pass ranges to Agda when operating over IPs

Open isovector opened this issue 3 years ago • 3 comments

The Agda interface needs a lot of love here:

  1. [x] Mangle Ranges into the right representation for over the wire
  2. [ ] Attach buffer offsets to the ranges. I think we can get these via:
function! FileOffset()
    return line2byte(line('.')) + col('.') - 1
endfunction
  1. [x] More correctly track IPs. These currently have an interval attached to them, but a better way would be to track them in extmarks.

isovector avatar Nov 22 '22 18:11 isovector

To do the extmarks stuff, we'll need a map from interaction points to their extmarks. And then check whether nvim_buf_get_extmark_by_id with the details option correctly gives back the ending of its extmark after editing.

isovector avatar Nov 22 '22 18:11 isovector

This might now be fixed by @Lysxia's new patch.

isovector avatar Jan 26 '23 17:01 isovector

Right, the "attach buffer offsets" task seems to be subsumed by the new ability to convert between the two kinds of offsets at will.

Lysxia avatar Jan 26 '23 18:01 Lysxia