Commit Graph

52 Commits

Author SHA1 Message Date
Daniel Hahler
9a13f143a8 rename: fix saving/restoring of the view
This seemed(?) to work with Python 3, but not for Python 2.  Just get a
string (instead of dict) from Vim, and re-use that as-is.

This fixes afb84a8.
2015-05-09 19:14:54 +02:00
Daniel Hahler
1bf69c5844 Merge pull request #360 from wilywampa/escape_newline
Escape newlines in call signatures with show_call_signatures=2
2015-05-04 00:41:51 +02:00
Daniel Hahler
054285e2b7 rename: fix opening new windows with &shellslash (Windows)
Ref: https://github.com/davidhalter/jedi-vim/pull/364#issuecomment-98418501
2015-05-03 17:16:08 +02:00
Dave Halter
fb77981040 Merge pull request #403 from blueyed/fix-rename
Fix rename
2015-05-03 15:48:37 +02:00
Dave Halter
299c9b26d3 Merge pull request #401 from blueyed/reorder-jedi_vim
Reorder jedi_vim.py / improved error handling
2015-05-03 03:46:19 +02:00
Daniel Hahler
4d67c1a6e3 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.
2015-05-02 18:51:10 +02:00
Daniel Hahler
154e2dbae3 rename: use original word's length for replacing
Ref: https://github.com/davidhalter/jedi-vim/pull/403#discussion_r29548013
2015-05-02 18:46:52 +02:00
Daniel Hahler
b9ba141069 rename: display error in case new_buffer should fail and continue
Previously it would `return`, which would not restore the previous
state.  While I am not sure that it should continue, it should at least
not return.
2015-05-02 16:42:36 +02:00
Daniel Hahler
bf281dabda rename: fix _tabnew to go to the correct window 2015-05-02 16:42:28 +02:00
Daniel Hahler
afb84a837c rename: save and restore view before/after changes 2015-05-02 16:42:04 +02:00
Daniel Hahler
7539614f09 rename: display number of affected buffers 2015-05-02 16:41:13 +02:00
Daniel Hahler
fc95545378 rename: save/restore tab/windows; not via new_buffer
Ref: https://github.com/davidhalter/jedi-vim/pull/364#discussion-diff-25785992
2015-05-02 16:38:47 +02:00
Daniel Hahler
676c558110 VimError: set self.message
`self.message` is used in `__str__`.

Without this, tracebacks end like this:

    Traceback (most recent call last):
    [...]
      File "…/vim/neobundles/jedi/jedi_vim.py", line 87, in _catch_
    exception
        raise VimError(result['exception'], result['throwpoint'], string)
    jedi_vim.VimError: <unprintable VimError object>
