Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
docu-tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gerhard Gonter
docu-tools
Commits
affcff37
Commit
affcff37
authored
11 years ago
by
Gerhard Gonter
Browse files
Options
Downloads
Patches
Plain Diff
added csv display
parent
73a6ade7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
perl/Gnome-Tomboy/tom
+13
-1
13 additions, 1 deletion
perl/Gnome-Tomboy/tom
with
13 additions
and
1 deletion
perl/Gnome-Tomboy/tom
+
13
−
1
View file @
affcff37
...
@@ -18,6 +18,10 @@ do stuff with Tomboy files
...
@@ -18,6 +18,10 @@ do stuff with Tomboy files
=head1 OP-CODES
=head1 OP-CODES
=head2 toc
Refresh table of contents file.
=head2 show
=head2 show
=head2 diff
=head2 diff
...
@@ -63,10 +67,10 @@ while (my $arg= shift (@ARGV))
...
@@ -63,10 +67,10 @@ while (my $arg= shift (@ARGV))
my
$op_code
=
shift
(
@PAR
)
unless
(
defined
(
$op_code
));
my
$op_code
=
shift
(
@PAR
)
unless
(
defined
(
$op_code
));
if
(
$op_code
eq
'
help
')
{
usage
();
}
if
(
$op_code
eq
'
help
')
{
usage
();
}
elsif
(
$op_code
eq
'
dump
')
{
dump_note
(
$_
)
foreach
(
@PAR
);
}
elsif
(
$op_code
eq
'
dump
')
{
dump_note
(
$_
)
foreach
(
@PAR
);
}
elsif
(
$op_code
eq
'
toc
')
{
tom_toc
();
}
elsif
(
$op_code
eq
'
toc
')
{
tom_toc
();
}
elsif
(
$op_code
eq
'
csv
')
{
tom_csv
();
}
elsif
(
$op_code
eq
'
find
')
{
find_note
(
@PAR
);
}
elsif
(
$op_code
eq
'
find
')
{
find_note
(
@PAR
);
}
elsif
(
$op_code
eq
'
diff
')
elsif
(
$op_code
eq
'
diff
')
{
{
...
@@ -129,6 +133,14 @@ sub find_note
...
@@ -129,6 +133,14 @@ sub find_note
}
}
}
}
sub
tom_csv
{
setup_toc
();
# TODO: show CSV file itself
system
(
qw(csv --TAB --UTF8)
,
$toc_file
);
}
sub
dump_note
sub
dump_note
{
{
my
$note_fnm
=
shift
;
my
$note_fnm
=
shift
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment