bellecp / fast-p Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
I tried to solve it by brew install coreutils
; and then using gcut, instead of cut in the function p definition.
However, the pdf reader wasn't launched. Might somewhere in the last line is wrong:
| gcut -z -f 1 -d $'\t' | tr -d '\n' | xargs -r --null $open > /dev/null 2> /dev/null
Thank you for this fascinating tool!
I recently installed your super fun code.
Now I'm trying to get it on my other computer.
Alas, I have no experience with installing packages with go.
I get weird behaviour.
After the command go install github.com/bellecp/[email protected]
I get " finding .. found" but I don't think anything happens really. Could you perhaps provide a hint what I could do differently?
I checked both directories but there aren't any fast-p
binaries ...
I actually tried also doing it manually but I'm just an illiterate and couldnt get it running that way either ...
I have installed fast-p
from the precompiled binary fast-p_0.1.7_linux_amd64.deb for Ubuntu 18.04. Everything works fine but when I run:
$ sudo apt update
or
$ sudo apt upgrade
I get a warning saying:
dpkg: warning: parsing file '/var/lib/dpkg/status' near line <line-number> package 'fast-p':
missing maintainer
I think this warning would go away if the package maintainer is added in the precompiled binary.
Output of $ uname -a
:
Linux shubham-Z510 4.15.0-33-generic #36-Ubuntu SMP Wed Aug 15 16:00:05 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Output of $ lsb_release -a
:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic
Is it possible to integrate rga so:
I am considering a simpler installation for OSX users via a homebrew formula.
Please report any issues/suggestions here -- all feedback welcome.
The line here makes pdftotext stop scanning on page 2 of each pdf. Is there a reason for that? I have some really long PDFs I would like to parse
Since this is a cache file, it would be better to put it in ~/.cache (ake $XDG_CACHE_HOME) rather than directly in $HOME.
When I tried running the p command I got the error like this:
[qoqosz:~/Downloads]$ p
Loading _of_Combinatorial_Topology.pdf...
Loading son,_Ronald_L.pdf...
Loading toip-depo.pdf... .pdf
p:48: no such file or directory: /Users/qoqosz/.cache/pdftotext/00ce81e5cab6f38ftebooks-tmp/Foundations_of_Combinatorial_Topology.pdf
I'm on a Mac and have installed all the requirements. Not sure what steps should I list to make this issue somehow reproducible. Is it possible that space in filenames could be a problem?
For some reason the text is not being generated. I installed all the dependencies you mentioned. Amy idea how it might be fixed?
Hello,
unfortunately my command line fu is not advanced enough to modify the startup script myself.
What I would like is that after pressing return the selected pdf is opened but the fast-p terminal stays unchanged. So I could change my search and open another pdf from the same terminal.
Script is passing the line content and not the file name/address to open command. Using Ubuntu 18.04
Go get depressed, go install did not install file into path
Hi, when I exit from fast-p
using Ctrl+C or Esc, the terminal leaves debug/help message from the open
command. I am using the x86_64 MacOS binary.
How to reproduce:
p
when trying to install via homebrew, the fan kicked in real hard.
I checked the CPU and my computer almost exploded. Havent experienced before when installing programs.
Initially I got a warning that I'm on Catalina and I might run into problems (e.g. slow processing or sth like that)
On my screenshot, it says ./make.bash
, that was the part where it got really loud and kept hanging there.
Anyways. I have the Zshell and not bash.
So I'm not sure what exactly I'm doing wrong.
Would appreciate any hint. Thanks
Finished all the steps, trying it in a folder with numerous pdf files, but I the script returns:
1/1
grep: empty (sub)expression
On OSX the match isn't highlighted in my preview window for some returned items, but it is in others. (Im not sure if this is an issue here, or with fzf). For example, if I search "test" the first few results might hate [email protected] directly in the preview window, it just isnt highlighted. If I keep scrolling down other results show them and are indeed highlighted.
Hi there,
I've been watching your project since it came up on Hacker News. All the components are now available on Windows through chocolatey. Is it technically possible to implement the same functionality under PowerShell?
It would be great to have a image preview integrated with fast-p
and fuzzy file. The idea it to see the cover image of the selected pdf file. Anyone has idea how to implement that?
I am using this to search for text in long pdfs, so the searched term might not be visible in the preview window without scrolling a lot.
From what I can tell the preview window always starts on the first line, is there any way to have it start on the line of the first match?
Thanks
I put the mentioned code snippet into my .bashrc
but in fact my default shell is zsh [...]
In order to make the p
command work, i have to instantiate a bash session.
how can I get all this going in Zsh as well?
Thanks alot
This is a really interesting approach to dealing with masses of PDFs!
Sorry to be that guy, but would you consider adding whatever is your favourite open source license? (If not, then please don't worry!)
Both the idea and the actual script/bash function most probably cross the threshold for copyrightability.
Thanks and sorry again!
hi^^ i tried today to use fast-p to make some math papers more searchable, but it just stops after a tiny fraction of the document.
using pdftotext on the same pdf works fine, then the whole thing is turned into a txt.
i've attached the cache-file when using fast-p in a folder that contains just a trial file (i had to change the ending bc github didn't let me upload a .db file but the content is the same...)
fast-p_cached_pdftotext_output.txt
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.