mirror of
https://codeberg.org/scip/note.git
synced 2025-12-17 04:31:02 +01:00
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.
122 lines
2.9 KiB
Plaintext
122 lines
2.9 KiB
Plaintext
# 0.8
|
|
# This is a sample config for the note script
|
|
# There are usefully defaults set in note itself.
|
|
#
|
|
# The default database backend is NOTEDB::binary.
|
|
#
|
|
# Copy it to your $HOME as .noterc
|
|
#
|
|
# This config has to be valid perl code. Therefore
|
|
# please be careful!
|
|
#
|
|
# You can contact me per email: <tom@daemon.de>
|
|
#
|
|
# Thomas Linden, 19/03/2000
|
|
|
|
|
|
# Your home, better do not change it!
|
|
$HOME = $ENV{'HOME'};
|
|
|
|
|
|
# specify the path, where the NOTEDB directory
|
|
# resides
|
|
$libpath = "/usr/local/lib";
|
|
|
|
|
|
|
|
# you need to decide which database backend you want
|
|
# to use. Please refer to the corresponding documentation
|
|
# for closer information about the certain backend!
|
|
# Currently supported types: "binary" or "mysql".
|
|
$dbdriver = "binary";
|
|
|
|
|
|
# backend specific settings:
|
|
####### mysql ###############
|
|
# sql database settings.
|
|
$dbhost = ""; # mysql server (hostname)
|
|
$dbuser = ""; # mysql username
|
|
$dbpasswd = ""; # her password
|
|
$dbname = ""; # database name
|
|
$table = "note"; # Table and field names.
|
|
$fnum = "number";
|
|
$fnote = "note";
|
|
$fdate = "date";
|
|
######## end mysql ###########
|
|
|
|
|
|
####### binary db ##################
|
|
# The location of the note-database. If it does
|
|
# not exist, it will be created. Only if $driver = "binary"
|
|
$NOTEDB = $HOME . "/.notedb";
|
|
# Define the maximum bytes a note can have in a
|
|
# note-entry.
|
|
$MAX_NOTE = 4096;
|
|
|
|
# Define the maximum bytes a timestamp can have
|
|
# in a note-entry.
|
|
$MAX_TIME = 24;
|
|
####### end binary #################
|
|
|
|
|
|
|
|
|
|
# uncomment this, if you want to run note always
|
|
# in interactive mode
|
|
#$ALWAYS_INT = "YES";
|
|
|
|
|
|
# uncomment this, if you want to use always your
|
|
# favorite editor (even for creating notes) instead
|
|
# of <STDIN>
|
|
#$ALWAYS_EDIT = "YES";
|
|
|
|
|
|
# uncomment this, if you dont prefer that note updates
|
|
# the timestamp of a note after editing it. It will
|
|
# keep the original timestamp if this option is set.
|
|
#$KEEP_TIMESTAMP = "YES";
|
|
|
|
|
|
# uncomment and edit it, if you want to use another
|
|
# editor than the default $EDITOR or as fallback vi.
|
|
#$PreferredEditor = "emacs";
|
|
|
|
|
|
# This option turns topic-support on or off
|
|
# comment it out, if you don't need it
|
|
$TOPIC = 1;
|
|
|
|
|
|
# You can specify your own topic separator here.
|
|
# the default topic separator is a normal slash: "/"
|
|
#$TopicSep = '/';
|
|
|
|
|
|
# The maximum width for displaying a note.
|
|
$maxlen = 30;
|
|
|
|
|
|
# if $COLOR equals NO, then everything will be
|
|
# displayed with your default colors (mostly black)
|
|
$COLOR = "YES";
|
|
|
|
|
|
# Color-definitions of the various fields. Will be
|
|
# ignored if $COLOR = "NO".
|
|
$BORDER_COLOR = "BLACK"; # Borders
|
|
$NUM_COLOR = "blue"; # Note number
|
|
$NOTE_COLOR = "green"; # The note itself
|
|
$TIME_COLOR = "black"; # The time
|
|
$TOPIC_COLOR = "BLACK"; # The topic "prompt"
|
|
|
|
# The following colors are available:
|
|
# black, red, green, yellow, blue, magenta, cyan and white.
|
|
# It will be bold if it is uppercase.
|
|
# You can append an underscore, if you like it underscored,
|
|
# ie: blue_
|
|
# Or, you can append an "I", if you like it inverted
|
|
|
|
# keep this "1;" please!
|
|
1;
|