Add a new note $ n . This will open your editor and let you create a note in your working directory.
To edit a note use $ n . This function also exept different file typs, just add .md, .js, .sh or any type you like. (Windows and Mac user have to add .txt to the note name.)
nls
nls will give you a list of your notes sorted by last edited first. You can use nls to search for a note.
ns
Make a full text search of all your notes and it's content. It will print out result plus two lines before and after.
# J'utilise ça
Posté par arnauld . En réponse au message Prise de notes à la volée dans le shell. Évalué à 1.
Trouvé sur reddit :
Dans mon .zshrc :
"
n() {
*"
}
nls() {
lsd -t --blocks name,date ~/.notes/ | grep "$*"
}
nr() {
rm ~/.notes/"$*"
}
ns() {
grep -C 5 "$*" ~/.notes/*
}
nv() {
cat ~/.notes/"$*"
}
"
How to use:
n
Add a new note $ n . This will open your editor and let you create a note in your working directory.
To edit a note use $ n . This function also exept different file typs, just add .md, .js, .sh or any type you like. (Windows and Mac user have to add .txt to the note name.)
nls
nls will give you a list of your notes sorted by last edited first. You can use nls to search for a note.
ns
Make a full text search of all your notes and it's content. It will print out result plus two lines before and after.
nv
cat out your note in the terminal.
nr
Will delete the note.
https://www.reddit.com/r/commandline/comments/nyogk0/the_most_simple_way_to_take_notes/?rdt=33070
arnauld