minus icon indicating copy to clipboard operation
minus copied to clipboard

Screen API

Open AMythicDev opened this issue 2 years ago • 0 comments

Currently Minus doesn't have any concept of lines. It only cares about the entire data being formatted according to the available number of columns (line number and highlighted search matches if applicable) and the original text data to minus.. Although it is quite simple for anyone to understand, but its not the most elegant and optimized solution. For example we cannot do some of these effectively:-

  • Format only a selected number of lines
  • Get better quantitative analysis of the incoming text
  • Easily make each line accessible to the end-application

This might be the first stepping stone to fix issues like #106 and other problems. Hence with screens API we introduce a new type Screen which not only brings in lots of performance improvements to the table but also gets a much more ergonomic API for applications to interact with the text data stored inside minus.

This is very much a work in progress so much cannot be described about it but I will keep this updated as the feature furthur evolves

AMythicDev avatar Nov 10 '23 17:11 AMythicDev