DKL9 GitList
Repositories
DKL9 home
memoire
Code
Commits
Branches
Tags
Search
Tree:
3949c09
Branches
Tags
master
memoire
src
toggle.lua
Move Lua source code into src/ directory
John Smith
commited
3949c09
at 2023-133 18:56:28
toggle.lua
Blame
History
Raw
local function fn(config, deck, _, ip) local sp = deck[ip[1]][ip[2]] local dir if sp.delay < 0 then dir = "Restoring" else dir = "Suspending" end io.write(string.format("%s %s\n", dir, sp)) sp.delay = -sp.delay return deck end return { desc = "(t)oggle suspension of prompt (with card:prompt index)", nd = true, ni = true, fn = fn }