Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tomlockwood/dn
Daily notes command line tool
https://github.com/tomlockwood/dn
Last synced: about 2 months ago
JSON representation
Daily notes command line tool
- Host: GitHub
- URL: https://github.com/tomlockwood/dn
- Owner: tomlockwood
- Created: 2019-11-01T03:55:56.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2019-12-15T23:30:12.000Z (over 4 years ago)
- Last Synced: 2024-01-27T11:02:22.584Z (5 months ago)
- Size: 6.84 KB
- Stars: 244
- Watchers: 3
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Lists
- cli-apps - dn - Daily notes command line tool. (<a name="note-taking"></a>Note taking)
- awesome-stars - tomlockwood/dn - Daily notes command line tool (Others)
- awesome-terminals - dn - Daily notes command line tool (Tools / Bash)
- my-awesome-stars - tomlockwood/dn - Daily notes command line tool (Others)
- awesome-cli-apps - dn - Daily notes command line tool. (<a name="note-taking"></a>Note taking)
README
# 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.
`dnv` 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"$ dnv
2019-11-01
* Made dn
2019-11-02
* The same thing we do every night$ dnv 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"
$ dnv
1977-10-28
* Saw star wars
2019-11-01
* Made dn
2019-11-02
* The same thing we do every night$ dnv 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!