aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/menu.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2020-08-23 18:24:10 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2020-08-23 18:24:10 -0400
commit63648dbe99b908e7c6a5259f4027cb54b1e698ff (patch)
tree16d596596d67f94a9a6920d5b1ffdc5024e434c9 /modules/textadept/menu.lua
parente326775782bc8b9b0e004d5134d602b26ffeb3a5 (diff)
downloadtextadept-63648dbe99b908e7c6a5259f4027cb54b1e698ff.tar.gz
textadept-63648dbe99b908e7c6a5259f4027cb54b1e698ff.zip
Added "Edit > Preferences" menu item and key binding for opening user init.lua.
Also changed the mnemonic for "Edit > Filter Through" in the process.
Diffstat (limited to 'modules/textadept/menu.lua')
-rw-r--r--modules/textadept/menu.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua
index 13f52197..198dda73 100644
--- a/modules/textadept/menu.lua
+++ b/modules/textadept/menu.lua
@@ -130,7 +130,9 @@ local default_menubar = {
SEPARATOR,
{_L['Move Selected Lines Up'], buffer.move_selected_lines_up},
{_L['Move Selected Lines Down'], buffer.move_selected_lines_down}
- }
+ },
+ SEPARATOR,
+ {_L['Preferences'], function() io.open_file(_USERHOME .. '/init.lua') end}
},
{
title = _L['Search'],