diff --git a/README.org b/README.org index ed2fa58..42ada96 100644 --- a/README.org +++ b/README.org @@ -86,6 +86,10 @@ from the beginning, so again the bigger current batch size, the quicker. With negative argument, lines are counted from the end of file. +** Reload + +*C-c C-v g* discards modifications (if such) and reloads chunk. + ** Edit and save If editing doesn't change size of the chunk, only this chunk is saved. diff --git a/vlf.el b/vlf.el index f6cf4ed..4d37846 100644 --- a/vlf.el +++ b/vlf.el @@ -77,7 +77,7 @@ (define-key map "]" 'vlf-end-of-file) (define-key map "j" 'vlf-jump-to-chunk) (define-key map "l" 'vlf-goto-line) - (define-key map "q" 'vlf-discard-edit) + (define-key map "g" 'vlf-refresh) (define-key map-prefix "\C-c\C-v" map) map-prefix) "Keymap for `vlf-mode'.") @@ -854,7 +854,7 @@ in file: %s" total-matches line regexp file) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; editing -(defun vlf-discard-edit () +(defun vlf-refresh () "Discard edit and refresh chunk from file." (interactive) (set-buffer-modified-p nil)