Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork773
Add configurable prefix for rope commands#1137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
1 change: 1 addition & 0 deletionsAUTHORS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletionsdoc/pymode.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
36 changes: 19 additions & 17 deletionsplugin/pymode.vim
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
" vi: fdl=1 | ||
let g:pymode_version = "0.13.0" | ||
" Enable pymode by default :) | ||
call pymode#default('g:pymode', 1) | ||
call pymode#default('g:pymode_debug', 0) | ||
@@ -182,6 +183,7 @@ call pymode#default('g:pymode_breakpoint_cmd', '') | ||
" | ||
" Rope support | ||
call pymode#default('g:pymode_rope', 0) | ||
call pymode#default('g:pymode_rope_prefix', '<C-c>') | ||
" System plugin variable | ||
if g:pymode_rope | ||
@@ -210,7 +212,7 @@ if g:pymode_rope | ||
call pymode#default('g:pymode_rope_autoimport_modules', ['os', 'shutil', 'datetime']) | ||
" Bind keys to autoimport module for object under cursor | ||
call pymode#default('g:pymode_rope_autoimport_bind',g:pymode_rope_prefix . 'ra') | ||
" Automatic completion on dot | ||
call pymode#default('g:pymode_rope_complete_on_dot', 1) | ||
@@ -219,56 +221,56 @@ if g:pymode_rope | ||
call pymode#default('g:pymode_rope_completion_bind', '<C-Space>') | ||
diraol marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
" Bind keys for goto definition (leave empty for disable) | ||
call pymode#default('g:pymode_rope_goto_definition_bind',g:pymode_rope_prefix . 'g') | ||
" set command for open definition (e, new, vnew) | ||
call pymode#default('g:pymode_rope_goto_definition_cmd', 'new') | ||
" Bind keys for show documentation (leave empty for disable) | ||
call pymode#default('g:pymode_rope_show_doc_bind',g:pymode_rope_prefix . 'd') | ||
" Bind keys for find occurencies (leave empty for disable) | ||
call pymode#default('g:pymode_rope_find_it_bind',g:pymode_rope_prefix . 'f') | ||
" Bind keys for organize imports (leave empty for disable) | ||
call pymode#default('g:pymode_rope_organize_imports_bind',g:pymode_rope_prefix . 'ro') | ||
" Bind keys for rename variable/method/class in the project (leave empty for disable) | ||
call pymode#default('g:pymode_rope_rename_bind',g:pymode_rope_prefix . 'rr') | ||
" Bind keys for rename module | ||
call pymode#default('g:pymode_rope_rename_module_bind',g:pymode_rope_prefix . 'r1r') | ||
" Bind keys for convert module to package | ||
call pymode#default('g:pymode_rope_module_to_package_bind',g:pymode_rope_prefix . 'r1p') | ||
" Creates a new function or method (depending on the context) from the selected lines | ||
call pymode#default('g:pymode_rope_extract_method_bind',g:pymode_rope_prefix . 'rm') | ||
" Creates a variable from the selected lines | ||
call pymode#default('g:pymode_rope_extract_variable_bind',g:pymode_rope_prefix . 'rl') | ||
" Inline refactoring | ||
call pymode#default('g:pymode_rope_inline_bind',g:pymode_rope_prefix . 'ri') | ||
" Move refactoring | ||
call pymode#default('g:pymode_rope_move_bind',g:pymode_rope_prefix . 'rv') | ||
" Generate function | ||
call pymode#default('g:pymode_rope_generate_function_bind',g:pymode_rope_prefix . 'rnf') | ||
" Generate class | ||
call pymode#default('g:pymode_rope_generate_class_bind',g:pymode_rope_prefix . 'rnc') | ||
" Generate package | ||
call pymode#default('g:pymode_rope_generate_package_bind',g:pymode_rope_prefix . 'rnp') | ||
" Change signature | ||
call pymode#default('g:pymode_rope_change_signature_bind',g:pymode_rope_prefix . 'rs') | ||
" Tries to find the places in which a function can be used and changes the | ||
" code to call it instead | ||
call pymode#default('g:pymode_rope_use_function_bind',g:pymode_rope_prefix . 'ru') | ||
" Regenerate project cache on every save | ||
call pymode#default('g:pymode_rope_regenerate_on_write', 1) | ||
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.