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

Convert files to papis documents #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alejandrogallo
Copy link

This pull request handles 3 cases

  1. A single file gets moved into its own directory
    with an info.yaml file for it, together with
    the original file. The title of the papis document
    is original title of the file (without extension)
    and the names of the folders and files associated
    with the papis document is the title without whitespaces.

  2. If a file comes in different formats (e.g. some pdf
    files have also a version in doc or ppt format),
    then both copies get moved into their own papis directory
    as explained in point 1.

  3. Some html files have a directory related to them,
    this directory is moved as is to the papis folder.
    The rest is as in point 1.

The script used for this is also attached to the
pull request, file-to-papis.sh.

In the pdfs directory, you can try

papis -l . -s use-cache False -s opentool xdg-open open

and play around.

I'd gladly answer questions.
file-to-papis.sh.zip

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

Successfully merging this pull request may close these issues.

None yet

1 participant