File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ type Params = {
21
21
bufAsRoot : boolean ;
22
22
projAsRoot : boolean ;
23
23
trailingSlash : boolean ;
24
+ trailingSlashAbbr : boolean ;
24
25
followSymlinks : boolean ;
25
26
disableMenu : boolean ;
26
27
@@ -239,6 +240,8 @@ export class Source extends BaseSource<Params> {
239
240
. map ( ( { name, isDirectory, isSymlink } ) : Candidate => ( {
240
241
word : name . slice ( inputFileBasePrefix . length ) +
241
242
( p . trailingSlash && isDirectory ? path . sep : "" ) ,
243
+ abbr : name . slice ( inputFileBasePrefix . length ) +
244
+ ( p . trailingSlashAbbr && isDirectory ? path . sep : "" ) ,
242
245
menu : p . disableMenu
243
246
? undefined
244
247
: ( menu !== "" && isInputAbs ? path . sep : "" ) + menu ,
@@ -278,6 +281,7 @@ export class Source extends BaseSource<Params> {
278
281
bufAsRoot : false ,
279
282
projAsRoot : true ,
280
283
trailingSlash : false ,
284
+ trailingSlashAbbr : true ,
281
285
followSymlinks : false ,
282
286
disableMenu : false ,
283
287
Original file line number Diff line number Diff line change @@ -164,6 +164,13 @@ trailingSlash (boolean)
164
164
165
165
Default: false
166
166
167
+ *ddc-file-params-trailingSlashAbbr*
168
+ trailingSlashAbbr (boolean)
169
+ Whether to display trailing slash when completing directory
170
+ name. Note that this won't be actually inserted.
171
+
172
+ Default: true
173
+
167
174
*ddc-file-params-followSymlinks*
168
175
followSymlinks (boolean)
169
176
Whether to follow symlinks to determine whether the filename
You can’t perform that action at this time.
0 commit comments