2020-04-29 19:01:59 +00:00
|
|
|
--[[
|
|
|
|
/*
|
|
|
|
* MODULE
|
|
|
|
*/
|
2020-05-01 23:14:40 +00:00
|
|
|
--]]
|
2020-05-15 05:47:53 +00:00
|
|
|
|
2020-05-26 03:25:16 +00:00
|
|
|
local libmodal = require('libmodal/src')
|
2020-04-29 19:01:59 +00:00
|
|
|
|
2020-05-23 03:18:54 +00:00
|
|
|
--[[
|
|
|
|
/*
|
|
|
|
* MIRRORS
|
|
|
|
*/
|
|
|
|
--]]
|
|
|
|
|
2020-05-26 19:48:44 +00:00
|
|
|
libmodal.layer = {['enter'] = function(keymap)
|
|
|
|
local layer = libmodal.Layer.new(keymap)
|
2020-05-24 23:32:13 +00:00
|
|
|
layer:enter()
|
2020-05-26 00:10:16 +00:00
|
|
|
return function() layer:exit() end
|
2020-05-24 23:32:13 +00:00
|
|
|
end}
|
|
|
|
|
2020-05-23 03:18:54 +00:00
|
|
|
libmodal.mode = {['enter'] = function(name, instruction, ...)
|
|
|
|
libmodal.Mode.new(name, instruction, ...):enter()
|
|
|
|
end}
|
|
|
|
|
|
|
|
libmodal.prompt = {['enter'] = function(name, instruction, ...)
|
|
|
|
libmodal.Prompt.new(name, instruction, ...):enter()
|
|
|
|
end}
|
|
|
|
|
|
|
|
|
2020-05-02 04:57:42 +00:00
|
|
|
--[[
|
|
|
|
/*
|
2020-04-29 19:01:59 +00:00
|
|
|
* PUBLICIZE MODULE
|
2020-05-02 04:57:42 +00:00
|
|
|
*/
|
|
|
|
--]]
|
2020-05-15 05:47:53 +00:00
|
|
|
|
2020-04-29 19:01:59 +00:00
|
|
|
return libmodal
|