From 95d4b768819171d0115bded82b30977dfbe26bfc Mon Sep 17 00:00:00 2001 From: bptato Date: Sun, 15 Dec 2024 16:04:16 +0100 Subject: chabookmark fixes & improvements * correct action on M-b * add external.bookmark option * move openFileExpand functionality into unquote * add menu items * update docs --- src/server/loader.nim | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/server/loader.nim') diff --git a/src/server/loader.nim b/src/server/loader.nim index 45c41f1c..60e37610 100644 --- a/src/server/loader.nim +++ b/src/server/loader.nim @@ -272,6 +272,7 @@ type tmpdir*: string sockdir*: string configdir*: string + bookmark*: string func isPrivileged(ctx: LoaderContext; client: ClientData): bool = return ctx.pagerClient == client @@ -1428,6 +1429,7 @@ proc initLoaderContext(fd: cint; config: LoaderConfig): LoaderContext = putEnv("CHA_INSECURE_SSL_NO_VERIFY", "0") putEnv("CHA_TMP_DIR", config.tmpdir) putEnv("CHA_CONFIG_DIR", config.configdir) + putEnv("CHA_BOOKMARK", config.bookmark) return ctx # This is only called when an OutputHandle could not read enough of one (or -- cgit 1.4.1-2-gfad0