App-Notes
view release on metacpan or search on metacpan
Then run this on the command line:
git init <git url>
Now if you run C<notes list> and there should be one note listed.
This was the file you made when you created your gist.
Feel free to delete this note if you want.
Running C<notes add> will add a new note and it will show up in your gist as a
new file.
Try adding a note and verify that it shows up in your gist on github.
Changes you make via the notes tool should show up in your gist and vice versa.
Have fun!
=item Accessing your last note
If you want to edit your last note, simply call edit with no arguments:
$ notes edit
To see your last note, simply call show with no arguments:
$ notes show
=item Syncing
Every time a note is created, modified or removed, L<App::Notes> will commit
the change to the git repo.
By default, it will C<pull> before a command executes and C<push> when its done.
Except on commands where it doesn't make sense.
For example, a push will not happen after calling C<list> or C<show>.
To turn this behavior off, set C<APP_NOTES_AUTOSYNC=0>.
If you do this, make sure to remember to manually call C<notes sync>,
or your notes will get out of sync.
=item Aliasing
Create a shorter alias for notes, such as n.
Run C<which notes> on the command line to find the path that notes was
installed to.
Then create an alias in your ~/.bashrc:
alias n=</path/to/notes>
Now you can run notes by just typing n.
=item VimFu
Do some magic with vim.
Learn about vim filters if you haven't already by running C<:help filter>
inside of a vim session.
Once you understand vim filters, start using them to create and edit notes.
For example, type a note inside of vim.
Highlight the text you just wrote in visual mode.
Now type C<!notes add foo> to create a new note named foo with the contents
you had highlighted.
=GPG Encryption
Want to write notes about super secret stuff that needs to be secure? It's
incredibly easy to use vim + L<gnupg.vim|https://github.com/jamessan/vim-gnupg>
to create and edit encrypted notes. Just create a note with a C<.gpg> extension
and the plugin will pick it up.
notes add super-secret-stuff.gpg
Vim should open up a bottom window where you can enter GPG Recipients
(via ID, email, name, etc.)i to encrypt the note for. You can use your own
key here, and on save, the note will always be encrypted to disk.
The C<gnupg.vim> also ensures that vim does not write plaintext swap files
to disk when editing gpg encrypted files.
Go forth and secure your notes!
=back
=head1 AUTHORS
=over 4
=item *
William Wolf <throughnothing@gmail.com>
=item *
Naveed Massjouni <naveedm9@gmail.com>
=back
=head1 COPYRIGHT AND LICENSE
William Wolf has dedicated the work to the Commons by waiving all of his
or her rights to the work worldwide under copyright law and all related or
neighboring legal rights he or she had in the work, to the extent allowable by
law.
Works under CC0 do not require attribution. When citing the work, you should
not imply endorsement by the author.
=cut
( run in 1.989 second using v1.01-cache-2.11-cpan-e1769b4cff6 )