Skip to content

Commit

Permalink
feat(docs): add pdfgrep
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Feb 22, 2024
1 parent 445ba4b commit 12872d2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/me-external-tools.el
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@
(:tool grep
:link "https://www.gnu.org/software/grep/manual/grep.html"
:desc "Prints lines that contain a match for one or more patterns")
(:tool pdfgrep
:link "https://gitlab.com/pdfgrep/pdfgrep"
:desc "A tool to search text in PDF files. It works similarly to grep")
(:tool (find findutils)
:link "https://www.gnu.org/software/findutils"
:desc "Search for files in a directory hierarchy")
Expand Down
8 changes: 8 additions & 0 deletions modules/me-docs.el
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@
(use-file-base-name-flag nil)
(pdf-view-restore-filename (concat minemacs-local-dir "pdf-view-restore.el")))

(use-package pdfgrep
:straight t
:when (executable-find "pdfgrep")
:custom
(pdfgrep-options " -H -n -r --include \"*.pdf\" ")
:config
(grep-mode 1))

(use-package nov
:straight t
:mode ("\\.[eE][pP][uU][bB]\\'" . nov-mode)
Expand Down

0 comments on commit 12872d2

Please sign in to comment.