App-SimplenoteSync
view release on metacpan or search on metacpan
bin/simplenotesync view on Meta::CPAN
}
$logger->debug('===== End Options ======');
return;
}
get_opts;
get_logger;
get_config;
my $app = App::SimplenoteSync->new($opt);
given ($opt->{action}) {
when ('edit') {
$app->edit($opt->{edit});
}
default {
my $notes = $app->sync_notes;
$app->sync_report;
}
}
__END__
=pod
=encoding UTF-8
=for :stopwords Ioan Rogers Fletcher T. Penney github
=head1 NAME
simplenotesync
=head1 VERSION
version 0.2.1
=head1 SYNOPSIS
simplenotesync [options] [pathname]
Options:
--help -h brief help message
--man full documentation
--version -v display program and library version
--debug -d write debug output to a logfile in current dir
--quiet -q log nothing
--email email used for simplenote account
--password password used for simplenote account
--no_server_updates don't modify notes on server
--no_local_updates don't modify notes locally
--edit edit a note, preserving xattrs
--editor override $ENV{EDITOR}
[pathname] is the local notes folder to syncronise with. Defaults to $HOME/Notes.
Everything is optional and can be specified in the config file. See manual.
=head1 DESCRIPTION
C<simplenotesync> provides bidirectional synchronization between the L<http://simplenoteapp.com/>/ website
and a local directory of text files on your computer
=head1 WARNING
Please note that this software is still in development stages --- I STRONGLY
urge you to backup all of your data before running to ensure nothing is lost.
If you run C<simplenotesync> on an empty local folder without the net result will
be to copy the remote notes to the local folder, effectively performing a backup.
=head1 CONFIGURATION
TODO x-platform!
C<simplenotesync> can optionally use a config file. Create a file called
F<simplenotesync.ini> in your config dir, usually ~/.config.
It is an ini file, supporting the following keys:
email, password, notes_dir, no_server_updates, no_local_updates, editor
=head1 KNOWN ISSUES
=over
=item
No merging when both local and remote file are changed between syncs - this might be enabled in the future
=item
Renaming a note filename, then changing the contents remotely, will result in two
copies of the same note. Also, chaging the notes title remotely will cause it to be
downloaded with again with the new name.
For now, you'll have to manually delete the old copy
=item
Certain characters are prohibited in filenames (:,\,/) - if present in the
title, they are stripped out.
=item
Simplenote supports multiple notes with the same title, but two files cannot
share the same filename. If you have two notes with the same title, only one
will be downloaded. I suggest changing the title of the other note.
=back
=head1 FAQ
=over
=item B<Why can I download notes from Simplenote, but local notes aren't being uploaded?>
Do the text files end in F<.txt> or F<.mkdn>? These are currently the only two
extensions considered.
Text files can't be located in subdirectories - this script does not (by
design) recurse folders looking for files (since they shouldn't be anywhere
( run in 1.958 second using v1.01-cache-2.11-cpan-ba708fea25c )