From 7c68b20115af8212f0cd57b93bbcad873b1c8d2f Mon Sep 17 00:00:00 2001 From: Takase <20792268+takase1121@users.noreply.github.com> Date: Wed, 23 Oct 2024 00:43:50 +0800 Subject: [PATCH] feat(core.emptyview): add name to emptyview (#1569) * feat(core.emptyview): add name to emptyview * fix(core.emptyview): set filename to empty --- data/core/emptyview.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/data/core/emptyview.lua b/data/core/emptyview.lua index 2152da3..865dc55 100644 --- a/data/core/emptyview.lua +++ b/data/core/emptyview.lua @@ -6,6 +6,14 @@ local View = require "core.view" ---@field super core.view local EmptyView = View:extend() +function EmptyView:get_name() + return "Get Started" +end + +function EmptyView:get_filename() + return "" +end + local function draw_text(x, y, color) local lines = { { fmt = "%s to run a command", cmd = "core:find-command" },