[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/doc-toc a0018b8a63 71/84: Add replace fields in toc-tab
From: |
ELPA Syncer |
Subject: |
[elpa] externals/doc-toc a0018b8a63 71/84: Add replace fields in toc-tabular-mode feature |
Date: |
Mon, 26 Sep 2022 13:58:39 -0400 (EDT) |
branch: externals/doc-toc
commit a0018b8a63ca1e53f001c3fa908b6297dc5af3e8
Author: Daniel Nicolai <dalanicolai@gmail.com>
Commit: Daniel Nicolai <dalanicolai@gmail.com>
Add replace fields in toc-tabular-mode feature
---
toc-mode.el | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/toc-mode.el b/toc-mode.el
index eae96dc5fa..bf799e44c1 100644
--- a/toc-mode.el
+++ b/toc-mode.el
@@ -702,6 +702,18 @@ Prompt for startpage and endpage and print OCR output to
new buffer."
t)
(forward-line 1))))
+(defun toc--replace-input ()
+ (interactive)
+ (let* ((column (cond ((< (current-column) 5)
+ 0)
+ ((and (> (current-column) 5) (< (current-column) 90))
+ 1)
+ ((> (current-column) 90)
+ 2)))
+ (old-input (aref (tabulated-list-get-entry) column))
+ (new-input (read-string "Replace column input with: " old-input)))
+ (tabulated-list-set-col column new-input t)))
+
(defun toc--tablist-follow ()
"Preview pagenumber of current line in separate document buffer."
(interactive)
@@ -777,6 +789,7 @@ Prompt for startpage and endpage and print OCR output to
new buffer."
(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 "\C-r" #'toc--replace-input)
(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)
@@ -794,7 +807,7 @@ Prompt for startpage and endpage and print OCR output to
new buffer."
tabulated-list-mode "TOC-tabular"
"Major mode for Table Of Contents.
\\{toc-tabular-mode-map}"
- (setq-local tabulated-list-format [("level" 10 nil) ("name" 80 nil) ("page"
1 nil)])
+ (setq-local tabulated-list-format [("level" 5 nil) ("name" 84 nil) ("page" 4
nil)])
(tabulated-list-init-header))
(defun toc--list (buffer)
- [elpa] externals/doc-toc c39306dad7 41/84: Fix docstrings with checkdoc (for MELPA), (continued)
- [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
- [elpa] externals/doc-toc a11b2caa88 51/84: Add paypal donate link, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 7e50cc20d0 53/84: Implement extract-only, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 10b254ef2c 58/84: Fix auto pagenumber contents OCR, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 8c2cb1283d 60/84: Add info about pdf.tocgen alternative, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc dc5be6442f 66/84: Add jump-by-level to toc-tabular-mode, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 06de33f511 70/84: Fix pdf-view-current-page macro not function, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc a0018b8a63 71/84: Add replace fields in toc-tabular-mode feature,
ELPA Syncer <=
- [elpa] externals/doc-toc f2ea7db226 68/84: Fix all checkdoc warnings, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 487177a81b 73/84: Update package description, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 36fe728f38 72/84: Make tesseract psm code configurable via universal arg, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc d5629c7165 75/84: Update djvu ocr to djvu3.el (create ppm instead of svg), ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc a259f4cc65 77/84: Correct docstring position, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 0671d11654 78/84: Merge pull request #8 from syohex/docstring, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc cf6b12ca35 79/84: Fix #10: prevent pdf-filename become nil, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc b4bb748aa3 84/84: Fix README (remove repeated section), ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 0c9a7a484f 09/84: Update README with link to djvulibre website, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 559e7bbf3d 13/84: Implement extract with tesseract ocr, ELPA Syncer, 2022/09/26