Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A tool to search all pdf front page in a given directory using fzf, a replacement for fast-p

NotificationsYou must be signed in to change notification settings

leoliu0/fzfpdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

A tool to search all pdf front page in a given directory using fzf, a replacement for fast-p (https://github.com/bellecp/fast-p)

Dependencies:

  • fzf
  • pdftotext
  • parallel
  • bash/zsh or other posix compliant shells
  1. copy fzfpdf.sh to your PATH
  2. make it executable: chmod +x fzfpdf.sh
  3. add the following lines in your bashrc / zshrc
fp() {find -name "*.pdf" -type f | parallel fzfpdf.sh {} | fzf --preview 'pdftotext $(cut -d ":" -f1 <<< {}) -' | cut -d ":" -f1 | xargs xdg-open}

If you do not have xdg-open set up, replace xdg-open with your favourite program to open PDF files.

Now go to a directory, try type "fp", this opens up fzf with each lines extracted from all pdf front pages in the given directory. You can type and search stuff.

Enjoy.

About

A tool to search all pdf front page in a given directory using fzf, a replacement for fast-p

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp