summaryrefslogtreecommitdiff
path: root/src/prefs.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-04-23 23:30:55 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-04-23 23:30:55 +0300
commit770b06f6755b7ac87d397b6ea823214b5d35f5d6 (patch)
tree48dea4069e3eda108e4bb5c92257d1298aa4721e /src/prefs.c
parentb0e0160ef5d8624d855d7226529e04c1b37ea05b (diff)
File URLs support directories and ZIP archives
One is now able to view directory and ZIP archive contents using file URLs. Directory contents are shown as a list of links, enabling previewing supported formats. A link to the parent directory is included at the top of the page. ZIP archives behave like directories, except they also recognize "index.gmi" and "index.gemini" files and display them instead of the regular directory index (when viewing a directory inside a ZIP archive). This enables archiving a Gemini capsule and browsing it as a ZIP archive. Added a preference to disable loading of index pages.
Diffstat (limited to 'src/prefs.c')
-rw-r--r--src/prefs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/prefs.c b/src/prefs.c
index 4c1d8dc2..e26efaba 100644
--- a/src/prefs.c
+++ b/src/prefs.c
@@ -41,6 +41,7 @@ void init_Prefs(iPrefs *d) {
41 d->smoothScrolling = iTrue; 41 d->smoothScrolling = iTrue;
42 d->loadImageInsteadOfScrolling = iFalse; 42 d->loadImageInsteadOfScrolling = iFalse;
43 d->collapsePreOnLoad = iFalse; 43 d->collapsePreOnLoad = iFalse;
44 d->openArchiveIndexPages = iTrue;
44 d->decodeUserVisibleURLs = iTrue; 45 d->decodeUserVisibleURLs = iTrue;
45 d->maxCacheSize = 10; 46 d->maxCacheSize = 10;
46 d->font = nunito_TextFont; 47 d->font = nunito_TextFont;