Coder Social home page Coder Social logo

backup-bear-notes's People

Contributors

bennylope avatar daytonlowell avatar mortennn avatar tehshrike avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

backup-bear-notes's Issues

Nice-to-have: delete files from the directory based on "trashed" flag

I don't feel very comfortable with handling deleted or renamed cards by wiping everything in the target directory besides the notes that are currently in Bear.

However, if there is a "trashed" (deleted) note in Bear, we can probably safely delete the file with the matching file name from the target directory.

You can see the query is currently filtering out all trashed notes here:

const rows = await db.all(`SELECT ZTITLE AS title, ZTEXT AS text FROM ZSFNOTE WHERE ZTRASHED = 0`)

If that query were changed to

SELECT ZTITLE AS title, ZTEXT AS text, ZTRASHED AS trashed FROM ZSFNOTE

the following code could either write the file out, or delete any potentially-existing file with that name, based on the trashed value.

Output based on tag hierarchy instead of a flat file structure

It would be useful to me if, instead of dumping all markdown files to the same output directory, they could be output based on tags.

So if a document had the #cool and #fancy/pants tags, the file would be written to both the cool directory, and the pants directory inside the fancy directory.

Documents without a tag could be written either to the root output directory, or an untagged directory. Without having thought about it a lot yet I'm leaning towards untagged.

This feature should probably be enabled by a new argument, maybe --use-tags-as-directories or something. mri could be used for easiness.

Errors on installing

I'm getting a lot of errors on installing. Tried to use sudo as well, but it doesn't work. This is on MacOS Catalina 10.15.3. Any pointers?
errors.txt

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.