@@ -3272,140 +3272,6 @@ export function index(denops: Denops, ...args: unknown[]): Promise<unknown> {
3272
3272
return denops . call ( "index" , ...args ) ;
3273
3273
}
3274
3274
3275
- /**
3276
- * The result is a String, which is whatever the user typed on
3277
- * the command-line. The {prompt} argument is either a prompt
3278
- * string, or a blank string (for no prompt). A '\n' can be used
3279
- * in the prompt to start a new line.
3280
- * The highlighting set with |:echohl| is used for the prompt.
3281
- * The input is entered just like a command-line, with the same
3282
- * editing commands and mappings. There is a separate history
3283
- * for lines typed for input().
3284
- * Example:
3285
- * :if input("Coffee or beer? ") == "beer"
3286
- * : echo "Cheers!"
3287
- * :endif
3288
- * If the optional {text} argument is present and not empty, this
3289
- * is used for the default reply, as if the user typed this.
3290
- * Example:
3291
- * :let color = input("Color? ", "white")
3292
- * The optional {completion} argument specifies the type of
3293
- * completion supported for the input. Without it completion is
3294
- * not performed. The supported completion types are the same as
3295
- * that can be supplied to a user-defined command using the
3296
- * "-complete=" argument. Refer to |:command-completion| for
3297
- * more information. Example:
3298
- * let fname = input("File: ", "", "file")
3299
- * NOTE: This function must not be used in a startup file, for
3300
- * the versions that only run in GUI mode (e.g., the Win32 GUI).
3301
- * Note: When input() is called from within a mapping it will
3302
- * consume remaining characters from that mapping, because a
3303
- * mapping is handled like the characters were typed.
3304
- * Use |inputsave()| before input() and |inputrestore()|
3305
- * after input() to avoid that. Another solution is to avoid
3306
- * that further characters follow in the mapping, e.g., by using
3307
- * |:execute| or |:normal|.
3308
- * Example with a mapping:
3309
- * :nmap \x :call GetFoo()<CR>:exe "/" . Foo<CR
3310
- * :function GetFoo()
3311
- * : call inputsave()
3312
- * : let g:Foo = input("enter search pattern: ")
3313
- * : call inputrestore()
3314
- * :endfunction
3315
- * Can also be used as a |method|:
3316
- * GetPrompt()->input()
3317
- */
3318
- export function input (
3319
- denops : Denops ,
3320
- prompt : unknown ,
3321
- text ?: unknown ,
3322
- completion ?: unknown ,
3323
- ) : Promise < unknown > ;
3324
- export function input ( denops : Denops , ...args : unknown [ ] ) : Promise < unknown > {
3325
- return denops . call ( "input" , ...args ) ;
3326
- }
3327
-
3328
- /**
3329
- * {textlist} must be a |List| of strings. This |List| is
3330
- * displayed, one string per line. The user will be prompted to
3331
- * enter a number, which is returned.
3332
- * The user can also select an item by clicking on it with the
3333
- * mouse. For the first string 0 is returned. When clicking
3334
- * above the first item a negative number is returned. When
3335
- * clicking on the prompt one more than the length of {textlist}
3336
- * is returned.
3337
- * Make sure {textlist} has less than 'lines' entries, otherwise
3338
- * it won't work. It's a good idea to put the entry number at
3339
- * the start of the string. And put a prompt in the first item.
3340
- * Example:
3341
- * let color = inputlist(['Select color:', '1. red',
3342
- * \ '2. green', '3. blue'])
3343
- * Can also be used as a |method|:
3344
- * GetChoices()->inputlist()
3345
- */
3346
- export function inputlist ( denops : Denops , textlist : unknown ) : Promise < unknown > ;
3347
- export function inputlist (
3348
- denops : Denops ,
3349
- ...args : unknown [ ]
3350
- ) : Promise < unknown > {
3351
- return denops . call ( "inputlist" , ...args ) ;
3352
- }
3353
-
3354
- /**
3355
- * Restore typeahead that was saved with a previous |inputsave()|.
3356
- * Should be called the same number of times inputsave() is
3357
- * called. Calling it more often is harmless though.
3358
- * Returns 1 when there is nothing to restore, 0 otherwise.
3359
- */
3360
- export function inputrestore ( denops : Denops ) : Promise < unknown > ;
3361
- export function inputrestore (
3362
- denops : Denops ,
3363
- ...args : unknown [ ]
3364
- ) : Promise < unknown > {
3365
- return denops . call ( "inputrestore" , ...args ) ;
3366
- }
3367
-
3368
- /**
3369
- * Preserve typeahead (also from mappings) and clear it, so that
3370
- * a following prompt gets input from the user. Should be
3371
- * followed by a matching inputrestore() after the prompt. Can
3372
- * be used several times, in which case there must be just as
3373
- * many inputrestore() calls.
3374
- * Returns 1 when out of memory, 0 otherwise.
3375
- */
3376
- export function inputsave ( denops : Denops ) : Promise < unknown > ;
3377
- export function inputsave (
3378
- denops : Denops ,
3379
- ...args : unknown [ ]
3380
- ) : Promise < unknown > {
3381
- return denops . call ( "inputsave" , ...args ) ;
3382
- }
3383
-
3384
- /**
3385
- * This function acts much like the |input()| function with but
3386
- * two exceptions:
3387
- * a) the user's response will be displayed as a sequence of
3388
- * asterisks ("*") thereby keeping the entry secret, and
3389
- * b) the user's response will not be recorded on the input
3390
- * |history| stack.
3391
- * The result is a String, which is whatever the user actually
3392
- * typed on the command-line in response to the issued prompt.
3393
- * NOTE: Command-line completion is not supported.
3394
- * Can also be used as a |method|:
3395
- * GetPrompt()->inputsecret()
3396
- */
3397
- export function inputsecret (
3398
- denops : Denops ,
3399
- prompt : unknown ,
3400
- text ?: unknown ,
3401
- ) : Promise < unknown > ;
3402
- export function inputsecret (
3403
- denops : Denops ,
3404
- ...args : unknown [ ]
3405
- ) : Promise < unknown > {
3406
- return denops . call ( "inputsecret" , ...args ) ;
3407
- }
3408
-
3409
3275
/**
3410
3276
* When {object} is a |List| or a |Blob| insert {item} at the start
3411
3277
* of it.
0 commit comments