mirror of
https://codeberg.org/scip/note.git
synced 2025-12-17 04:31:02 +01:00
topic, thus use "cd topicname" instead just typing "topicname"!
FIXED: there was a smal regex bug which maked it impossible to use such
topics: "4 test", in such a case note just displayed note number 4
instead of cd'ing to topic "4 test".
ADDED: a new config option "$KEEP_TIMESTAMP" allows a user to disable
note's default behavior of updating the timestamp of a note after
editing it.
111 lines
2.7 KiB
Plaintext
111 lines
2.7 KiB
Plaintext
# 0.7
|
|
# 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 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 = '/';
|
|
|
|
|
|
# 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;
|