Commit Graph

20 Commits

Author SHA1 Message Date
TLINDEN
b94997a1f5 FIXED: NOTEDB::pwsafe3 contained the old python stuff in delete code. 2012-02-10 20:39:00 +01:00
TLINDEN
77c359ffd7 FIXED: the YAML export/import change were missing too. grml...
FIXED:          NOTEDB::general backend fixed loading Config::General
2012-02-10 20:38:46 +01:00
TLINDEN
f0a972af06 ADDED: New backend added: NOTEDB::pwsafe3, which adds support to store
notes in a Password Safe v3 database.
FIXED:          -d didn't work, because of a typo in mode assignment.
2012-02-10 20:38:15 +01:00
TLINDEN
a5188ae5da ADDED: Added test cases for "make test"
ADDED:          Added test for optional and required perl modules in
                Makefile.PL
FIXED:          NOTEDB::dumper version string were wrong, therefore
                cpan didn't index is properly.
2012-02-10 20:35:44 +01:00
TLINDEN
08cb2a0962 FIXED: Applied patch by Elmar Loos which fixes misbehavior for
-t and -T (identical output)
FIXED:          Fixed import bug which omitted the timestamp of the last
                entry, supmitted by Bill Barnard.
FIXED:          Fixed another import "bug" (or design flaw) which caused
                imported notes to get new numbering after importing them.
                Submitted by Bill Barnard.
CHANGED:        Until 1.3.4 missing Crypt:: modules lead to unencrypted
                fallback by note. From 1.3.5 on this will no more happen,
                it croaks now until you install the desired modules
                or modify your configuration to use no encryption.
CHANGED:        default config and default settings without config have
                been changed. They are now simpler, no colours or anything
                so that it works better out of the box in any terminal
                window or shell (e.g. on dark ones or the like).
ADDED:          New interactive mode command: "c". It is now possible to
                change note's behavior at runtime. No database related
                parameters can be modified.
2012-02-10 20:34:04 +01:00
TLINDEN
8779f24249 - 2012-02-10 20:31:48 +01:00
TLINDEN
b2b5cea5ec FIXED: most config variables not related to drivers had
invalid sentence in note, so the new ones of the new config
                were ignored.
FIXED:          added version to NOTEDB::text.
FIXED:          fixed handling of NOTEDB::crypt_supported, now encryption
                works again.
ADDED:          NOTEDB::text now supports internal caching too.
CHANGED:        lock() sets the umask internally to 022, so that other
                users are able to read the lockfile.
2012-02-10 20:31:13 +01:00
TLINDEN
773584e400 - 2012-02-10 20:30:38 +01:00
TLINDEN
23c301be2a FIXED: the binary driver (NOTEDB::binary) encounters now if a note
entry is bigger then MaxNoteByte. It prints the overlapping
                part to STDERR, and a warning message and finally saves
                the complete, unchanged note entry to an external text file.
2012-02-10 20:30:10 +01:00
TLINDEN
6c4ca1167c CHANGED: added the correct installation instructions to the README file.
REMOVED:        removed the usage guidelines from te README file. This information
                were redundant because its also contained in the manpage.
FIXED:          on FreeBSD the setting of MaxLen to 'auto' had no effect because the
                output of 'stty -a' which I use in note to determine the actual
                size of the terminal, is different from that on linux.
ADDED:          topics can now be abbreviated in interactive mode, which
                avoids typing. abbreviation works only if an explicit
                match could be found, otherwise the available topics that
                matches will be suggested.
2012-02-10 20:28:25 +01:00
TLINDEN
62ede07799 FIXED: Some odd typos in README and note.pod.
FIXED:          if ShortCd was on and one used "cd 3" and after that "cd .."
                then the current topic was wrong (empty $PATH).
FIXED:          if the current topic contained no notes and one created a new
                note without specifying a topic, then note did not add a
                proper topic (also because of empty $PATH).
CHANGED:        the default colors are now visible both on black and white
                backgrounds, see next entry.
ADDED:          two more color values: <white_black> and <bold>.
CHANGED:        the color hash is now in ::main instead of ::C.
2012-02-10 20:26:16 +01:00
TLINDEN
f548a0a1e2 - 2012-02-10 20:24:51 +01:00
TLINDEN
9cf564ffe4 CHANGED: does no more use the external touch command to create a new
file, use perls open() instead.
CHANGED:        excluded some of the help texts from the usage message and the
                interactive help command to a manpage.
ADDED:          new commandline flag "--encrypt" which one can use to encrypt
                the mysql database password. This will be decrypted before
                connecting to the db. There is also a new config file option
                "encrypt_passwd" which indicates an encrypted db-password.
ADDED:          another new config option "ShortCd", which can be set to "yes"
                or 1 and if set, then a command like "cd 13" would jump
                directly to the topic of the note with the number 13.
ADDED:          now you can at any time cd back to the "root" of the
                topic-structure using the command "cd /".
CHANGED:        mysql.pm does now only do a table-lock on single write
                accesses, no more on the whole session. This allows one to
                access the same db twice or more.
FIXED:          Changed README and Changelog for readability on 80 by 25
                displays. And changed indentation of the note script itself.
ADDED:          NOTEDB.pm - a generic module, which holds some methods, which
                are used by binary.pm, mysql.pm and dbm.pm.
ADDED:          NOTEDB.pm generate_search(), which allows one to
                use AND, OR and various combinations of them using ( and ).
