fd50b7deb9
Provide a portable, cache-ignored Obsidian vault lookup plugin and bind it to Super+N.
18 lines
314 B
Lua
18 lines
314 B
Lua
--!strict
|
|
|
|
local PANEL_ID = "alex/knowledge-lookup:panel"
|
|
|
|
function update()
|
|
barWidget.setGlyph("book-2")
|
|
barWidget.setText("KB")
|
|
barWidget.setTooltip("Knowledge lookup · Super+N")
|
|
end
|
|
|
|
function onClick()
|
|
noctalia.togglePanel(PANEL_ID)
|
|
end
|
|
|
|
function onRightClick()
|
|
noctalia.runAsync({ "obsidian" })
|
|
end
|