From 554fb009f8c4b403c86aa4c9b9e07a02650f9a01 Mon Sep 17 00:00:00 2001 From: sammyette Date: Tue, 24 Oct 2023 23:38:19 -0400 Subject: [PATCH] fix(greenhouse): add enter bind to goto page on table of contents --- nature/greenhouse/init.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nature/greenhouse/init.lua b/nature/greenhouse/init.lua index 673b809..604ed5b 100644 --- a/nature/greenhouse/init.lua +++ b/nature/greenhouse/init.lua @@ -27,6 +27,12 @@ function Greenhouse:new(sink) ['Ctrl-Left'] = self.previous, ['Ctrl-Right'] = self.next, ['Ctrl-N'] = function(self) self:toc(true) end, + ['Enter'] = function(self) + if self.isSpecial then + self:jump(self.specialPageIdx) + self:special(false) + end + end } self.isSpecial = false self.specialPage = nil