Daniel Hahler
df39189578
Fix no_jedi_warning: display actual error
...
Never really worked as intended in 676b378 .
Ref: https://github.com/davidhalter/jedi-vim/issues/460
2016-03-18 23:05:07 +01:00
James Mills
8215b220f9
Fixed Python 2.6 str.format() compatibility
2016-01-13 14:00:41 -08:00
Jacob Niehus
0c2831d9a6
Fix parameters missing from command line call signatures
...
Parameters (or ellipsis) should show up in call signatures even when the
index of the current argument is unknown.
Closes https://github.com/davidhalter/jedi-vim/pull/499 .
2015-11-12 02:03:46 +01:00
Jacob Niehus
2cf1d42fff
Fix handling of temporary tags file on Windows
...
Fixes https://github.com/davidhalter/jedi-vim/issues/482 .
Closes https://github.com/davidhalter/jedi-vim/pull/489 .
2015-11-02 01:04:16 +01:00
Bagrat Aznauryan
84f5cd92c7
Use escape_file_path in new_buffer
...
Fix: If a definition file path contains a space, the "open in split"
fails with an error.
Fixes https://github.com/davidhalter/jedi-vim/issues/491 .
Closes https://github.com/davidhalter/jedi-vim/issues/492 .
2015-11-02 01:02:22 +01:00
Jacob Niehus
4b32847110
Fix issues with wildignore and tag stack
...
Closes https://github.com/davidhalter/jedi-vim/pull/483 .
Fixes https://github.com/davidhalter/jedi-vim/issues/482 .
2015-10-23 00:31:28 +02:00
Daniel Hahler
267df8b3da
Improve use_tag_stack-hack: use context managers, short 'tags'
...
Use a NamedTemporaryFile context manager, which removes the temporary
file again, and use it as the only entry for the 'tags' setting to
improve lookup performance.
2015-10-19 18:29:54 +02:00
Daniel Hahler
005cb5225f
Use string.ascii_lowercase instead of string.lowercase
...
Fixes https://github.com/davidhalter/jedi-vim/issues/478 .
Closes https://github.com/davidhalter/jedi-vim/pull/480 .
2015-10-18 22:14:31 +02:00
Daniel Hahler
5c868b9a1f
Use utf8 ellipsis char instead of 3 dots
2015-10-18 21:16:37 +02:00
Jacob Niehus
7abc3ad8d4
Truncate long command line call signatures
2015-10-18 21:16:37 +02:00
Jacob Niehus
9633044332
Allow fewer columns in call signatures if 'ruler' is set
2015-10-18 21:16:37 +02:00
Jacob Niehus
9c235c79ac
Fix hidden check again
2015-10-16 12:55:40 -07:00
Jacob Niehus
8cfa121b4d
Fix using tabs/splits instead of buffers
2015-10-16 12:55:40 -07:00
Jacob Niehus
c94fe6fcee
Check if buffer can be hidden before tjump
2015-10-16 12:55:40 -07:00
Jacob Niehus
5041224c13
Use vim tempname() instead of Python tempfile
2015-10-16 12:55:40 -07:00
Jacob Niehus
4867831ad0
Add g:jedi#use_tag_stack feature for jedi#goto()
2015-10-16 12:55:40 -07:00
Daniel Hahler
676b37812b
Pass ImportError to no_jedi_warning and display it there
...
Ref: https://github.com/davidhalter/jedi-vim/issues/460
2015-09-08 14:33:40 +02:00
Daniel Hahler
91b4332774
Fix ValueError with cmdline call signatures
...
Commit 8016665 escaped the newlines in `text`, which requires to use the
escaped version with `text.index` and `len`, too.
This fixes the following error:
Traceback (most recent call last):
File "…/jedi/jedi_vim.py", line 110, in wrapper
return func(*args, **kwargs)
File "…/jedi/jedi_vim.py", line 414, in cmdline_call_signatures
left = text.index(params[index])
ValueError: substring not found
2015-06-26 17:07:23 +02:00
Daniel Hahler
0dd1b9fd44
Fix PEP8 style
2015-05-12 22:08:39 +02:00
Daniel Hahler
6c1719a68a
Fix rename behaviour with empty cword; honor b:changedtick
...
Ref: https://github.com/davidhalter/jedi-vim/issues/416
2015-05-12 22:08:30 +02:00
Daniel Hahler
d79f41149f
Fix wrong call of goto in do_rename
...
This was overseen in dd33e38 .
This is the main fix for https://github.com/davidhalter/jedi-vim/issues/41 .
2015-05-12 22:04:15 +02:00
Daniel Hahler
651eac91ff
goto: fix return value to always be a list
...
Fixes https://github.com/davidhalter/jedi-vim/issues/414#issuecomment-101341260
2015-05-12 19:43:09 +02:00
Daniel Hahler
abc0c07d0f
echo_highlight: escape quotes in msg
2015-05-11 13:22:21 +02:00
Daniel Hahler
dd33e38631
Add auto-goto command/function
...
This adds g:jedi#goto_command, and uses `<Leader>d` by default for it -
the old default for `g:jedi#goto_definitions_command`, which is now
empty.
It will try `script.goto_definitions()` first, and falls back to
`script.goto_assignments()` for builtins.
Closes https://github.com/davidhalter/jedi-vim/pull/407
2015-05-10 18:07:42 +02:00
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