refactor: begin to try to refactor frontend part
This commit is contained in:
27
lua/Trans/frontend/hover/execute.lua
Normal file
27
lua/Trans/frontend/hover/execute.lua
Normal file
@ -0,0 +1,27 @@
|
||||
local strategy = {
|
||||
play = function(self)
|
||||
print('TODO: play')
|
||||
end,
|
||||
pageup = function()
|
||||
print('TODO: pageup')
|
||||
end,
|
||||
pagedown = function()
|
||||
print('TODO: pagedown')
|
||||
end,
|
||||
pin = function()
|
||||
print('TODO: pin')
|
||||
end,
|
||||
close = function()
|
||||
print('TODO: close')
|
||||
end,
|
||||
toggle_entry = function()
|
||||
print('TODO: toggle_entry')
|
||||
end,
|
||||
}
|
||||
|
||||
|
||||
|
||||
return function(self, action)
|
||||
-- TODO :
|
||||
strategy[action](self)
|
||||
end
|
Reference in New Issue
Block a user