1Padre::QuickFix(3)    User Contributed Perl Documentation   Padre::QuickFix(3)
2
3
4

NAME

6       Padre::QuickFix - Padre Quick Fix Provider API
7

DESCRIPTION

9   Quick Fix (Shortcut: "Ctrl+2")
10       This opens a dialog that lists different actions that relate to fixing
11       the code at the cursor. It will call event_on_quick_fix method passing
12       a Padre::Wx::Editor object on the current Padre document.  Please see
13       the following sample implementation:
14
15               sub quick_fix_list {
16                       my ($self, $editor) = @_;
17
18                       my @items = (
19                               {
20                                       text     => '123...',
21                                       listener => sub {
22                                               print "123...\n";
23                                       }
24                               },
25                               {
26                                       text     => '456...',
27                                       listener => sub {
28                                               print "456...\n";
29                                       }
30                               },
31                       );
32
33                       return @items;
34               }
35
36
37
38perl v5.30.0                      2019-07-26                Padre::QuickFix(3)
Impressum