[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/calibre 9a54c7a6b4 09/76: Add function to add books fro
From: |
ELPA Syncer |
Subject: |
[elpa] externals/calibre 9a54c7a6b4 09/76: Add function to add books from dired |
Date: |
Thu, 18 May 2023 09:57:41 -0400 (EDT) |
branch: externals/calibre
commit 9a54c7a6b4db61c884fd1f654ca8ffdee2aba1b1
Author: Kjartan Óli Ágústsson <kjartanoli@disroot.org>
Commit: Kjartan Óli Ágústsson <kjartanoli@disroot.org>
Add function to add books from dired
* calibre-library.el (calibre-dired-add): Created
---
calibre-library.el | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/calibre-library.el b/calibre-library.el
index 9b057e2d34..4fbd2ab38a 100644
--- a/calibre-library.el
+++ b/calibre-library.el
@@ -43,6 +43,13 @@
"Add FILES to the Calibre library."
(calibre-library--execute `("add" ,@(mapcar #'expand-file-name files))))
+;;;###autoload
+(defun calibre-dired-add ()
+ "Add marked files to the Calibre library."
+ (interactive)
+ (if (derived-mode-p 'dired-mode)
+ (calibre-library-add-books (dired-get-marked-files))))
+
(defun calibre-remove-books (books)
"Remove BOOKS from the Calibre library."
(let ((ids (mapcar #'int-to-string (mapcar #'calibre-book-id books))))
- [elpa] externals/calibre 1c0bf191d5 35/76: Refresh Library buffer when calibre-library-columns is changed, (continued)
- [elpa] externals/calibre 1c0bf191d5 35/76: Refresh Library buffer when calibre-library-columns is changed, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre c644d0761d 40/76: Slight improvement to README, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre be94be6962 46/76: Add ability to filter by series and format, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 89e52d61c0 50/76: Only allow single publisher per book, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre c6a5772da0 29/76: Fix docstring, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 7396636341 30/76: Only refresh Library buffer if it exists, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 6d7ed97ab6 31/76: Use the value of calibre-calibredb-executable, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 4a0d5b9606 32/76: Factor the setting of the Library header into a function, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 85e3ac6337 48/76: Add missing space in completing-read prompt, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 6366966c9b 60/76: Add abstraction layer on top of calibre-db, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 9a54c7a6b4 09/76: Add function to add books from dired,
ELPA Syncer <=
- [elpa] externals/calibre 533c68f55f 27/76: Do right alignment correctly, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 3e6ce3abc2 39/76: Bump package version, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 569c096746 45/76: Use macros to avoid repeating similar function definitions, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 04c484a2ef 55/76: Preserve marks when refreshing library, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre d51ac1d3e6 54/76: Don't use message to format string, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 30ec9ca2da 56/76: Use queuing to avoid multiple concurrent calls to calibredb, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 48fc9eb57b 61/76: Don't create buffer for processes, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 4069bbfd10 71/76: Bump package version, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 3e9b74bfd4 65/76: Use constants instead of magic literals for marks, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre e283a2c928 76/76: Use correct separator when setting multiple authors, ELPA Syncer, 2023/05/18