Commit Graph

11 Commits (45044ab177d530c1e1486d6c487cfdff633f83b1)

Author SHA1 Message Date
nirenjan 7e4b71c044 Add 'scripts/' from commit '0e3760e65e20817dab6c03efee9ef545c80eed69'
git-subtree-dir: scripts
git-subtree-mainline: 2c08462a0f
git-subtree-split: 0e3760e65e
2018-04-28 10:19:41 -07:00
nirenjan 9f75a8b596 Move scripts to submodule 2014-05-26 09:31:23 -07:00
nirenjan 4c99a14532 Allow user to pass in grep pattern
This also disables the search by word, so to search only by word
boundaries, surround the pattern by \< and \>
2013-02-11 15:39:15 -08:00
nirenjan 92129f2357 Rename commands and add short forms 2013-01-31 15:27:21 -08:00
nirenjan 5722777037 Fix note to use openssl MD5 instead of md5sum 2013-01-31 14:59:23 -08:00
nirenjan 553b5dc790 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 c22b902a90 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 6f48978ef4 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 76f1a4eff0 Fix title renaming for a new note 2013-01-24 19:27:39 -08:00
nirenjan 5f04cc0040 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 7bf597a69d Add note script 2013-01-23 20:58:18 -08:00