[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vlf 6476c1b 227/310: Update README, wording, add links
From: |
Stefan Monnier |
Subject: |
[elpa] externals/vlf 6476c1b 227/310: Update README, wording, add links and information on hooks. |
Date: |
Sat, 28 Nov 2020 00:33:21 -0500 (EST) |
branch: externals/vlf
commit 6476c1be6a2392c14ea1eebcff7f3456f5b423bf
Author: Andrey Kotlarski <m00naticus@gmail.com>
Commit: Andrey Kotlarski <m00naticus@gmail.com>
Update README, wording, add links and information on hooks.
---
README.org | 68 +++++++++++++++++++++++++++++++++++++++-----------------------
1 file changed, 43 insertions(+), 25 deletions(-)
diff --git a/README.org b/README.org
index 356fa79..6d294e6 100644
--- a/README.org
+++ b/README.org
@@ -3,26 +3,29 @@
Emacs minor mode that allows viewing, editing, searching and comparing
large files in batches. Batch size can be adjusted on the fly and
bounds the memory that is to be used for operations on the file. This
-way multiple large files can be instantly and simultaneously accessed
-without swapping and degraded performance.
+way multiple large files (like terabytes or whatever) can be instantly
+and simultaneously accessed without swapping and degraded
+performance.
-This is development version of the GNU ELPA
[[http://elpa.gnu.org/packages/vlf][vlf.el]] package. Here's
-what it does in a nutshell:
+This is development version of the GNU ELPA
[[http://elpa.gnu.org/packages/vlf][VLF]] package. Here's what
+it offers in a nutshell:
- regular expression search on whole file (in constant memory
determined by current batch size)
- chunk editing (if size has changed, saving is done in constant
memory determined by current batch size)
-- occur like indexing
+- [[http://www.emacswiki.org/emacs/OccurMode][Occur]] like indexing
- options to jump to beginning, end or arbitrary file chunk
- ability to jump/insert given number of batches at once
- newly added content is acknowledged if file has changed size
meanwhile
- automatic scrolling of batches
-- as VLF is minor mode, font locking and functionality of the
- respective major mode is also present
-- by batch Ediff comparison
-- VLF is added as an option when opening large files
+- as a minor mode, font locking and functionality of the respective
+ major mode is also present
+- by batch [[http://www.emacswiki.org/emacs/EdiffMode][Ediff]] comparison
+- can be added as option to automatically open large files
+- smooth integration with
[[http://www.emacswiki.org/emacs/HexlMode][hexl-mode]]
+- works with [[http://www.emacswiki.org/emacs/TrampMode][TRAMP]] so accessing
network files is fine
GNU Emacs 23 and 24 are supported.
@@ -34,12 +37,12 @@ M-x vlf PATH-TO-FILE
Emacs' Unicode support is leveraged so you'll not see bare bytes but
characters decoded as if file is normally opened. This holds for
-editing, search and indexing.
+editing, search, indexing and comparison.
** 32-bit GNU Emacs
Regular Emacs integers are used, so if you use 32-bit Emacs without
-bignum support, VLF will not work with files over 512 MB (maximum
+bignum support, *VLF* will not work with files over 512 MB (maximum
integer value).
** Memory control
@@ -56,12 +59,12 @@ To have *vlf* offered as choice when opening large files:
(require 'vlf-integrate)
#+END_EXAMPLE
-You can control when vlf-mode is invoked or offered with the
-*vlf-application* customization option. By default it will offer VLF
-when opening large files. There are also options to never use it (you
-can still call *vlf* command explicitly); to use it without asking for
-large files or to invoke it on all files. Here's example setup such
-that vlf-mode automatically launches for large files:
+You can control when *vlf-mode* is invoked or offered with the
+*vlf-application* customization option. By default it will offer
+*VLF* when opening large files. There are also options to never use
+it (you can still call *vlf* command explicitly); to use it without
+asking for large files or to invoke it on all files. Here's example
+setup such that *vlf-mode* automatically launches for large files:
#+BEGIN_EXAMPLE
(custom-set-variables
@@ -70,12 +73,12 @@ that vlf-mode automatically launches for large files:
*** Disable for specific mode
-To disable automatic usage of VLF for a major mode, add it to
+To disable automatic usage of *VLF* for a major mode, add it to
*vlf-forbidden-modes-list*.
*** Disable for specific function
-To disable automatic usage of VLF for a function, for example named
+To disable automatic usage of *VLF* for a function, for example named
*func* defined in file *file.el*:
#+BEGIN_EXAMPLE
@@ -84,8 +87,8 @@ To disable automatic usage of VLF for a function, for example
named
** Keymap
-All VLF operations are grouped under the *C-c C-v* prefix by default.
-Here's example how to add another prefix (*C-x v*):
+All *VLF* operations are grouped under the *C-c C-v* prefix by
+default. Here's example how to add another prefix (*C-x v*):
#+BEGIN_EXAMPLE
(eval-after-load "vlf"
@@ -133,10 +136,10 @@ beforehand.
** Occur over whole file
-*C-c C-v o* builds index for given regular expression just like
-*M-x occur*. It does this batch by batch over the whole file. Note
-that even if you prematurely stop it with *C-g*, it will still show
-index of what's found so far.
+*C-c C-v o* builds index for given regular expression just like M-x
+occur*. It does so batch by batch over the whole file. Note that
+even if you prematurely stop it with *C-g*, it will still show index
+of what's found so far.
** Jump to line
@@ -159,3 +162,18 @@ or taken from the first buffer in case of buffers).
Moving after the
last difference in current chunk searches for following one with
difference. The other way around if looking for difference before the
first one.
+
+* Extending
+
+** Move hooks
+
+A couple of hooks are run whenever updating chunk:
+*vlf-before-chunk-update* and *vlf-after-chunk-update*.
+
+** Batch move hooks
+
+Some operations may trigger multiple chunk moves. There are a couple
+of hooks that run in such cases: *vlf-before-batch-functions* and
+*vlf-after-batch-functions*. They are passed one argument that
+specifies type of operation that runs. Possible values are the
+symbols: *write*, *ediff*, *occur*, *search* and *goto-line*.
- [elpa] externals/vlf 88dba8b 195/310: Remove unnecessary addition to load-path on compile., (continued)
- [elpa] externals/vlf 88dba8b 195/310: Remove unnecessary addition to load-path on compile., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf dd43af5 192/310: Manually decode and use several bytes buffer when loading chunk., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 98ddc3a 198/310: Add by batch Ediff functionality., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 9646b00 202/310: Adjust chunk borders to minimize shift differences and optimize, Stefan Monnier, 2020/11/28
- [elpa] externals/vlf d5d9cd7 205/310: Improve refining of differences and readjustment., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 0fa8e8d 210/310: Update buffer name on user interruption during ediff., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 30d2bb0 208/310: VLF buffer ediff now starts from the current chunks., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf f83a212 213/310: Temporarily disable font-lock during multiple batch operations., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 074f9e9 221/310: Play nicely with hexl-mode., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 8c61b77 222/310: Fix when batch hooks are run for occur and save., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 6476c1b 227/310: Update README, wording, add links and information on hooks.,
Stefan Monnier <=
- [elpa] externals/vlf 8ba5bea 229/310: Don't run vlf-after-batch-functions hook in vlf-build-occur., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 569e4b2 237/310: Don't ask needles questions on changing helm batch and restore undo, Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 1f9ba7c 230/310: Use derived-mode-p., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 32ff2cb 239/310: Add bookkeeping module., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 5379943 242/310: Save times instead of speeds, compare on cumulative speed when tuning., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 0d9cc8e 245/310: Don't measure encoding of too small region when adjusting chunk start, Stefan Monnier, 2020/11/28
- [elpa] externals/vlf e8bb4a9 248/310: Apply batch size tuning on adjacent moves, search, save adjusting and, Stefan Monnier, 2020/11/28
- [elpa] externals/vlf d526ea8 257/310: Apply and restore batch size in more cases., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 9b6657b 260/310: Replace usage of conservative tune in single batch operations with load, Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 2c660b0 269/310: Fix positive goto-line search and make highlighting of match optional., Stefan Monnier, 2020/11/28