File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,14 @@ Installing
11113. Add `source ~/bin/notes/notes` to `~/.profile` **or** `~/.bash_profile`
1212
1313Using
14- --------
14+ -----
1515
1616Now you should be able to use Notes, like so:
1717
1818 notes # to list all notes
1919 new-note asdf # to create a note named asdf
2020 note as<TAB> # to view the note named asdf
2121 edit-note asdf # to edit the note named asdf
22+ archive-note asdf # to move the note named asdf to $NOTES_DIR/.archive
2223
2324The End
Original file line number Diff line number Diff line change @@ -30,6 +30,11 @@ edit-note() {
3030 emacs $NOTES_DIR /$1 .txt
3131}
3232
33+ archive-note () {
34+ mkdir -p $NOTES_DIR /.archive
35+ mv $NOTES_DIR /$1 .txt $NOTES_DIR /.archive
36+ }
37+
3338_find_notes () {
3439 NOTES=()
3540 for i in ` (find $NOTES_DIR -name ' *.txt' -not -path $NOTES_DIR ' /.archive/*' )`
@@ -51,3 +56,4 @@ _note_complete() {
5156
5257complete -F _note_complete note
5358complete -F _note_complete edit-note
59+ complete -F _note_complete archive-note
You can’t perform that action at this time.
0 commit comments