11
2- function ! easycomplete#sources#directory #completor (opt , ctx)
2+ function ! easycomplete#sources#path #completor (opt , ctx)
33 let l: typing_path = s: TypingAPath (a: ctx )
44 if ! l: typing_path .is_path
55 call easycomplete#complete (a: opt [' name' ], a: ctx , a: ctx [' startcol' ], [])
66 return v: true
77 endif
88 call easycomplete#util#timer_start (
9- \ " easycomplete#sources#directory #CompleteHandler" ,
9+ \ " easycomplete#sources#path #CompleteHandler" ,
1010 \ [a: ctx [' typing' ], a: opt [' name' ], a: ctx , a: ctx [' startcol' ], l: typing_path ],
1111 \ 10 )
1212 " 展开目录时,中断其他complete逻辑
@@ -15,20 +15,20 @@ function! easycomplete#sources#directory#completor(opt, ctx)
1515 return v: false
1616endfunction
1717
18- function ! easycomplete#sources#directory #CompleteHandler (... )
18+ function ! easycomplete#sources#path #CompleteHandler (... )
1919 return call (function (" s:CompleteHandler" ), a: 000 )
2020endfunction
2121
2222function ! s: CompleteHandler (typing, name, ctx, startcol, typing_path)
23- if g: easycomplete_directory_enable == 0
23+ if g: easycomplete_path_enable == 0
2424 call easycomplete#complete (a: name , a: ctx , a: startcol , [])
2525 return
2626 endif
2727 let spath_start = a: typing_path .short_path_start
2828 try
2929 let result = s: GetDirAndFiles (a: typing_path , a: typing_path .fname)
3030 catch
31- call s: errlog (' [Directory ]' , v: exception )
31+ call s: errlog (' [Path ]' , v: exception )
3232 return
3333 endtry
3434 if len (result) == 0
@@ -39,7 +39,7 @@ function! s:CompleteHandler(typing, name, ctx, startcol, typing_path)
3939 call easycomplete#complete (a: name , a: ctx , a: startcol , result)
4040endfunction
4141
42- function ! easycomplete#sources#directory #pum ()
42+ function ! easycomplete#sources#path #pum ()
4343 if g: env_is_vim && (! pumvisible () || ! exists (' g:easycomplete_stunt_menuitems' ))
4444 return v: valse
4545 endif
@@ -49,7 +49,7 @@ function! easycomplete#sources#directory#pum()
4949 if empty (g: easycomplete_stunt_menuitems )
5050 return v: false
5151 endif
52- if get (g: easycomplete_stunt_menuitems [-1 ], ' plugin_name' , " " ) == " directory "
52+ if get (g: easycomplete_stunt_menuitems [-1 ], ' plugin_name' , " " ) == " path "
5353 return v: true
5454 endif
5555 return v: false
@@ -92,7 +92,7 @@ function! s:GetDirAndFiles(typing_path, base)
9292 return s: GetWrappedFileAndDirsList (result_list, s: GetPathName (path ), l: base )
9393endfunction
9494
95- function ! easycomplete#sources#directory #GetDirAndFiles (typing_path, base)
95+ function ! easycomplete#sources#path #GetDirAndFiles (typing_path, base)
9696 return s: GetDirAndFiles (a: typing_path , a: base )
9797endfunction
9898
@@ -137,7 +137,7 @@ function! s:GetWrappedFileAndDirsList(rlist, fpath, base)
137137 return result_with_kind
138138endfunction
139139
140- function ! easycomplete#sources#directory #TypingAPath (... )
140+ function ! easycomplete#sources#path #TypingAPath (... )
141141 return call (function (' s:TypingAPath' ), a: 000 )
142142endfunction
143143
0 commit comments