Zhao Cai
48d6a5378c
[filename_completer] Append '/' to [DIR] automatically
2013-05-11 02:21:19 -04:00
Strahinja Val Markovic
2b23245422
Minor refactoring & style cleanup
2013-05-09 20:28:04 -07:00
Val Markovic
48281d1379
Merge pull request #304 from JazzCore/subcommand_complete
...
Add subcommand completion for :YcmCompleter command
2013-05-09 20:21:26 -07:00
Val Markovic
3a984f938e
Merge pull request #308 from JazzCore/fix_307
...
fix IndexError when min_num_of_chars is set to 0
2013-05-09 20:15:40 -07:00
Strahinja Val Markovic
0c19ee4fa7
Updating to latest Jedi
2013-05-09 11:08:11 -07:00
Stanislav Golovanov
e5c99428f3
fix IndexError when min_num_of_chars is set to 0
...
Fixes #307 . Error is thrown when g:ycm_min_num_of_chars_for_completion
option is set to 0 user tries to delete an identifier which starts at
the beginning of the line.
2013-05-09 22:02:47 +04:00
Stanislav Golovanov
0edec9c95a
Add subcommand completion for YcmCompleter command
2013-05-09 21:55:55 +04:00
Stanislav Golovanov
54fabc1816
style fixes
2013-05-05 13:27:23 +04:00
Stanislav Golovanov
54e6a9f594
Add GoToDefinitionElseDeclaration for python
2013-05-04 22:48:27 +04:00
Stanislav Golovanov
f246f5b8c6
remove not needed type casting
2013-05-04 22:47:37 +04:00
Stanislav Golovanov
c2024edbaa
Add GoTo features for python
...
This adds a Go To Definition and Go To Declaration features for
python.
2013-05-04 03:11:10 +04:00
Strahinja Val Markovic
df7026e9b6
Fix error on YcmDebugInfo in quickfix window
...
Fixes #283
2013-04-28 15:52:22 -07:00
Strahinja Val Markovic
209f2fd777
Minor refactoring for simplicity
2013-04-26 22:32:22 -07:00
Strahinja Val Markovic
5207918432
Fix bug with [File] being shown instead of [Dir]
...
This is for filename completion in the case of C-family include completion. The
path was being assembled incorrectly so os.isdir() was getting the wrong path
and then could not see was it a directory.
2013-04-26 14:10:48 -07:00
Strahinja Val Markovic
840930ce09
Fixing minor regressions from general store commit
...
A few Completer methods that should have been forwarded to general completers
were not. This broke the identifier completer picking up the current identifier
right after it's typed in.
2013-04-25 15:36:56 -07:00
Stanislav Golovanov
4d138b2b7f
fix UnicodeEncodeError in ultisnips_completer
...
Fix a rare exception when a description of UltiSnips snippet contains
unicode symbols.
Fixes #274
2013-04-26 00:42:02 +04:00
Strahinja Val Markovic
a9215f10fe
Including current file dir for #include "" form
...
Relevant to issue #273
2013-04-25 12:56:32 -07:00
Strahinja Val Markovic
663873255f
Filename completer now uses include paths
...
It's also smart enough to trigger filename completion right after '#include "'.
Fixes #261
2013-04-24 22:51:53 -07:00
Strahinja Val Markovic
3ae9764451
Force filename completer on #include
2013-04-24 19:59:14 -07:00
Strahinja Val Markovic
7500a94cda
Use OnBufferVisit in ultisnips completer
...
This is instead of OnFileReadyToParse which is called every time the users stops
typing.
2013-04-24 13:31:28 -07:00
Strahinja Val Markovic
8c0a9bc90e
Fixing rare hang issue with ultisnips completer
...
The issue was that AsyncCandidateRequestReady in the ultisnips completer would
always return false if there were no snippets for the current filetype, leading
to an infinite loop in CompletionsForQuery.
Fixes #270 .
2013-04-24 13:07:56 -07:00
Strahinja Val Markovic
3258f324dd
Merge branch 'JazzCore-general_completers'
...
Conflicts:
python/ycm.py
2013-04-22 22:37:32 -07:00
Strahinja Val Markovic
196228217f
Filename completer now uses threads
...
This was done by introducing a new ThreadedCompleter class that descends from
Completer. Both JediCompleter and FilenameCompleter descend from
ThreadedCompleter.
2013-04-22 22:30:10 -07:00
Strahinja Val Markovic
8d20637295
User can now pick the root for relative paths
2013-04-22 22:30:10 -07:00
Strahinja Val Markovic
aa9127e3dc
Rewriting the code from the pull request
...
This implements the filename completer and introduces integration with
UltiSnips. The user will now see snippets in the completion menu. After
selecting a snippet, the user should invoke the UltiSnips trigger key
(which should be changed from the default of TAB) to trigger the snippet
expansion.
Fixes #77 , Fixes #36
2013-04-22 22:26:35 -07:00
Stanislav Golovanov
bb5839dd74
Add general filename completer & other stuff
2013-04-22 22:24:38 -07:00
Strahinja Val Markovic
aea154e829
Refactoring ycm_extra_conf handling into module
2013-04-22 10:31:16 -07:00
Stanislav Golovanov
5d37c40fea
Add general UltiSnips snippet completer
2013-04-21 01:28:37 +04:00
Stanislav Golovanov
48cda3bb8f
Add general completers support
2013-04-21 01:28:37 +04:00
Strahinja Val Markovic
93ed6f7db7
Fix bug with removing flag after "-c"
...
-c does not take an argument. Why did I think it did?
2013-04-19 10:31:55 -07:00
Thomas Refis
dad08df71b
checking if a key is in a dict is done with 'key in dict' not 'hasattr(dict, key)'
2013-04-13 14:29:57 +02:00
Jacek Lach
1b4eb6122c
Make caching optional in the omnicompleter
2013-04-11 10:22:16 +01:00
Strahinja Val Markovic
77fbd80c89
Refactoring out some vim.eval calls
...
s:completion_start_column should not be evaled in Python code. That was a
stopgap measure that ended up lasting far longer than intended.
2013-04-09 19:32:48 -07:00
Strahinja Val Markovic
27d73e0d51
Removing some dead code
2013-04-09 18:43:29 -07:00
Strahinja Val Markovic
085df7e8af
Fix traceback print on None for |location|
...
This happens when the user invokes a GoTo* command on a file with no compilation
flags.
2013-04-08 11:15:27 -07:00
Strahinja Val Markovic
a75c92bb6a
Using event.is_set to be compatible with Python2.6
...
Fixes #227
2013-04-03 19:14:46 -07:00
Strahinja Val Markovic
1f094e50d0
GoToDefinition/Declaration commands for C-family
...
These are accessible through the :YcmCompleter command. The docs have more
information.
2013-03-31 20:38:29 -07:00
Strahinja Val Markovic
b4837c81fe
Handling exceptions in jedi_completer thread
2013-03-24 18:52:50 -07:00
Strahinja Val Markovic
edbcb3abfe
More cleanup for correctness and simplicity
...
The jedi completer now won't hang on <C-Space>
2013-03-24 18:42:31 -07:00
Strahinja Val Markovic
9845d81fb0
More style fixes
2013-03-24 15:22:31 -07:00
Strahinja Val Markovic
6fb784e61b
Making the python thread not hang Vim on exit
...
As the Pytho docs say, "The entire Python program exits when no alive non-daemon
threads are left." Basically, the daemon threads are safely killed.
2013-03-24 15:04:00 -07:00
Strahinja Val Markovic
1c78971acd
More style fixes
2013-03-24 14:57:25 -07:00
Strahinja Val Markovic
8f2715c1a4
Posting an error message when jedi import fails
2013-03-24 14:52:11 -07:00
Strahinja Val Markovic
4d95e32a1e
Python code style fixes
2013-03-24 14:41:22 -07:00
Strahinja Val Markovic
0954ff31d9
Bug fixes for the new python semantic completer
2013-03-24 14:38:55 -07:00
Stephen Sugden
eed0434e39
Refactor jedi-completer to use a worker thread
2013-03-23 19:24:26 -07:00
Stephen Sugden
da46be7044
Add jedi-based completion.
...
This first version only uses the Jedi completion engine after a ".", similar to
how the ClangCompleter works. It is also entirely synchronous and blocks for
quite a while the first time it is called.
2013-03-23 16:21:49 -07:00
Strahinja Val Markovic
74021144c0
Making the omni completer more robust
...
- There was a bug in not calling int() on the result of the first call to the
omnifunc.
- We need to be more resilient to badly written omnifuncs and check that the
result of the second call is a list or a dict with a list, as the vim docs say
the omnifunc should return on the second call.
One of the two fixes probably fixes #198 but since I can't repro the error, I
can't be sure.
2013-03-22 10:26:18 -07:00
Strahinja Val Markovic
d0a51fbf2c
More info for conf file load dialog message
...
The user is now informed of options that can turn off this dialog.
2013-03-19 12:59:17 -07:00
Strahinja Val Markovic
4cb9f17c5f
Cache deletion is now async
2013-03-16 12:10:24 -07:00