2015-05-02 11:51:27 +02:00
Daniel Hahler
527562208c jedi_vim: reorder to use echo_highlight in try-import block
This uses `echo_highlight` for exceptions caused by an empty "jedi"
folder.
2015-05-02 00:44:45 +02:00
Daniel Hahler
baa2969427 minor: use 'jedi-vim' in no_jedi_warning; fix typo 'too old' 2015-05-02 00:44:37 +02:00
Dave Halter
cc254432b6 Merge remote-tracking branch 'origin/dev' 2015-04-29 22:52:03 +02:00
Daniel Hahler
2611ea3c27 Use "echohl WarningMsg" instead of "echoerr" in no_jedi_warning
`echoerr` causes Vim to throw an error, but like the function name
indicates, this is only a warning.
2015-04-29 11:29:27 +02:00
Daniel Hahler
fe517fae74 Use desc_with_module in "Builtin modules cannot be displayed" error 2015-04-29 10:57:40 +02:00
Dave Halter
b78f1d74c5 Merge branch 'master' of github.com:davidhalter/jedi-vim 2015-04-28 19:42:31 +02:00
Daniel Hahler
a233d603e3 add_goto_window: pass len of list and use min()
With less than `g:jedi#quickfix_window_height` entries in quickfix list,
this now only makes the window that large, effectively saving screen
space.
2015-04-08 16:10:56 +02:00
Dave Halter
d3fadd54c7 Simplification. 2015-03-31 02:17:33 +02:00
Dave Halter
e87e7db0e9 Trying to improve jedi-vim, when Jedi is not found. Fixes #263. 2015-03-30 19:11:05 +02:00
Dave Halter
cc9837dc23 Trying to fix the issue of non-disappearing call signatures, #276, #278. 2015-03-28 03:00:58 +01:00
Dave Halter
69160c329a Matching fat symbols (current params) in a better way. 2015-03-26 15:06:25 +01:00
Dave Halter
6dcebb4644 Remove the zt call, as discussed in #310, fixed #310. 2015-03-25 13:35:54 +01:00
petobens
733ba775b0 Improve 'winwidth' split option documentation 2015-02-17 16:04:14 -03:00
petobens
b71ef1176c Add 'winwidth' split option 2015-02-15 19:11:38 -03:00
Jacob Niehus
8016665639 Escape newlines in call signatures 2015-02-08 13:59:37 -07:00
Dave Halter
9eaede84b2 Merge pull request #347 from wilywampa/remove_clearsigs
Don't clear command line call signatures in completions()
2015-01-06 10:23:08 +01:00
Jacob Niehus
e3f4474dd7 Add reason for clear_call_signatures logic 2015-01-05 19:02:51 -07:00
Jacob Niehus
c5c69f0ee1 Don't clear command line call signatures in completions() 2015-01-04 20:55:52 -07:00
Jacob Niehus
57e476c214 Escape quotes in command line call signatures 2014-12-27 22:14:50 -06:00
Jacob Niehus
e1a49790cb Remove manual width calculation and handle horizontal scroll 2014-12-06 14:47:45 -07:00
Jacob Niehus
cfd71a6b54 Add option to show call signatures in command line 2014-12-06 14:47:45 -07:00
ZHU Jie M
1e0ae6bd35 Fix upstream #311
Use method `docstring()` instead of property `doc`
Use property `description` instead of `get_code`
2014-10-14 18:33:05 +08:00
Dave Halter
503fe3da67 revert to old doc property, the doc.full() call was not backwards compatible and has since been reverted within Jedi 2014-04-23 12:08:58 +02:00
Dave Halter
21192f55f4 temporary compatibility with the doc changes in Jedi 0.8 2014-03-31 12:46:54 +02:00
Dave Halter
bb5c473633 get rid of the compatibility layer of jedi 2014-01-15 12:20:26 +01:00
Dave Halter
4724e18b63 new version stuff 2014-01-15 12:17:51 +01:00
Dave Halter
d9a43db019 remove unused jedi.keywords import that caused jedi-vim not to work because the file was moved internally in the Jedi package 2014-01-13 15:38:48 +01:00
Dave Halter
ce7ba53224 pep8 styling 2014-01-13 15:37:49 +01:00
LittleQ
df81a593ec generate list by keys() for join() 2013-09-15 00:48:19 +08:00
LittleQ
63162524c2 moved up the split_options 2013-09-15 00:29:56 +08:00
LittleQ
ec405fa3b2 fixed type and set default value to 1 to avoid testing error 2013-09-15 00:20:20 +08:00
LittleQ
1c24594c70 added split support for goto action 2013-09-14 23:33:40 +08:00
Stephen J. Fuhry
d1f8a91fd3 moving if to end of file 2013-09-08 14:14:19 -04:00
Stephen J. Fuhry
f405ce625a Revert "moving PythonToVimStr to before _catch_exception"
This reverts commit 320809c211.
2013-09-08 14:07:29 -04:00
Stephen J. Fuhry
320809c211 moving PythonToVimStr to before _catch_exception 2013-09-08 10:53:01 -04:00
Wouter Overmeire
f0c46450c9 Catch ValueError, close #180. 2013-09-04 09:31:31 +02:00
David Halter
02a7c89a37 fix problems with error reporting 2013-08-28 20:24:49 +04:30