Skip to content

Commit

Permalink
Add PreviewContext in OnPreviewArguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Nov 24, 2024
1 parent f43600e commit 04a3f88
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
17 changes: 9 additions & 8 deletions denops/@ddu-uis/filer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ import {
type Previewer,
type SourceInfo,
type UiOptions,
} from "jsr:@shougo/ddu-vim@~6.2.0/types";
import { BaseUi, type UiActions } from "jsr:@shougo/ddu-vim@~6.2.0/ui";
} from "jsr:@shougo/ddu-vim@~6.4.0/types";
import { BaseUi, type UiActions } from "jsr:@shougo/ddu-vim@~6.4.0/ui";
import {
printError,
treePath2Filename,
} from "jsr:@shougo/ddu-vim@~6.2.0/utils";
} from "jsr:@shougo/ddu-vim@~6.4.0/utils";

import type { Denops } from "jsr:@denops/std@~7.2.0";
import { batch } from "jsr:@denops/std@~7.2.0/batch";
import * as op from "jsr:@denops/std@~7.2.0/option";
import * as fn from "jsr:@denops/std@~7.2.0/function";
import * as vars from "jsr:@denops/std@~7.2.0/variable";
import type { Denops } from "jsr:@denops/std@~7.3.0";
import { batch } from "jsr:@denops/std@~7.3.0/batch";
import * as op from "jsr:@denops/std@~7.3.0/option";
import * as fn from "jsr:@denops/std@~7.3.0/function";
import * as vars from "jsr:@denops/std@~7.3.0/variable";

import { equal } from "jsr:@std/assert@~1.0.0/equal";
import { is } from "jsr:@core/unknownutil@~4.3.0/is";
Expand Down Expand Up @@ -86,6 +86,7 @@ type OnPreviewArguments = {
denops: Denops;
context: Context;
item: DduItem;
previewContext: PreviewContext;
previewWinId: number;
};

Expand Down
14 changes: 8 additions & 6 deletions denops/@ddu-uis/filer/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ import {
type PreviewContext,
type Previewer,
type TerminalPreviewer,
} from "jsr:@shougo/ddu-vim@~6.2.0/types";
} from "jsr:@shougo/ddu-vim@~6.4.0/types";
import {
printError,
} from "jsr:@shougo/ddu-vim@~6.2.0/utils";
} from "jsr:@shougo/ddu-vim@~6.4.0/utils";

import type { Denops } from "jsr:@denops/std@~7.2.0";
import { batch } from "jsr:@denops/std@~7.2.0/batch";
import * as fn from "jsr:@denops/std@~7.2.0/function";
import type { Denops } from "jsr:@denops/std@~7.3.0";
import { batch } from "jsr:@denops/std@~7.3.0/batch";
import * as fn from "jsr:@denops/std@~7.3.0/function";

import { equal } from "jsr:@std/assert@~1.0.0/equal";
import { replace } from "jsr:@denops/std@~7.2.0/buffer";
import { replace } from "jsr:@denops/std@~7.3.0/buffer";
import { ensure } from "jsr:@core/unknownutil@~4.3.0/ensure";
import { is } from "jsr:@core/unknownutil@~4.3.0/is";

Expand Down Expand Up @@ -188,6 +188,7 @@ export class PreviewUi {
{
context,
item,
previewContext,
previewWinId: this.#previewWinId,
},
);
Expand All @@ -196,6 +197,7 @@ export class PreviewUi {
denops,
context,
item,
previewContext,
previewWinId: this.#previewWinId,
});
}
Expand Down

0 comments on commit 04a3f88

Please sign in to comment.