Simple command line note taking tool
source link: https://www.tuicool.com/articles/Az2ueyn
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
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*
.
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!
Recommend
-
4
Introduction When processing command line arguments in Python, you have a few options available: sys.argv - a raw list of arguments passed to the Python interpreter argparse - Python's...
-
6
Taking Command Line Arguments in Bash Submitted by NanoDano on Tue, 03/20/2018 - 01:54...
-
10
Overview Introduction Taking command line arguments is one of the first things you should learn how to do with a new language. In this tutorial we'll walk through a simple Java program that takes command line arguments...
-
7
Notesnook Take private notes, capture ideas, make lists & sync them anywhere A simple & easy to use private note-taking app that encrypts everything on the client side. 😎 Features Privacy isn't the only...
-
8
How to Build a Note Taking Command Line Application With Rust: Part 1Miner with a rusty pickaxe finds gold nugget circa 2021 — Bonus internet points if you can identify the locationLast week I wrote about...
-
9
Taking React to the Command Line with InkUse React in the console, have you ever seen something like that before?This is definitely a combination I was not expecting to see, for some reason when I...
-
10
Show HN: My new free note taking tool
-
1
nb · command line and local web plain text note-taking, bookmarking, archiving, and knowledge base application Link Search
-
5
BlankeseA note taking toolBlankese is a browser tool that enables you to write notes and copy and paste information from various websites in one place.
-
2
tuimake tuimake(graphical make) is a simple command line tool to use Makefile in interactive way.(Sample Makefile in this repo is used in the below example)
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK