[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] scratch/add-vdiff 12f4a21 042/258: Add quit command
From: |
Justin Burkett |
Subject: |
[elpa] scratch/add-vdiff 12f4a21 042/258: Add quit command |
Date: |
Wed, 17 May 2017 08:13:19 -0400 (EDT) |
branch: scratch/add-vdiff
commit 12f4a21dfcf608869043200ae6f3e638cfa6f25c
Author: justbur <address@hidden>
Commit: justbur <address@hidden>
Add quit command
---
README.org | 11 ++++++-----
vdiff.el | 2 ++
2 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/README.org b/README.org
index ee33184..6b67c68 100644
--- a/README.org
+++ b/README.org
@@ -46,16 +46,17 @@ declaration the key bindings in vdiff buffers are
| Key | Command | Description
|
|---------+---------------------------------+----------------------------------------------------|
+| =C-c g= | =vdiff-goto-corresponding-line= | Jump to the corresponding line
in the other buffer |
| =C-c n= | =vdiff-next-change= | Move to next change in buffer
|
| =C-c p= | =vdiff-previous-change= | Move to previous change in
buffer |
-| =C-c g= | =vdiff-goto-corresponding-line= | Jump to the corresponding line
in the other buffer |
-| =C-c s= | =vdiff-send-changes= | Send this hunk (or all in
region) to other buffer |
| =C-c r= | =vdiff-receive-changes= | Receive the corresponding hunk
from other buffer |
-| =C-c w= | =vdiff-save-buffers= | Save both buffers
|
-| =C-c o= | =vdiff-open-fold= | Open fold at point or in region
|
-| =C-c O= | =vdiff-open-all-folds= | Open all folds in buffer
|
+| =C-c s= | =vdiff-send-changes= | Send this hunk (or all in
region) to other buffer |
| =C-c c= | =vdiff-close-fold= | Close fold at point or in region
|
| =C-c C= | =vdiff-close-all-folds= | Close all folds in buffer
|
+| =C-c o= | =vdiff-open-fold= | Open fold at point or in region
|
+| =C-c O= | =vdiff-open-all-folds= | Open all folds in buffer
|
+| =C-c w= | =vdiff-save-buffers= | Save both buffers
|
+| =C-c q= | =vdiff-quit= | Quit vdiff
|
| =C-l= | =vdiff-sync-and-center= | Recenter both buffers at current
line |
To start vdiff, use either =vdiff-files= to select two files or =vdiff-buffers=
diff --git a/vdiff.el b/vdiff.el
index 12cc530..421bb98 100644
--- a/vdiff.el
+++ b/vdiff.el
@@ -892,6 +892,7 @@ asked to select two buffers."
(interactive)
(dolist (buf vdiff--buffers)
(vdiff-mode -1)))
+(defalias 'vdiff-quit 'vdiff-exit)
(defvar vdiff-mode-map
(let ((map (make-sparse-keymap)))
@@ -905,6 +906,7 @@ asked to select two buffers."
(define-key map "p" 'vdiff-previous-change)
(define-key map "s" 'vdiff-send-changes)
(define-key map "r" 'vdiff-receive-changes)
+ (define-key map "q" 'vdiff-quit)
(define-key map "w" 'vdiff-save-buffers)
(define-key map "o" 'vdiff-open-fold)
(define-key map "O" 'vdiff-open-all-folds)
- [elpa] scratch/add-vdiff 74feddf 206/258: Adjust width of subtraction string, (continued)
- [elpa] scratch/add-vdiff 74feddf 206/258: Adjust width of subtraction string, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 9d89a66 211/258: Add melpa badge, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff b705857 006/258: Remove window-starts variable, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff aadf726 011/258: Add TODO item, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 23a8f14 013/258: One more TODO, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 3ef30aa 020/258: Update screenshot, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff dec9dc5 026/258: Small README change, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 2c113c4 029/258: Merge pull request #1 from syohex/cl-lib, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 4312bb1 034/258: Make subtraction overlays zero width, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 305e723 024/258: Add count to next/prev change and simplify, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 12f4a21 042/258: Add quit command,
Justin Burkett <=
- [elpa] scratch/add-vdiff 72d8dfc 038/258: Avoid making new folds, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff ad37c86 009/258: Factor out subtraction overlay and prefix internal vars, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 04f5436 001/258: Initial commit, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff f54616f 039/258: Don't close folds if all are open, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff f77f184 062/258: Fix alignment of folds problem caused by recent change, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff f2aaa2e 067/258: Fix goto-corresponding-line, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 9a748df 065/258: Update README, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 9b4e829 069/258: Update requirements for vdiff-hydra, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff d6a399f 076/258: Annouce exit, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 43b9dc6 097/258: Add missing image, Justin Burkett, 2017/05/17