App-Prima-REPL
view release on metacpan or search on metacpan
bin/prima-repl view on Meta::CPAN
behave like the default multiline buffer editor. For example, it turns on
syntax highlighting, sets a monospace font, and sets the default accelerator
keys. Although not strictly necessary for creating tabs, it may be useful if
you want to create a tab with both an editor and some other sort of widget,
side-by-side, as is done in L<App::Prima::REPL::Talk>.
This function does not set the widget as the tab's default widget, since you
may want the default widget to be something else. You should explicitly invoke
C<REPL::change_default_widget> (above) to do that.
The endowed editor has named key bindings that you can overwrite:
CtrlReturn CtrlShiftReturn
CtrlEnter CtrlShiftEnter
CtrlPageDown CtrlPageUp
You can override these commands with something like this:
# Update ctrl-return/ctrl-edit for the editor
$editor->accelTable->insert([
# Ctrl-Enter runs the file
( run in 1.087 second using v1.01-cache-2.11-cpan-2398b32b56e )