Giter VIP home page Giter VIP logo

dn's Introduction

dn - Daily notes command line tool

dn is a simple command line tool to help keep notes on what you did every day and what's coming up.

Usage

dn writes a bullet-pointed string to a file with today's date in YYYY-MM-DD format in the ~/dn/ folder.

dno does the same, but the first argument is the filename. This can be used for future notes i.e. dno 2030-10-01 "I died".

dnt displays today's notes.

dnview displays all files, or when an argument like 2019-10 is passed, ~/dn/2019-10*.

dnte edit today's notes in vim.

dnoe edit a note in vim for a given date. i.e. dnoe 2019-11-02. If no date is passed i.e. dnoe then a file selection prompt appears in vim.

Example

$ dn "The same thing we do every night"

$ dnview
2019-11-01
 * Made dn
2019-11-02
 * The same thing we do every night

$ dnview 2019-11-02
2019-11-02
 * The same thing we do every night

$ dnt
2019-11-02
 * The same thing we do every night

$ dno 1977-10-28 "Saw star wars"

$ dnview
1977-10-28
 * Saw star wars
2019-11-01
 * Made dn
2019-11-02
 * The same thing we do every night

$ dnview 2019-11
2019-11-01
 * Made dn
2019-11-02
 * The same thing we do every night

If you want search, my recommendation is that you install a tool like ripgrep, which lists filenames and only echoes the relevant lines.

Setup

mkdir ~/dn

For bash: cat dn >> ~/.bashrc

For zsh: cat dn >> ~/.zshrc

Replace with the config file for your shell of choice!

dn's People

Contributors

djwgit avatar tomlockwood 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.