1
0
mirror of https://github.com/m00natic/vlfi.git synced 2024-10-05 18:30:51 +01:00
This commit is contained in:
Andrey Kotlarski 2014-08-10 18:48:36 +03:00
parent 1f9ba7ce5f
commit ece554a3bd

View File

@ -12,16 +12,16 @@ it offers in a nutshell:
- regular expression search on whole file (in constant memory - regular expression search on whole file (in constant memory
determined by current batch size) determined by current batch size)
- chunk editing (if size has changed, saving is done in constant - chunk editing (save is immediate if size hasn't changed, done in
memory determined by current batch size) constant memory determined by current batch size otherwise)
- [[http://www.emacswiki.org/emacs/OccurMode][Occur]] like indexing - [[http://www.emacswiki.org/emacs/OccurMode][Occur]] like indexing
- options to jump to beginning, end or arbitrary file chunk - options to jump to beginning, end or arbitrary file chunk
- ability to jump/insert given number of batches at once - ability to jump/insert given number of batches at once
- newly added content is acknowledged if file has changed size - newly added content is acknowledged if file has changed size
meanwhile meanwhile
- automatic scrolling of batches - automatic scrolling of batches
- as a minor mode, font locking and functionality of the respective - as it's a minor mode, font locking and functionality of the
major mode is also present respective major mode is also present
- by batch [[http://www.emacswiki.org/emacs/EdiffMode][Ediff]] comparison - by batch [[http://www.emacswiki.org/emacs/EdiffMode][Ediff]] comparison
- can be added as option to automatically open large files - can be added as option to automatically open large files
- smooth integration with [[http://www.emacswiki.org/emacs/HexlMode][hexl-mode]] - smooth integration with [[http://www.emacswiki.org/emacs/HexlMode][hexl-mode]]
@ -105,8 +105,8 @@ of 2.
** Move around ** Move around
Scrolling automatically triggers moving to previous or next chunk at Scrolling automatically triggers move to previous or next chunk at the
the beginning or end respectively of the current one. beginning or end respectively of the current one.
*C-c C-v n* and *C-c C-v p* move batch by batch. With positive *C-c C-v n* and *C-c C-v p* move batch by batch. With positive
prefix argument they move prefix number of batches. With negative - prefix argument they move prefix number of batches. With negative -
@ -136,17 +136,17 @@ beforehand.
** Occur over whole file ** Occur over whole file
*C-c C-v o* builds index for given regular expression just like M-x *C-c C-v o* builds index for given regular expression just like
occur*. It does so batch by batch over the whole file. Note that *M-x occur*. It does so batch by batch over the whole file. Note
even if you prematurely stop it with *C-g*, it will still show index that even if you prematurely stop it with *C-g*, it will still show
of what's found so far. index of what's found so far.
** Jump to line ** Jump to line
*C-c C-v l* jumps to given line in file. This is done by searching *C-c C-v l* jumps to given line in file. This is done by searching
from the beginning, so again the bigger current batch size, the from the beginning, so again the bigger current batch size, probably
quicker. With negative argument, lines are counted from the end of the quicker. With negative argument, lines are counted from the end
file. of file.
** Edit and save ** Edit and save
@ -174,6 +174,6 @@ A couple of hooks are run whenever updating chunk:
Some operations may trigger multiple chunk moves. There are a couple Some operations may trigger multiple chunk moves. There are a couple
of hooks that run in such cases: *vlf-before-batch-functions* and of hooks that run in such cases: *vlf-before-batch-functions* and
*vlf-after-batch-functions*. They are passed one argument that *vlf-after-batch-functions*. They are passed one argument which
specifies type of operation that runs. Possible values are the specifies type of operation that runs. Possible values are the
symbols: *write*, *ediff*, *occur*, *search* and *goto-line*. symbols: *write*, *ediff*, *occur*, *search* and *goto-line*.