durexforth icon indicating copy to clipboard operation
durexforth copied to clipboard

[FR] Show 'position/size' in the editor statusbar

Open raydeejay opened this issue 5 years ago • 8 comments

Submitted for your consideration, 126 additional bytes in the dictionary adding a display bottom right in the editor, showing the current cursor position and the total length of the file (minus the prg header, I guess).

Alternatives:

  • x/100% (size)
  • line, column (not that useful without the size)
  • `line/lines, column
  • also display the number of blocks it takes on disk
  • the best of all of the above
  • not including it at all

All these will cost more bytes, of course. I measured the size by comparing here with and without the addition. How can I tell how many bytes are left free, other than watching the cart build fail? xD

here $801 - perhaps, or do I have to account for some more bytes?

raydeejay avatar Feb 27 '20 00:02 raydeejay

I think the cart build failing is the easiest way to detect a too-large dictionary.

That said, I've mentioned before that the V editor will no longer fit on the cart with more than a few changes. Maybe the editor should be a stripped down version for the cart with a full-featured editor on the disk?

burnsauce avatar Feb 27 '20 20:02 burnsauce

Is the editor stored as text on the cart? Compression could be used to fit more in

Kroc avatar Feb 27 '20 21:02 Kroc

@Kroc no, the editor is compiled into the dictionary of the cart.

burnsauce avatar Feb 27 '20 21:02 burnsauce

I like this, maybe especially the options "line/lines" or "100%".

At this moment though, it seems we are tight on space, so maybe this should wait until more space is freed up?

jkotlinski avatar Feb 29 '20 08:02 jkotlinski

Fine with me! :grin:

raydeejay avatar Feb 29 '20 14:02 raydeejay

More space is freed up :)

burnsauce avatar Oct 31 '20 15:10 burnsauce

I'm tied up in other things and not really working on durexforth now :-/

raydeejay avatar Nov 01 '20 15:11 raydeejay

Soo... finally I got the time and peace of mind to try this out now. I'm happy to see it works as expected, even if some time passed.

I find that byte position + file size is not that helpful. Would it be possible to switch to line and column, just like default Vim ruler? Are you interested in working on this further, by the way?

jkotlinski avatar Aug 28 '22 19:08 jkotlinski