mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-06 18:54:44 +08:00
rename: refactor into do_rename, add rename_visual
This adds a visual mode map for renaming, which asks for the new name via input(). `rename` itself could be changed to use `input()`, too - but I've left it for now.
This commit is contained in:
@@ -19,6 +19,7 @@ if g:jedi#auto_initialization
|
||||
" rename
|
||||
if g:jedi#rename_command != ''
|
||||
execute "nnoremap <buffer> ".g:jedi#rename_command." :call jedi#rename()<CR>"
|
||||
execute "vnoremap <buffer> ".g:jedi#rename_command." :call jedi#rename_visual()<CR>"
|
||||
endif
|
||||
" documentation/pydoc
|
||||
if g:jedi#documentation_command != ''
|
||||
|
||||
Reference in New Issue
Block a user