ADDED:          a search does now return the 2nd line of a note if a matching
                note's first line is a topic.
CHANGED:        use "unshift" instead of push to add $libpath to @INC.
ADDED:          a new feature, Caching of notes. supported by binary.pm and
                mysql.pm. To turn it on, one need to set "Cache" in the config
                to a true value.
2012-02-10 20:22:49 +01:00
TLINDEN
0c293e4b81 FIXED: there was a bug in the search expression, use now \Q and \E.
ADDED:          --config <file> allows one to use another config than the default.
2012-02-10 20:15:52 +01:00
TLINDEN
9a2d07e0e0 FIXED: the T (and t respectively) printed nothing out since 1.0.3! It does
it now again...
ADDED:          a new database backend added, NOTEDB::dbm, which uses DBM files for
                storage.
FIXED:          &display-tree returns now, if there is no note, otherwise it
                would die because of an undefined refernce.
CHANGED:        Changed the config file format completely. It is now no more a perl
                file, instead it is a simple plain text file which note parses.
CHANGED:        Changed the way, note loads it database backend. It uses now the
                $dbdriver variable as module-name, which makes it possible easily
                to write your own backend without the need to change note itself.
FIXED:          Removed Getopt::Long option "bundling", causes errors with perl
                5.6.0 and is not senceful.
FIXED:          Added the Getopt::Long option "no_ignore_case". In 1.0.4 options
                were case insensitive causing -i to be interpreted as --import
                instead of --interactive ;-(((
ADDED:          a new config option $DEFAULT_LIST, which causes note,  \
                if turned to "LONG", to use long-listing as default.    |
                But it will still be able to use short-listing if you   |
                explicit specify that.                                  |    submitted by
FIXED:          sub search prints now an appropriate error-message in   |==> Peter Palmreuther
                case no searchstring was given instead of jumping to    |    thanks a lot!
                usage.                                                  |
CHANGED:        Changed the text in the interactive help to reflect     |
                changes of verion 1.0.3 (t and T).                     /
2012-02-10 20:15:05 +01:00
TLINDEN
5b54b5f822 ADDED: "-" works also for --dump, but in the other direction. It causes
note to dump to standard output instead into a file.
ADDED:          you can specify - as filename for use with --import and if you want
                to create a new note. "-" stands for standardinput and it allows you
                tp pipe another commands output to note!
ADDED:          you can now use an environment variable for the passphrase (when using
                encryption). If it is presen, note will not ask for a passphrase. This
                is very usefull in comination with the addition above, for use in
                scripts.
CHANGED:        the interactive help screen is now coloured.
ADDED:          -o commandline switch, which causes note to overwrite an existing
                database when importing data from a previous dump. Very handy if
                you want to re-initialize your db, i.e. if you changed the format.
ADDED:          the long-tree-view (-T) displays now also the note-number of each
                note.
2012-02-10 20:14:24 +01:00
TLINDEN
2287e23f35 FIXED: fixed bug in NOTEDB::mysql, which caused note t store NULL values
in db, if encryption was off. A really dump failure :-(
2012-02-10 20:13:51 +01:00
TLINDEN
4a5dd8c4bd CHANGED: removed install.sh. use now a Makefile for installation.
ADDED:          Encryption support. Note can now encrypt notes using IDEA
                or DES as encryption-protocols(symetric).
2012-02-10 20:13:28 +01:00
TLINDEN
c38665373c FIXED: There were many new bugs after my last changes *grrrrr*. fixed.
Works now properly, with both backends!
FIXED:          and another bug: recounting of numbers did not take care about
                the existing order! If you deleted note #12, then note #13 became
                not neccessarily #12! Instead it becames any other number (kind of
                randomly...).
CHANGED:        NOTEDB::binary set_del function changed, it does no more require
                a temporary file for number recount. Instead it uses get_all and
                stores all notes in RAM and then rewrites the database.
FIXED:          fixed the set_new call within note. It used 0 as the first param
                (number) which is not useful since we dont have support for auto-
                increment from all database backends.
FIXED:          fixed the function set_recountnum in NITEDB::mysql, it was also
                incorrect :-((( 0.8 seemed to be a very bad early alpha...........
FIXED:          there was a bug in NOTEDB::binary which caused not to recount note
                numbers after deleting one :-(
2012-02-10 20:13:09 +01:00
TLINDEN
f54d187c47 ADDED: NOTEDB::binary. so now 0.8 is ready for shipping !
FIXED:          regexp bug fixed. It was only possible to delete 2 items together
                separated by comma ("d 1,2,3,4" deleted only 1,2!).
ADDED:          Some new config options which reflects the new module structure.
                So you can change your database backend without the need to
                replace the note script itself.
FIXED:          the previously added feature "cd <topic>" didn't really work :-(
ADDED:          NOTEDB::mysql added. Perlmodule, which I will use within
                note from now on instead of buildin functions for accessing the
                database. From now on I only need to maintain one version of
                note, since the module interface will be identical between the
                bin and sql version.
CHANGED:        The SQL code does not use Mysql.pm anymore. Instead it is coded
                using the more portable DBI module. This allows one easily to
                switch to anther database, which is supported by DBI.
CHANGED:        Locking. The db-table will now be locked before note accesses it.
FIXED:          width of listings is now always the same independent of the string-
                length of a certain note.
2012-02-10 20:12:25 +01:00