Merge branch 'release/0.7.4b' · optionalg/python-mode@edb5b3b · GitHub
Skip to content

Commit edb5b3b

Browse files
committed
Merge branch 'release/0.7.4b'
2 parents 6acddb2 + efe4bb3 commit edb5b3b

12 files changed

Lines changed: 410 additions & 251 deletions

File tree

Changelog.rst

Lines changed: 1 addition & 1 deletion

autoload/pymode/lint.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ fun! pymode#lint#auto() "{{{
1111
PymodePython from pymode import auto
1212
PymodePython auto()
1313
cclose
14+
call g:PymodeSigns.clear()
1415
edit
1516
call pymode#wide_message("AutoPep8 done.")
1617
endfunction "}}}

autoload/pymode/rope.vim

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,11 @@ endfunction
5353

5454

5555
fun! pymode#rope#find_it()
56-
let l:output = []
56+
let loclist = g:PymodeLocList.current()
57+
let loclist._title = "Occurrences"
5758
call pymode#wide_message('Finding Occurrences ...')
5859
PymodePython rope.find_it()
59-
call pymode#wide_message('')
60-
if !empty(l:output)
61-
let loclist = g:PymodeLocList.current()
62-
let loclist._loclist = l:output
63-
let loclist._title = "Occurrences"
64-
call loclist.show()
65-
end
60+
call loclist.show()
6661
endfunction
6762

6863

autoload/pymode/tools/loclist.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ fun! g:PymodeLocList.show() "{{{
7474
execute max([min([line("$"), g:pymode_quickfix_maxheight]), g:pymode_quickfix_minheight]) . "wincmd _"
7575
if num != winnr()
7676
call setwinvar(winnr(), 'quickfix_title', self._title . ' <' . self._name . '>')
77-
wincmd p
77+
exe num . "wincmd w"
7878
endif
7979
end
8080
endfunction "}}}

doc/pymode.txt

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
(__) (__) (__) (_) (_)(_____)(_)\_) (_/\/\_)(_____)(____/(____) ~
77

88

9-
Version: 0.7.3b
9+
Version: 0.7.4b
1010

1111
==============================================================================
1212
CONTENTS *pymode-contents*
@@ -358,25 +358,25 @@ Turn on the rope script *'g:pymode_rope'*
358358
*:PymodeRopeRegenerate* -- Regenerate the project cache
359359

360360
Rope uses a folder inside projects for holding project configuration and data.
361-
Its default name is `.ropeproject` If the folder doesnt exists in current
362-
working directory, parent folders will be checked.
361+
Its default name is `.ropeproject`.
363362

364363
Currently it is used for things such as:
365364

366-
* There is a config.py file in this folder in which you can change project
367-
configurations. Have look at the default config.py file (s created when it
365+
* The config.py file in this folder contains project configuration. Have
366+
a look at the default config.py file (which is created when it
368367
does not exist) for more information.
369368
* It can be used for saving project history, so that the next time you open the
370369
project you can undo past changes.
371-
* It can be used for saving object information to help rope object inference.
372-
* It can be used for saving global names cache which is used in auto-import.
370+
* It can be used to save information about object inferences.
371+
* It can be used to save a global name cache, which is used for auto-import.
373372

374-
If ``.ropeproject`` is not found in the current directory, rope will walk
375-
upwards looking for a ``.ropeproject`` in every dir of the parent path. If
376-
rope finds ``.ropeproject`` in a parent dir, it sets the project for all child
377-
dirs and the scan may be slow for so many dirs and files.
373+
If `.ropeproject` is not found in the current directory, rope will look
374+
recursively for it in parent folders.
375+
Warning: If rope finds `.ropeproject` in a parent dir, it will use it with
376+
all its child directories, which may slow scanning down (because of many,
377+
possibly unrelated, files)
378378

379-
Enable search |.ropeproject| in parent's directories
379+
Enable searching for |.ropeproject| in parent directories
380380
*'g:pymode_rope_lookup_project'*
381381
>
382382
let g:pymode_rope_lookup_project = 1
@@ -385,7 +385,7 @@ Enable search |.ropeproject| in parent's directories
385385
Show documentation for element under cursor ~
386386

387387
Show documentation for object under cursor. *'g:pymode_rope_show_doc_bind'*
388-
Leave empty for disable key binding.
388+
Leave empty to disable the key binding.
389389
>
390390
let g:pymode_rope_show_doc_bind = '<C-c>d'
391391
@@ -397,18 +397,18 @@ Regenerate project cache on every save (if file has been modified)
397397
4.1 Completion ~
398398
*pymode-completion*
399399

400-
By default you could typing <Ctrl-Space> for autocompletion. Will be
400+
By default you can use <Ctrl-Space> for autocompletion. Will be
401401
automatically selected first entry and you can press <Return> to insert in
402402
your code. <C-X><C-O> and <C-P>/<C-N> works too.
403403

404-
Autocompletion is also called by typing a period in |Insert| mode.
404+
Autocompletion is also called by typing a period in |Insert| mode by default.
405405

406406

407407
Turn on code completion support in the plugin *'g:pymode_rope_completion'*
408408
>
409409
let g:pymode_rope_completion = 1
410410
411-
Turn on autocompletion when you typing a period
411+
Turn on autocompletion when typing a period
412412
*'g:pymode_rope_complete_on_dot'*
413413
>
414414
let g:pymode_rope_complete_on_dot = 1
@@ -417,8 +417,8 @@ Keymap for autocomplete *'g:pymode_rope_completion_bind'*
417417
>
418418
let g:pymode_rope_completion_bind = '<C-Space>'
419419
420-
Extended autocompletion (rope could complete objects wich hasnt be imported)
421-
from project *'g:pymode_rope_autoimport'*
420+
Extended autocompletion (rope could complete objects which have not been
421+
imported) from project *'g:pymode_rope_autoimport'*
422422
>
423423
let g:pymode_rope_autoimport = 1
424424

plugin/pymode.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
" vi: fdl=1
2-
let g:pymode_version = "0.7.3b"
2+
let g:pymode_version = "0.7.4b"
33

44
com! PymodeVersion echomsg "Current python-mode version: " . g:pymode_version
55
com! PymodeTroubleshooting call pymode#troubleshooting#test()

pymode/environment.py

Lines changed: 242 additions & 0 deletions

0 commit comments

Comments
 (0)