Commit Graph

8 Commits (bfb42d3732a920d668979a4fd125bb4528f18252)

Author SHA1 Message Date
nirenjan bfb42d3732 Rename commands and add short forms 2013-01-31 15:27:21 -08:00
nirenjan 2675146dea Fix note to use openssl MD5 instead of md5sum 2013-01-31 14:59:23 -08:00
nirenjan 2fda4cbad2 Fix check_empty and add show command to note
check_empty for restore was trying to run a git checkout in the current
working directory, instead of in the ~/.notes directory. Fix this issue

note_show uses less to display the contents of the note file.
2013-01-31 13:33:33 -08:00
nirenjan 8d0349f999 Add search functionality to note
Also tweak new and edit commands to delete/restore note if the file
is empty.
2013-01-30 19:25:32 -08:00
nirenjan 0ecbe0605d Fix note script for title renaming
Also add a debug print statement for when NOTES_DEBUG is set.
2013-01-30 18:04:21 -08:00
nirenjan 17e9f45505 Fix title renaming for a new note 2013-01-24 19:27:39 -08:00
nirenjan e2f3a1a7bd Fix note issues
Fix the following issues in note
1.  Always use a combo of lowercase letters, hyphen, underscore and
    numbers for the file name. This is taken from the title and uses sed
    to translate the uppercase letters to lowercase. Unfortunately,
    sed's translation mode doesn't support ranges, so we must use the
    full alphabet.
2.  Add support for displaying version information.
3.  Reformat the help display so it all fits in a single line.
4.  Add checking to ensure that at least one argument is passed to note
    so that the parse_args routine doesn't barf an error with shift.
5.  Remove argument checking in notes_init. It's called only by the init
    function, so there's no need to add a flag to control warnings.
2013-01-23 22:20:06 -08:00
nirenjan a5321078e4 Add note script 2013-01-23 20:58:18 -08:00