Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Searching large pdf files reports only matched or not, not matched texts. #1005

Open
TooChaos opened this issue Oct 8, 2022 · 2 comments
Open

Comments

@TooChaos
Copy link

TooChaos commented Oct 8, 2022

Hi Chen Bin,

It looks like the default incremental search behaviour is, for large file, using 'grep' instead of emacs' native search function. However, 'grep' treats the pdf file as a binary file by default, hence reports only matched or not.
Can we, e.g., pass "--text" flag to "grep" when the file is pdf. Or simply fall back to emacs' native search function?
Thanks!

@redguardtoo
Copy link
Owner

which command you use in Emacs?

@TooChaos
Copy link
Author

TooChaos commented Oct 10, 2022

C-s runs the command counsel-grep-or-swiper (found in global-map),
which is an autoloaded interactive compiled Lisp function in
‘counsel.el’.
It is bound to C-s.
(counsel-grep-or-swiper &optional INITIAL-INPUT)

By the way I am using pdftools mode.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants