mirror of
https://codeberg.org/scip/note.git
synced 2025-12-17 04:31:02 +01:00
note! quickly corrected! so subtopics also available from command-
line.
FIXED: a small bug fiyed, it was impossible to use -D or -I from command-
line, if $ALWAYS_INT was turned on, now it is.
FIXED: fixed problem with local/global variable $time, which confused
the script under certain circumstances, now $time is no more global,
it will be read in (using &getdate) locally by &new and &edit.
CHANGED: The Topic separator is no longer hardcoded, one can customize
it using the $TopicSep variable, the default is now /, the backslash
will no mor work!
CHANGED: use perl buildin localtime() function instead of
GNU date, which is possibly not installed on every target
system (i.e. win32), therefore better portability!
CHANGED: use now the strict module
ADDED: Support for subtopics added (and sub-sub-..-topics).
CHANGED: Removed the "T" command, it is now obsolete.
CHANGED: behavior of list command changed, now shows topics as well as
notes under the current topic(if there are some).
CHANGED: The ".." command takes you now one level higher in your topic-
structure.
ADDED: A new config option $PreferredEditor, which you can use to
specify your own choice of editor.
FIXED: A bug at line 769 causing single note where smaller than note-
listings
99 lines
2.4 KiB
Plaintext
99 lines
2.4 KiB
Plaintext
# 0.6
|
|
# This is a sample config for the note script
|
|
# You do not need it, if you keep the values
|
|
# here unchanged.
|
|
#
|
|
# Copy it to your $HOME as .noterc
|
|
#
|
|
# IMPORTANT:
|
|
# If you previously used note 0.1 or 0.2 then
|
|
# you will already have such a file. This file
|
|
# is not compatible with the one for note 0.3 and higher!
|
|
# You have to delete it and to create a new one.
|
|
#
|
|
# This config has to be valid perl code. Therefore
|
|
# please be carefull!
|
|
#
|
|
# You can contact me per email: <tom@daemon.de>
|
|
#
|
|
# Thomas Linden, 23/2000
|
|
|
|
|
|
# mysql database settings. leave them uncommented
|
|
# if you are not using the mysql version of note.
|
|
# $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";
|
|
|
|
# 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 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;
|
|
|
|
|
|
# Define the maximum bytes a note can have in a
|
|
# note-entry.
|
|
$MAX_NOTE = 1024;
|
|
|
|
|
|
# Define the maximum bytes a timestamp can have
|
|
# in a note-entry.
|
|
$MAX_TIME = 64;
|
|
|
|
|
|
# The maximum width for displaying a note.
|
|
$maxlen = 30;
|
|
|
|
|
|
# Your home, better do not change it!
|
|
$HOME = `echo \$HOME`;
|
|
chomp $HOME;
|
|
|
|
|
|
# The location of the note-database. If it does
|
|
# not exist, it will be created.
|
|
$NOTEDB = $HOME . "/.notedb";
|
|
|
|
|
|
# if $COLOR equals NO, then everything will be
|
|
# displayed with your default colors (mostly black)
|
|
$COLOR = "NO";
|
|
|
|
|
|
# Color-definitions of the various fields. Will be
|
|
# ignored if $COLOR = "NO".
|
|
$BORDER_COLOR = "BLACK"; # Borders
|
|
$NUM_COLOR = "blue"; # Note number
|
|
$NOTE_COLOR = "magenta"; # 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;
|