App-EditorTools

 view release on metacpan or  search on metacpan

lib/App/EditorTools/Emacs.pod  view on Meta::CPAN

SYNOPIS) you can use the mappings below speed editing/refactoring your
Perl code. See L<App::EditorTools> for a description of each refactoring
routine.

=head1 MAPPINGS

=over 4

=item TODO

EditorToolsMenu - brings up a menu to choose the following routines

=item C-c e r

RenameVariable - see L<App::EditorTools>

=item TODO

RenamePackageFromPath - see L<App::EditorTools>

=item C-c e t

lib/App/EditorTools/Vim.pod  view on Meta::CPAN

SYNOPIS) you can use the mappings below speed editing/refactoring your
Perl code. See L<App::EditorTools> for a description of each refactoring
routine.

=head1 MAPPINGS

=over 4

=item ,pp

EditorToolsMenu - Brings up a menu to choose the following routines

=item ,pL

RenameVariable - Placing the cursor over a variable and pressing this
mapping will prompt for a new variable name, then rename all occurrences
of the varialbe within that lexical scope to the new name.

See L<App::EditorTools> for more.

=item ,pI

share/vim/editortools.vim  view on Meta::CPAN

" Only do this when not done yet for this buffer
if exists("b:did_editortools_ftplugin")
    finish
endif
let b:did_editortools_ftplugin = 1

map <buffer> <leader>pp :call EditorToolsMenu()<cr>
map <buffer> <leader>pL :call RenameVariable()<cr>
map <buffer> <leader>pP :call RenamePackageFromPath()<cr>
map <buffer> <leader>pI :call IntroduceTemporaryVariable()<cr>

function! EditorToolsMenu()
    let list = [ "RenameVariable", "RenamePackageFromPath", "IntroduceTemporaryVariable" ]
    let command = PickFromList( "EditorTools Command", list )
    if command == ""
        echo "cancelling"
        return
    endif

    let Fn = function(command)
    call Fn()
endfunction



( run in 0.530 second using v1.01-cache-2.11-cpan-49f99fa48dc )