Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
67 lines (39 sloc) 1.38 KB

NAME

Devel::REPL::Plugin::Editor - Add #edit command to drop into an editor for longer expressions

VERSION

version 0.02

SYNOPSIS

# in ~/.re.pl/repl.rc
$_REPL->load_plugin('Editor');

DESCRIPTION

This plugin adds an edit command to your REPL, invoked using #edit (or using whatever "default_command_prefix" in Devel::REPL::Plugin::Turtles is). When you run the the edit command, the REPL drops you into $ENV{'EDITOR'}, and the code you type in that file is executed after you exit the editor. edit accepts an optional filename as the file to edit. If you don't provide one, a temporary one will be created; you can open it again with the #redit command.

SEE ALSO

Devel::REPL

AUTHOR

Rob Hoelz <rob@hoelz.ro>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Rob Hoelz.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

BUGS

Please report any bugs or feature requests on the bugtracker website https://github.com/hoelzro/devel-repl-plugin-editor/issues

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.