mirror of
https://github.com/Ascyii/typstar.git
synced 2026-01-01 05:24:24 -05:00
docs(draw): rnote usage and installation
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
local M = {}
|
||||
|
||||
local default_config = {
|
||||
typstarRoot = nil,
|
||||
typstarRoot = nil, -- typstar installation location required to use default drawing templates (usually determined automatically)
|
||||
anki = {
|
||||
typstarAnkiCmd = 'typstar-anki',
|
||||
typstCmd = 'typst',
|
||||
@@ -22,7 +22,7 @@ local default_config = {
|
||||
filename = 'drawing-%Y-%m-%d-%H-%M-%S',
|
||||
fileExtension = '.rnote',
|
||||
fileExtensionInserted = '.rnote.svg', -- valid rnote export type
|
||||
uriOpenCommand = 'xdg-open', -- see comment above for excalidraw
|
||||
openCommand = 'xdg-open', -- see comment above for excalidraw
|
||||
templatePath = {},
|
||||
},
|
||||
snippets = {
|
||||
|
||||
@@ -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.uriOpenCommand, path), false)
|
||||
utils.run_shell_command(string.format('%s %s', config_rnote.openCommand, path), false)
|
||||
auto_export_rnote(path, path_inserted)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user