Matthias Bussonnier
f47211c129
Use scandir on py3.5+ for less disk access on filename completion
...
On Python 3.5+, we can make use of scandir that not only list the
content of the directory as an iterator but caches some infomations (for
example, `is_dir()`; this avoid extra stats call to the underlying
filesytem and can be – according to pep 471 – 2x to 20 time faster
especially on NFS filesystem where stats call is expensive.
From a quick this is the only place where scandir would make sens, as
most other places only require the name.
Fixes 1381
2019-08-12 17:56:29 -07:00
Matthias Bussonnier
ecca190462
Remove forgotten debug/print in filename completion. ( #1380 )
...
This is in the latest 0.15, and when forwarding path completions to
jedi, print a lot of stuff on the screen.
2019-08-12 12:37:21 +02:00
Dave Halter
3d0ac09fc9
Don't add quotes after paths if they are already there
2019-08-10 18:37:10 +02:00
Dave Halter
03608151e8
Fix more issues with os.path path completion
2019-08-08 01:48:25 +02:00
Dave Halter
822394663c
Make join detection much easier
2019-08-08 01:04:08 +02:00
Dave Halter
52517f78b1
Fix some remaining issues with file path completions
2019-08-07 23:00:27 +02:00
Dave Halter
a191b7b458
A few more tests for path completions (join)
2019-08-07 21:11:48 +02:00
Dave Halter
e68273c0ff
Fix quote completions for os.path.join path completions
2019-08-07 20:55:12 +02:00
Dave Halter
aeff5faa3d
Fix first param argument of os.path.join file completions
2019-08-07 20:39:47 +02:00
Dave Halter
0fd3757a51
Fix arglist/trailer issues
2019-08-07 10:16:05 +02:00
Dave Halter
1b064c1078
in os.path.join completions, directories should not end in a slash
2019-08-07 01:37:58 +02:00
Dave Halter
5726c29385
Make some file path completions in os.path.join work
2019-08-07 01:34:46 +02:00
Dave Halter
99008eef43
Fix string name completion for stuff like dirname and abspath
2019-08-06 19:38:16 +02:00
Dave Halter
3a9dc0ca2e
Fix bytes issue with file path adding
2019-08-06 01:08:57 +02:00
Dave Halter
b7c2bacbd2
Fix string additions when used in certain ways
2019-08-05 10:11:36 +02:00
Dave Halter
8108122347
Make string additions work for file path completion
...
With this most simple cases of file path completions should be working now, fixes #493
2019-08-05 01:43:50 +02:00
Dave Halter
e008a515e3
Fix a few more file name completion cases
2019-08-04 22:43:23 +02:00
Dave Halter
fd1e6afd07
A first iteration for file path completions
2019-08-04 13:50:23 +02:00