[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/doc-toc e6e20d2d65 20/84: Implement shift all remaining
From: |
ELPA Syncer |
Subject: |
[elpa] externals/doc-toc e6e20d2d65 20/84: Implement shift all remaining numbers and follow/preview |
Date: |
Mon, 26 Sep 2022 13:58:35 -0400 (EDT) |
branch: externals/doc-toc
commit e6e20d2d65c6a65cd930bf6b2f2e80b22a63ebf4
Author: Daniel Nicolai <dalanicolai@gmail.com>
Commit: Daniel Nicolai <dalanicolai@gmail.com>
Implement shift all remaining numbers and follow/preview
---
README.org | 8 +++++---
toc-mode.el | 12 ++++++++++++
2 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/README.org b/README.org
index 0d17d4ba6e..437c314577 100644
--- a/README.org
+++ b/README.org
@@ -87,11 +87,13 @@ buffer can be navigated with the arrow =up/down= keys. The
=left= and =right= ar
keys will shift =down/up= all the page numbers from the current line and below
(combine with =SHIFT= for setting individual pagenumbers).
-The =TAB= key jumps to the pagenumber of the current line. =S-up/S-donw= in the
-tablist window will scroll page up/down in the document window while, only for
pdf, =C-up/C-down=
+The =TAB= key jumps to the pagenumber of the current line, while
=C-right/C-left=
+will shift all remaining page numbers up/down while jumping/scrolling to the
+line its page in the document window. to the =S-up/S-donw= in the tablist
window
+will just scroll page up/down in the document window and, only for pdf,
=C-up/C-down=
will scroll smoothly in that window.
-For type =C-c C-c= when done.
+Type =C-c C-c= when done.
** 4. TOC-mode (add outline to document)
The text of this buffer should have the right structure for adding the contents
diff --git a/toc-mode.el b/toc-mode.el
index a1201ab731..0455bd38c1 100644
--- a/toc-mode.el
+++ b/toc-mode.el
@@ -307,6 +307,16 @@ Use with the universal argument (C-u) omits cleanup to get
the unprocessed text.
((string= ".djvu" ext) (djvu-goto-page page)))
(other-window 1)))
+(defun toc-increase-remaining-and-follow ()
+ (interactive)
+ (toc-increase-remaining)
+ (toc-tablist-follow))
+
+(defun toc-decrease-remaining-and-follow ()
+ (interactive)
+ (toc-decrease-remaining)
+ (toc-tablist-follow))
+
(defun toc-scroll-other-window-page-up ()
(interactive)
(other-window 1)
@@ -341,6 +351,8 @@ Use with the universal argument (C-u) omits cleanup to get
the unprocessed text.
(define-key map [left] 'toc-decrease-remaining)
(define-key map [S-right] 'toc-increase)
(define-key map [S-left] 'toc-decrease)
+ (define-key map [C-right] 'toc-increase-remaining-and-follow)
+ (define-key map [C-left] 'toc-decrease-remaining-and-follow)
(define-key map [tab] 'toc-tablist-follow)
(define-key map [S-down] 'toc-scroll-other-window-page-up)
(define-key map [S-up] 'toc-scroll-other-window-page-down)
- [elpa] externals/doc-toc 81f58d0871 35/84: Fix double-dash function names, (continued)
- [elpa] externals/doc-toc 81f58d0871 35/84: Fix double-dash function names, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 36b7f88d6a 39/84: Declare more functions (for MELPA), ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 7208f4a987 40/84: Add featurep checks for publish on MELPA, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 3c7efe78d2 61/84: Implement pdf.tocgen functionality, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc c86a72abda 12/84: Implement replace original or ad toc to copy of pdf, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 0d5ef18820 01/84: Initial commit, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 22174d1a0f 10/84: Update README, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc d0cbefb88b 15/84: Update (OCR) requirements with tesseract, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 4ecb3825b9 16/84: Update README, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 5314cd0b2a 17/84: Update README, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc e6e20d2d65 20/84: Implement shift all remaining numbers and follow/preview,
ELPA Syncer <=
- [elpa] externals/doc-toc a341a6eddc 21/84: Add autoload magic comments and file-header, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 4c49867186 27/84: Fix TOC-tabular mode name and add page-scroll keybinding, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 31611d6e9f 30/84: Update LICENSE, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 8f14a2928e 31/84: Prepare package for publishing on MELPA, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc a510f530cb 33/84: Merge branch 'master' of github.com:dalanicolai/toc-mode, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 6eafd64b9e 38/84: Add # to tell compiler about function reference (for MELPA), ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc c39306dad7 41/84: Fix docstrings with checkdoc (for MELPA), ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc e52b2d8ee3 44/84: Improve some (add-to-document) docstrings, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 7a436b0ca3 46/84: Remove info about limited level deepness for djvu, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 1602e353b0 49/84: Improve parsing djvu outline (prin1-to-string), ELPA Syncer, 2022/09/26