From 8c03fe4601e983a9d8003a7c2f5bc20c614e2288 Mon Sep 17 00:00:00 2001 From: Rene Schallner Date: Thu, 9 Dec 2021 22:39:33 +0100 Subject: [PATCH] fix: following a [hyperlink](https://.....) will now not result in an error but search for `hyperlink`. Support for external links is planned. --- lua/telekasten.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lua/telekasten.lua b/lua/telekasten.lua index 657f600..8e88dea 100644 --- a/lua/telekasten.lua +++ b/lua/telekasten.lua @@ -68,9 +68,16 @@ M.Cfg = { -- tag notation: '#tag', ':tag:', 'yaml-bare' tag_notation = "#tag", + + -- command palette theme: dropdown (window) or ivy (bottom panel) + command_palette_theme = "ivy", } local function file_exists(fname) + if fname == nil then + return false + end + local f = io.open(fname, "r") if f ~= nil then io.close(f)