Commit Graph

208 Commits

Author SHA1 Message Date
tastytea bdf8883d58
Added a pkg-config file.
continuous-integration/drone/push Build is passing Details
2019-07-29 04:01:47 +02:00
tastytea bc3d377254
Added a bit to Reference main page.
continuous-integration/drone/push Build is passing Details
2019-07-28 02:25:59 +02:00
tastytea 68e81ff411
Escaped mentions of URI in documentation. 2019-07-28 02:18:52 +02:00
tastytea 998cc32546
Cosmetic changes in the Documentation. 2019-07-28 02:14:06 +02:00
tastytea 38e8e1dc81
Documented types. 2019-07-28 02:13:55 +02:00
tastytea 4991f7b006
Documented URI. 2019-07-28 02:13:23 +02:00
tastytea 610173179d
Documented time functions. 2019-07-28 01:51:55 +02:00
tastytea 73262c8d16
Documented Database. 2019-07-28 01:42:57 +02:00
tastytea 57e3fc0289
Documented search functions. 2019-07-28 00:07:55 +02:00
tastytea ba78adb399
Described Export classes. 2019-07-28 00:07:22 +02:00
tastytea 1508fc0f4d
Documented Export::AsciiDoc. 2019-07-27 23:34:17 +02:00
tastytea 27a470e21f
Added remwharead.hpp, which includes all other headers.
It also contains the main page for the reference.
2019-07-27 23:18:34 +02:00
tastytea 514f88b0eb
Documented ExportBase. 2019-07-27 22:29:43 +02:00
tastytea b3bb1f05f2
namespaced library.
continuous-integration/drone/push Build is passing Details
2019-07-27 09:59:43 +02:00
tastytea 8e40bea06e
Download popl.hpp into src/cli/ in Debian example and CI recipe.
continuous-integration/drone/push Build is failing Details
2019-07-26 21:20:34 +02:00
tastytea a66880c98d
Cosmetic changes. 2019-07-26 20:58:25 +02:00
tastytea 0d18bd10ed
Install headers. 2019-07-26 20:58:25 +02:00
tastytea dccf85b60d
Moved exports into subdirectory. 2019-07-26 20:58:25 +02:00
tastytea 7fb23ee207
Split code into library and cli. 2019-07-26 20:58:24 +02:00
tastytea aa16dad796
Sort exports by date, newest to oldest.
continuous-integration/drone/push Build is failing Details
2019-07-26 03:11:44 +02:00
tastytea 2ebd27b159
Fixed tag-searching with non-ASCII characters.
--search-tags with regular expressions didn't work because regex
didn't know how to properly convert case.
2019-07-26 01:12:12 +02:00
tastytea 2fd761ee72
Fixed the fix in to_lowercase with ICU. Now it is really working!
continuous-integration/drone/push Build is failing Details
Turns out I fixed the crash, but some unicode-characters were not
lower-cased. I'm using ICU now. It is very easy, makes sense and is
all-around pleasant.
2019-07-25 06:04:53 +02:00
tastytea d6dd8d4e16
Added support for regular expressions. 2019-07-25 03:41:57 +02:00
tastytea 21fe64b59c
Fixed to_lowercase().
Converting some text to lowercase caused range errors. I don't really
know what I'm doing here, so I replaced the code with this answer from
StackOverflow: <https://stackoverflow.com/a/21395>. It works now,
let's hope it stays that way.
2019-07-25 03:06:27 +02:00
tastytea df535cc6fb
--export has no default value anymore.
continuous-integration/drone/push Build is failing Details
If --export had a default value, it would have to be called with
--export=FORMAT or -eFORMAT, while it was previously possible to call
it with --export FORMAT or -e FORMAT. This is counter-intuitive and
not backwards-compatible, so I reverted the change.
2019-07-21 17:15:55 +02:00
tastytea f2917abb3b
Added documentation for “simple” export. 2019-07-21 16:39:36 +02:00
tastytea 71bce0c87d
Added “simple” export. 2019-07-21 16:37:36 +02:00
tastytea 4406a8c64d
Unescape HTML in titles. 2019-07-21 16:25:13 +02:00
tastytea a83a2548c3
Remove HTML-encoded newlines in descriptions.
continuous-integration/drone/push Build is passing Details
We didn't catch newlines encoded as HTML entities before.
2019-07-13 18:20:37 +02:00
tastytea ff708e9403
AsciiDoc export: Disable webfonts.
continuous-integration/drone/push Build is passing Details
2019-07-12 01:49:32 +02:00
tastytea 47bcffec64
Replace ', ", ´, `, ’ and # in tags in AsciiDoc output.
continuous-integration/drone/push Build is passing Details
2019-07-06 18:24:31 +02:00
tastytea 622ccb9a03
AsciiDoc export: Escape '[' and ']' in URIs.
continuous-integration/drone/push Build is failing Details
2019-06-26 19:55:05 +02:00
tastytea 59ec3f6d6d
Remove HTML from descriptions.
continuous-integration/drone/push Build is passing Details
2019-06-11 01:25:21 +02:00
tastytea c166de0883
Made title and description extraction case insensitive.
continuous-integration/drone/push Build is passing Details
2019-06-10 16:34:25 +02:00
tastytea 93298e5301
Splitted export header.
continuous-integration/drone/push Build is passing Details
2019-06-06 18:56:49 +02:00
tastytea 00aa9ffd47
Refactored Netscape bookmarks export.
continuous-integration/drone/push Build is failing Details
2019-06-06 17:11:56 +02:00
tastytea 8ff0d39927
AsciiDoc export: Group tags only if there are more than 20. 2019-06-06 16:59:45 +02:00
tastytea 17b33eacbf
Refactored AsciiDoc export more, escape in titles.
Fixes #1.
2019-06-06 16:51:13 +02:00
tastytea 98bb87ed93
Refactored AsciiDoc export into a class. 2019-06-06 16:16:57 +02:00
tastytea 008a5fe0f2
Refactored CSV export. 2019-06-06 16:06:25 +02:00
tastytea 885148ea97
Put tags that are used only once under the header “Less used tags”.
continuous-integration/drone/push Build is passing Details
2019-05-28 21:40:26 +02:00
tastytea 747ba749e8
Added bookmark export. 2019-05-26 15:57:01 +02:00
tastytea 8cd33bb083
Changed variable to prevent shadowing. 2019-05-25 16:06:16 +02:00
tastytea 9196585a98
Added date after title in tags section of AsciiDoc export.
continuous-integration/drone/push Build is passing Details
2019-05-24 23:53:01 +02:00
tastytea a169370066
Added comment.
continuous-integration/drone/push Build is passing Details
2019-05-23 13:42:28 +02:00
tastytea c7165f7ffe
Repalced regex in URI::remove_newlines() with search & replace. 2019-05-23 13:41:47 +02:00
tastytea 92f87fb85b
Changed AsciiDoc export. Each thing is now a list item.
continuous-integration/drone/push Build is passing Details
The structure makes more sense, looks better in text browsers.
2019-05-23 12:06:27 +02:00
tastytea 8275db6687
Remove leading and trailing spaces from tags.
continuous-integration/drone/push Build is passing Details
2019-05-22 15:13:10 +02:00
tastytea 162ff88163
Made searches case insensitive. 2019-05-22 13:30:42 +02:00
tastytea f94d6a2229
Set locale globally. 2019-05-22 12:25:06 +02:00
tastytea 8b84429c94
Changed -S, --span to -T, --time-span,
continuous-integration/drone/push Build is passing Details
and added -S as short option for --search-all.
2019-05-22 09:54:56 +02:00
tastytea 8e75e7bfbf
Added option to not archive page.
continuous-integration/drone/push Build is passing Details
2019-05-22 09:43:58 +02:00
tastytea 50f2007291
Fixed tag list in AsciiDoc-export if entry has no title. 2019-05-21 15:26:20 +02:00
tastytea feab1e8769
Forgot newline after error message. 2019-05-21 11:59:58 +02:00
tastytea 02aae04cf5
Replaced more characters for tag anchors, prepend t_ to tag anchors.
continuous-integration/drone/push Build is passing Details
2019-05-20 13:13:26 +02:00
tastytea 32040c277c
Replaced more regular expressions with search & replace.
continuous-integration/drone/push Build is passing Details
2019-05-20 10:50:49 +02:00
tastytea 344e77d8bf
Replace more characters for tag-anchors.
Asciidoctor doesn't like ₀-₉ and ⁰-⁹.
2019-05-20 10:49:15 +02:00
tastytea da4931ab2f
Made tag-sorting locale-aware.
continuous-integration/drone/push Build is failing Details
2019-05-19 19:19:51 +02:00
tastytea 679a335b63
Updated usage line.
continuous-integration/drone/push Build is passing Details
2019-05-19 13:03:53 +02:00
tastytea da5ff47396
Ruled out duplicates when searching. 2019-05-19 12:47:38 +02:00
tastytea 26623cc95b
Confused option description with default value for --search-all. 2019-05-19 11:52:31 +02:00
tastytea 896d0e7734
Added option to search in tags, titles, descriptions and full texts. 2019-05-19 10:56:03 +02:00
tastytea ef145b2b00
Added option to search for tags.
continuous-integration/drone/push Build is passing Details
2019-05-19 09:42:52 +02:00
tastytea 3d19b9a1d2
Sort tags by number of occurrences first, then alphabetically.
continuous-integration/drone/push Build is passing Details
2019-05-18 15:13:27 +02:00
tastytea 6036e6c35d
Return error if fulltext is empty. 2019-05-18 13:51:41 +02:00
tastytea 3c8f9d8c7f
Print error message if archiving fails.
continuous-integration/drone/push Build is passing Details
2019-05-18 12:46:58 +02:00
tastytea 8e4d70985d
Added set_curlpp_options() to set common curlpp options. 2019-05-18 07:54:22 +02:00
tastytea f57f2bf578
Fixed AsciiDoc export.
continuous-integration/drone/push Build is passing Details
It was not formatted correctly if descriptions were missing.
2019-05-18 03:03:37 +02:00
tastytea 28503cc3bd
Only attempt to extract title and description from HTML files.
continuous-integration/drone/push Build is failing Details
2019-05-18 01:57:07 +02:00
tastytea 662fe22df4
Modified AsciiDoc output a bit.
continuous-integration/drone/push Build is passing Details
Seconds are no longer included in times, the link to the archived
version comes directly after the time and tags are separated by a |.
2019-05-17 11:13:39 +02:00
tastytea 887d6bd0ca
That last newline was not necessary. 2019-05-17 08:07:32 +02:00
tastytea 751e6b2d12
Oops, forgot a ;.
continuous-integration/drone/push Build is passing Details
2019-05-17 05:54:30 +02:00
tastytea f9563cddcd
Replaced regular expressions in with find & replace, where possible.
continuous-integration/drone/push Build is failing Details
2019-05-17 05:43:17 +02:00
tastytea c7f35db5d9
Added tests for the URI class.
continuous-integration/drone/push Build is passing Details
2019-05-17 03:00:47 +02:00
tastytea 15af9633bf
Fixed off-by-one bug in remove_html_tags(). 2019-05-17 03:00:07 +02:00
tastytea a08d305ab6
Adding tests for AsciiDoc export. 2019-05-17 01:42:49 +02:00
tastytea 3f3964973a
Fixed array initialisation for gcc-5.
continuous-integration/drone/push Build is failing Details
2019-05-17 00:30:03 +02:00
tastytea d4314c3f1c
Changed short option for --span from -s to -S. 2019-05-17 00:04:24 +02:00
tastytea 0cf8c65c40
Removed --sort. 2019-05-16 12:55:54 +02:00
tastytea e65fb77722
Cosmetic changes. 2019-05-16 12:53:32 +02:00
tastytea 81f7feb044
List things by tag. 2019-05-16 12:39:22 +02:00
tastytea 1c5927666d
Fixed segfault with pages on https://freitag.de/. 2019-05-16 12:03:09 +02:00
tastytea a3259626ff
Added AsciiDoc support. 2019-05-16 09:41:20 +02:00
tastytea 914d22569f
Renamed URL to URI. 2019-05-16 08:37:38 +02:00
tastytea 3e4ee6985f
Sort newest to oldest. 2019-05-16 07:54:24 +02:00
tastytea 563690dba9
Only attempt to archive URL if it begins with http. 2019-05-16 07:53:28 +02:00
tastytea bb9cff2992
Made CSV expoer RFC 4180 compliant. 2019-05-16 03:56:17 +02:00
tastytea dfc382b92c
CSV: Enclose everything in "". 2019-05-16 00:52:05 +02:00
tastytea d95a9a1255
Print only 1 CSV header. 2019-05-16 00:45:06 +02:00
tastytea 1c336bba29
There was 1 / too many. 2019-05-16 00:41:06 +02:00
tastytea f5e3e6af49
CSV header. 2019-05-16 00:33:28 +02:00
tastytea b6dffa9c7b
Filter by time-span in export. 2019-05-16 00:26:48 +02:00
tastytea 2c27a352a2
Export as CSV to stdout. 2019-05-16 00:13:26 +02:00
tastytea df69efbbb7
Print function name in error messages. 2019-05-16 00:04:49 +02:00
tastytea c17b7e89f1
Allow conversion from/to SQLite datetime. 2019-05-16 00:03:57 +02:00
tastytea f636215b8d
Aliased system_clock::time_point to time_point. 2019-05-15 22:41:48 +02:00
tastytea 91ab718099
Put global types in types.hpp. 2019-05-15 22:40:02 +02:00
tastytea cc912b8a36
Archive URLs. 2019-05-15 22:24:11 +02:00
tastytea 1c39c8ac86
Fetch page, extract title, description and full text. 2019-05-15 07:04:12 +02:00
tastytea a1e3c57da2
Storing URL & time & tags in the database works. 2019-05-14 22:57:51 +02:00
tastytea b7332de342
Added --sort. 2019-05-14 22:56:58 +02:00
tastytea 8ec8a1a558
Moved time functions into own files. 2019-05-14 22:13:58 +02:00
tastytea 76548146c0
Added rudimentary SQLite support. 2019-05-14 20:45:48 +02:00
tastytea bf135b28b6
Added url to options. 2019-05-13 02:33:43 +02:00
tastytea 6c7a4d6685
Enhanced help message. 2019-05-13 02:33:05 +02:00
tastytea 17522d6757
Replaced exit with return. 2019-05-12 20:19:00 +02:00
tastytea 5cd5740fd0
Option parsing is hereby implemented. 2019-05-12 00:26:04 +02:00
tastytea 5e41f19cd3
Laid out the project structure. 2019-05-11 02:52:33 +02:00