mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2026-11-01 02:06:22 +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:
1 parent
154e2dbae3
commit
4d67c1a6e3
3 files changed
+57
-38
No files matched your search
@@ -179,6 +179,10 @@ function! jedi#rename(...)
|
||||
PythonJedi jedi_vim.rename()
|
||||
endfunction
|
||||
|
||||
function! jedi#rename_visual(...)
|
||||
PythonJedi jedi_vim.rename_visual()
|
||||
endfunction
|
||||
|
||||
function! jedi#completions(findstart, base)
|
||||
PythonJedi jedi_vim.completions()
|
||||
endfunction
|
||||
|
||||
Reference in new issue
Block a user