diff options
author | mitchell <70453897+667e-11@users.noreply.github.com> | 2020-08-23 18:24:10 -0400 |
---|---|---|
committer | mitchell <70453897+667e-11@users.noreply.github.com> | 2020-08-23 18:24:10 -0400 |
commit | 63648dbe99b908e7c6a5259f4027cb54b1e698ff (patch) | |
tree | 16d596596d67f94a9a6920d5b1ffdc5024e434c9 /modules | |
parent | e326775782bc8b9b0e004d5134d602b26ffeb3a5 (diff) |
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')
-rw-r--r-- | modules/textadept/keys.lua | 7 | ||||
-rw-r--r-- | modules/textadept/menu.lua | 4 |
2 files changed, 8 insertions, 3 deletions
diff --git a/modules/textadept/keys.lua b/modules/textadept/keys.lua index 61e0356a..f4479ded 100644 --- a/modules/textadept/keys.lua +++ b/modules/textadept/keys.lua @@ -59,6 +59,7 @@ local M = {} -- Alt+{ |^{ |M-} |Enclose in braces -- Ctrl+Shift+Up |^⇧⇡ |S-^Up |Move selected lines up -- Ctrl+Shift+Down |^⇧⇣ |S-^Down |Move selected lines down +-- Ctrl+P |⌘, |M-~ |Preferences -- **Search** | | | -- Ctrl+F |⌘F |M-F<br/>M-S-F|Find -- Ctrl+G<br/>F3 |⌘G |M-G |Find next @@ -213,10 +214,10 @@ local M = {} -- ‡: Ctrl+Enter in Windows terminal version. module('textadept.keys')]] --- Windows and Linux key bindings. +-- Windows, Linux, and BSD key bindings. -- -- Unassigned keys (~ denotes keys reserved by the operating system): --- c: C H I p Q T ~ V Y _ ) ] } + +-- c: C H I Q T ~ V Y _ ) ] } + -- a: aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ_ ) ] } *+-/=\n\s -- ca: aAbBcCdD F H jJkKlLmM N qQ t xXy zZ_"'()[]{}<>* / \n\s -- @@ -335,6 +336,8 @@ local bindings = { {'ctrl+shift+up', 'ctrl+shift+up', 'ctrl+shift+up'}, [buffer.move_selected_lines_down] = {'ctrl+shift+down', 'ctrl+shift+down', 'ctrl+shift+down'}, + -- Preferences + [m_edit[_L['Preferences']][2]] = {'ctrl+p', 'cmd+,', 'meta+~'}, -- Search. [m_search[_L['Find']][2]] = {'ctrl+f', 'cmd+f', {'meta+f', 'meta+F'}}, 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'], |