From a76daa88a9745a2ae93ee672ebe3dd3ca328d09c Mon Sep 17 00:00:00 2001 From: arne314 <73391160+arne314@users.noreply.github.com> Date: Mon, 4 Aug 2025 13:07:11 +0200 Subject: [PATCH] minor(draw): rename rnote open command config --- README.md | 2 +- lua/typstar/config.lua | 2 +- lua/typstar/drawings.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cf1de6e..294eea4 100644 --- a/README.md +++ b/README.md @@ -171,7 +171,7 @@ require('typstar').setup({ -- depending on your neovim plugin system ### Rnote 1. Install [Rnote](https://github.com/flxzt/rnote?tab=readme-ov-file#installation); I recommend not using flatpak as that might cause issues with file permissions. 2. Make sure `rnote-cli` is available in your `PATH` or set a different command at `exportCommand` in the [config](#configuration) -3. Have the `xdg-open` command working with Rnote files or set a different command at `openCommand` in the [config](#configuration) +3. Have the `xdg-open` command working with Rnote files or set a different command at `uriOpenCommand` in the [config](#configuration) 4. See comment 4 above at Excalidraw ### Anki diff --git a/lua/typstar/config.lua b/lua/typstar/config.lua index 4e11e35..60ca39e 100644 --- a/lua/typstar/config.lua +++ b/lua/typstar/config.lua @@ -22,7 +22,7 @@ local default_config = { filename = 'drawing-%Y-%m-%d-%H-%M-%S', fileExtension = '.rnote', fileExtensionInserted = '.rnote.svg', -- valid rnote export type - openCommand = 'xdg-open', -- see comment above for excalidraw + uriOpenCommand = 'xdg-open', -- see comment above for excalidraw templatePath = {}, }, snippets = { diff --git a/lua/typstar/drawings.lua b/lua/typstar/drawings.lua index cdb5555..bfcb56f 100644 --- a/lua/typstar/drawings.lua +++ b/lua/typstar/drawings.lua @@ -42,7 +42,7 @@ end local function launch_rnote(path, path_inserted) print(string.format('Opening %s in Rnote', path)) - utils.run_shell_command(string.format('%s %s', config_rnote.openCommand, path), false) + utils.run_shell_command(string.format('%s %s', config_rnote.uriOpenCommand, path), false) auto_export_rnote(path, path_inserted) end