Skip to content

Commit d4c4d46

Browse files
committed
Updated key bindings to sync with upcoming Textadept 12.0 and support Qt mnemonics.
1 parent 65c2902 commit d4c4d46

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ Lines may be optionally prefixed with '=' (similar to the Lua prompt) to print a
1818

1919
## Functions defined by `lua_repl`
2020

21+
<a id="M.open"></a>
22+
### `M.open`(*new*)
23+
24+
Creates or switches to a Lua REPL.
25+
If *new* is `true`, creates a new REPL even if one already exists.
26+
27+
Parameters:
28+
29+
* *`new`*: Flag that indicates whether or not to create a new REPL even if one already exists.
30+
2131
<a id="lua_repl.complete_lua"></a>
2232
### `lua_repl.complete_lua`()
2333

init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ end
168168
-- @name keys
169169
M.keys = {
170170
['\n'] = M.evaluate_repl,
171-
[not (OSX and not CURSES) and 'ctrl+ ' or 'alt+esc'] = M.complete_lua,
171+
['ctrl+ '] = M.complete_lua,
172172
['ctrl+up'] = M.cycle_history_prev,
173173
['ctrl+down'] = M.cycle_history_next,
174174
['ctrl+p'] = M.cycle_history_prev,
@@ -211,7 +211,7 @@ function M.open(new)
211211
if new or not (repl_view or repl_buf) then
212212
buffer.new()._type = '[Lua REPL]'
213213
buffer:set_lexer('lua')
214-
buffer:add_text('-- ' .. _L['Lua REPL']:gsub('_', ''))
214+
buffer:add_text('-- ' .. _L['Lua REPL']:gsub('[_&]', ''))
215215
buffer:new_line()
216216
buffer:set_save_point()
217217
register_keys()

0 commit comments

Comments
 (0)