From 1f367593686bd1619ad94b669a65559ef8afb582 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+orbitalquark@users.noreply.github.com> Date: Thu, 8 Oct 2020 14:01:36 -0400 Subject: Added `textadept.history` module for recording and navigating position history. --- modules/textadept/menu.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'modules/textadept/menu.lua') diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua index b69a9f7b..1c7aa4b1 100644 --- a/modules/textadept/menu.lua +++ b/modules/textadept/menu.lua @@ -131,6 +131,14 @@ local default_menubar = { {_L['Move Selected Lines Up'], buffer.move_selected_lines_up}, {_L['Move Selected Lines Down'], buffer.move_selected_lines_down} }, + { + title = _L['History'], + {_L['Navigate Backward'], textadept.history.back}, + {_L['Navigate Forward'], textadept.history.forward}, + {_L['Record Location'], textadept.history.record}, + SEPARATOR, + {_L['Clear History'], textadept.history.clear} + }, SEPARATOR, {_L['Preferences'], function() io.open_file(_USERHOME .. '/init.lua') end} }, -- cgit v1.2.3