mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-11 04:33:48 +01:00
Document database setting
... and add null as possible values. Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
3285d61a99
commit
eb5010789b
@ -208,12 +208,12 @@ zathura_init(zathura_t* zathura)
|
|||||||
zathura->database = zathura_sqldatabase_new(tmp);
|
zathura->database = zathura_sqldatabase_new(tmp);
|
||||||
g_free(tmp);
|
g_free(tmp);
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else if (g_strcmp0(database, "null") != 0) {
|
||||||
girara_error("Database backend '%s' is not supported.", database);
|
girara_error("Database backend '%s' is not supported.", database);
|
||||||
}
|
}
|
||||||
g_free(database);
|
g_free(database);
|
||||||
|
|
||||||
if (zathura->database == NULL) {
|
if (zathura->database == NULL && g_strcmp0(database, "null") != 0) {
|
||||||
girara_error("Unable to initialize database. Bookmarks won't be available.");
|
girara_error("Unable to initialize database. Bookmarks won't be available.");
|
||||||
} else {
|
} else {
|
||||||
g_object_set(zathura->ui.session->command_history, "io", zathura->database, NULL);
|
g_object_set(zathura->ui.session->command_history, "io", zathura->database, NULL);
|
||||||
|
@ -634,6 +634,15 @@ Defines if the number of pages per row should be honored when advancing a page.
|
|||||||
* Value type: Boolean
|
* Value type: Boolean
|
||||||
* Default value: false
|
* Default value: false
|
||||||
|
|
||||||
|
database
|
||||||
|
^^^^^^^^
|
||||||
|
Defines the database backend to use for bookmarks and input history. Possible
|
||||||
|
values are "plain", "sqlite" (if built with sqlite support) and "null". If
|
||||||
|
"null" is used, bookmarks and input history will not be stored.
|
||||||
|
|
||||||
|
* Value type: String
|
||||||
|
* Default value: plain
|
||||||
|
|
||||||
incremental-search
|
incremental-search
|
||||||
^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^
|
||||||
En/Disables incremental search (search while typing).
|
En/Disables incremental search (search while typing).
|
||||||
|
Loading…
Reference in New Issue
Block a user