Skip to content

Commit

Permalink
Add cwd in TerminalPreviewer
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Aug 17, 2023
1 parent ef20a81 commit 26b2c1d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions denops/ddu/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,11 @@ export type TerminalPreviewer = {
* Commands passed to `termopen()` or `term_start()` to render the preview
*/
cmds: string[];

/**
* Current working directory
*/
cwd?: string;
};

/**
Expand Down
6 changes: 6 additions & 0 deletions doc/ddu.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1344,6 +1344,12 @@ contents (string[]) (Required)
Contents to be shown in the preview buffer.
NOTE: It is only avaiable in |ddu-previewer-NoFilePreviewer|.

*ddu-previewer-attribute-cwd*
cwd (string) (Optional)
Current working directory.
NOTE: It is only avaiable in
|ddu-previewer-TerminalPreviewer|.

*ddu-previewer-attribute-expr*
expr (number | string) (Optional)
Buffer expression, which is the same as the arguments of
Expand Down

0 comments on commit 26b2c1d

Please sign in to comment.