From aa0a8ba327be09ae68dbb7828a35a28846926fdc Mon Sep 17 00:00:00 2001 From: Matt Mascarenhas Date: Tue, 3 Jul 2018 15:26:17 +0100 Subject: [PATCH] cinera: Single browser tab and no autofocus mode This allows search result links to open in the same tab, and prevents automatic scrolling to the search input box on page load --- cinera/cinera.c | 35 ++++++++++++++++++++++++----------- cinera/cinera_search.js | 5 ++++- 2 files changed, 28 insertions(+), 12 deletions(-) diff --git a/cinera/cinera.c b/cinera/cinera.c index c534ebf..c41279e 100644 --- a/cinera/cinera.c +++ b/cinera/cinera.c @@ -16,7 +16,7 @@ typedef struct version CINERA_APP_VERSION = { .Major = 0, .Minor = 5, - .Patch = 63 + .Patch = 64 }; // TODO(matt): Copy in the DB 3 stuff from cinera_working.c @@ -92,6 +92,7 @@ enum MODE_EXAMINE = 1 << 2, MODE_NOCACHE = 1 << 3, MODE_NOPRIVACY = 1 << 4, + MODE_SINGLETAB = 1 << 5 } modes; enum @@ -2290,9 +2291,6 @@ PrintUsage(char *BinaryLocation, config *DefaultConfig) "\e[0m -s