1- import type { Denops } from "https://deno.land/x/denops_std@v2 .1.3 /mod.ts" ;
2- import * as autocmd from "https://deno.land/x/denops_std@v2 .1.3 /autocmd/mod.ts" ;
3- import * as anonymous from "https://deno.land/x/denops_std@v2 .1.3 /anonymous/mod.ts" ;
4- import * as batch from "https://deno.land/x/denops_std@v2 .1.3 /batch/mod.ts" ;
5- import * as fn from "https://deno.land/x/denops_std@v2 .1.3 /function/mod.ts" ;
6- import * as vars from "https://deno.land/x/denops_std@v2 .1.3 /variable/mod.ts" ;
7- import * as option from "https://deno.land/x/denops_std@v2 .1.3 /option/mod.ts" ;
8- import { deferred } from "https://deno.land/std@0.111 .0/async/mod.ts" ;
1+ import type { Denops } from "https://deno.land/x/denops_std@v3 .1.4 /mod.ts" ;
2+ import * as autocmd from "https://deno.land/x/denops_std@v3 .1.4 /autocmd/mod.ts" ;
3+ import * as anonymous from "https://deno.land/x/denops_std@v3 .1.4 /anonymous/mod.ts" ;
4+ import * as batch from "https://deno.land/x/denops_std@v3 .1.4 /batch/mod.ts" ;
5+ import * as fn from "https://deno.land/x/denops_std@v3 .1.4 /function/mod.ts" ;
6+ import * as vars from "https://deno.land/x/denops_std@v3 .1.4 /variable/mod.ts" ;
7+ import * as option from "https://deno.land/x/denops_std@v3 .1.4 /option/mod.ts" ;
8+ import { deferred } from "https://deno.land/std@0.128 .0/async/mod.ts" ;
99
1010/**
1111 * Open a scratch buffer in a new tab page and return immediately.
@@ -18,8 +18,10 @@ export async function open(denops: Denops): Promise<void> {
1818 * Open a `filename` buffer in a new tab page and wait the buffer is closed.
1919 */
2020export async function edit ( denops : Denops , filename : string ) : Promise < void > {
21- let opener = await vars . g . get ( denops , "guise_edit_opener" , "tab drop" ) ;
22- await denops . cmd ( `silent noswapfile ${ opener } \`=filename\` | edit` , { filename } ) ;
21+ const opener = await vars . g . get ( denops , "guise_edit_opener" , "tab drop" ) ;
22+ await denops . cmd ( `silent noswapfile ${ opener } \`=filename\` | edit` , {
23+ filename,
24+ } ) ;
2325 const [ winid , bufnr ] = await batch . gather ( denops , async ( denops ) => {
2426 await fn . win_getid ( denops ) ;
2527 await fn . bufnr ( denops ) ;
0 commit comments