From e463ba8959d620f606a468c88580f325e774b970 Mon Sep 17 00:00:00 2001 From: Francesco Abbate Date: Fri, 19 Feb 2021 10:08:45 +0100 Subject: [PATCH] Add new toolbar buttons and tips --- data/plugins/toolbarview.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/data/plugins/toolbarview.lua b/data/plugins/toolbarview.lua index be7bdd5a..245a5da0 100644 --- a/data/plugins/toolbarview.lua +++ b/data/plugins/toolbarview.lua @@ -15,6 +15,8 @@ local toolbar_commands = { {symbol = "D", command = "core:open-file"}, {symbol = "S", command = "doc:save"}, {symbol = "L", command = "core:find-file"}, + {symbol = "B", command = "core:find-command"}, + {symbol = "P", command = "core:open-user-module"}, } @@ -87,6 +89,7 @@ function ToolbarView:on_mouse_moved(px, py, ...) for item, x, y, w, h in self:each_item() do if px > x and py > y and px <= x + w and py <= y + h then self.hovered_item = item + core.log(command.prettify_name(item.command)) break end end