Code Monkey home page Code Monkey logo

paperless's Issues

Auto-regex for spaces in conditions

OCR is not the best when parsing text... therefore when someone inserts a space into a condition, paperless will replace that with the regular expression \s*. The reason for this is that its very common for words to be concatenated or maybe get more than one space inserted between them.

Error when creating a note

Howdy,

I have paperless "mostly" setup.

The --simulate command works fine, but then I get the following error when running "paperless create itinerary.pdf"

Processing rules...
Processing PDF pages...
Basing the date off the discovered string (2): 5August 2011
Saving /Users/jordanbrock/Dropbox/Action/itinerary.pdf to


  • File: /Users/jordanbrock/Dropbox/Action/itinerary.pdf
  • Service: finder
  • Destination: /Users/jordanbrock/Dropbox/Documents/Processed
  • Title: itinerary.pdf
  • Date: 2011-08-05
  • Tags:

There was an error processing the command.
error: undefined method `+' for nil:NilClass

I suspect that the error is occurring in lib/paperless/services/finder.rb between lines 24:29, but I haven't been able to confirm that. I can't work out what would be nil, because the output seems to have all the fields it needs.

Is there any way to run it in "verbose" mode, or a debug mode?

PS Thanks for a (what I hope will be) a fantastic service that pretty much fits my needs exactly.

"finder" service overwrites files with duplicated filenames

When a rule generates a file with exactly the same name as a previous file, and moves it to the destination folder, it overwrites the existing file.

I, personally, would prefer a behaviour similar to that of MacOSX where it creates a new file with a (1) or a (2) or (x) after the filename.

Often, when the system can't parse the date, it just starts applying the filedate with the < match > variable and you end up with files being overwritten.

Cheers,

Jordan

Local config override

The base configuration is in the home folder. But if there is a config file in the same folder as in the file being processed, then use that one.

Possibly inherit the the home config/merge?

Restructure Documentation

Right now the documentation is one huge README file. This needs to be broken up so that its less daunting to review.

Using --rules_file flag causes an error

Using the --rules_file flag will cause this error to be printed on the command line:

There was an error processing the command.
error: can't convert Symbol into Integer

This error is reproducible even when passing in the default rules file.

Example command:
paperless --rules_file=~/paperless.rules.yaml --simulate create ~/Desktop/AnyPDF.pdf

Running this same command without the --rules_file flag does not reproduce the issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.