m00natic / vlfi

View Large Files in Emacs
458 stars 25 forks source link

How can know the real line number I'm in of the whole file? #26

Closed c02y closed 9 years ago

c02y commented 9 years ago

VLF will split a large file into small batches, the number line in the mode line is only the line number in this batch, the size in mode line is only the batch size of the file.

  1. How can I get the real line number I'm in, not the batch buffer but the whole file?
  2. How can I know the real size of, not the batch buffer but the whole file??

I mean how can I see them instantly? If you can show them in mode line, that would be better.

m00natic commented 9 years ago

1) There is ticket for this already #10

It's not that trivial because determination of real line number in the general case requires counting lines from the very beginning of file. This can be slow so should be done in background. It will be part of the next effort trying to add parallelism and asynchronous processing.

2) This is now present in the mode line (d1a6800) along with information on which batch out of how many overall is currently viewed. This info was previously appended to the buffer name but its place was not there indeed.