|
|
@ -17,7 +17,7 @@ Currently this is vimwiki-dependent. |
|
|
|
notes pages --date 2022-07-18 |
|
|
|
|
|
|
|
# Set output format: |
|
|
|
notes pages --format [vimwiki, tsv, location, full] |
|
|
|
notes pages --format [vimwiki, tsv, location, full, name] |
|
|
|
|
|
|
|
# All pages with a date: |
|
|
|
notes pages --with-date |
|
|
@ -90,6 +90,12 @@ my %FORMATS = ( |
|
|
|
return $result . "\n"; |
|
|
|
}, |
|
|
|
|
|
|
|
# Bare names of wiki pages (no extension): |
|
|
|
name => sub { |
|
|
|
my ($data) = @_; |
|
|
|
return $data->{page} . "\n"; |
|
|
|
}, |
|
|
|
|
|
|
|
# Fulltext of vimwiki pages: |
|
|
|
full => sub { |
|
|
|
my ($data) = @_; |
|
|
@ -98,8 +104,6 @@ my %FORMATS = ( |
|
|
|
$result .= "%% $pagepath {{{\n\n"; |
|
|
|
$result .= file_get_contents($pagepath); |
|
|
|
$result .= "\n%% }}}\n\n"; |
|
|
|
|
|
|
|
return $result; |
|
|
|
}, |
|
|
|
); |
|
|
|
|
|
|
|