Git Product home page Git Product logo

todo's Introduction

todo

This is basically a wrapper around vim, with some interesting logic for parsing files to create memories and reminders.

Roadmap

  1. support /remember X to specify how many consecutive days something should appear in memories
  2. support /reminder X to say remind me in "X" days.

Notes on achieving the roadmap

The application needs to know how far into the past to look.

Otherwise, I can create a centralized memory system that stores these lines, and instead read only from this centralized system.

It might as well be a sqlite3 db file:

CREATE TABLE reminder (
    created  DATE,
    content  TEXT,
    appear   DATE,
    order    NUMERIC,

    PRIMARY KEY (created, order)
);

CREATE TABLE memory (
    created    DATE,
    disappear  DATE,
    content    TEXT,

    PRIMARY KEY (created, order)
);

Calling todo will scan files in the root folder, and insert memories and reminders into the database, then pop scanned files (that aren't today's) into the archive folder.

The directory structure will look like this:

.
|--- .archive
|    | ...              # archive of old journals, mined for reminders/remembers
|    `--- yesterday.md
|--- .db                # sqlite3 db
`--- today.md           # today's journal

After memories are printed into the "today" file, they can be deleted. This cleaning house allow for future schema flexibility. In the future when the schema is stable, we can just keep them around.

todo's People

Stargazers

paper2code - bot avatar

Watchers

James Cloos avatar Adam avatar

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.