-
-
Notifications
You must be signed in to change notification settings - Fork 178
Expand file tree
/
Copy pathICaptureChoice.ts
More file actions
46 lines (45 loc) · 1.26 KB
/
ICaptureChoice.ts
File metadata and controls
46 lines (45 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import type IChoice from "./IChoice";
import type { AppendLinkOptions } from "../linkPlacement";
import type { OpenLocation, FileViewMode2 } from "../fileOpening";
export default interface ICaptureChoice extends IChoice {
captureTo: string;
captureToActiveFile: boolean;
activeFileWritePosition?: "cursor" | "top";
createFileIfItDoesntExist: {
enabled: boolean;
createWithTemplate: boolean;
template: string;
};
format: { enabled: boolean; format: string };
/** Capture to bottom of file (after current file content). */
prepend: boolean;
/**
* Configure link appending behavior.
* - boolean: Legacy format for backward compatibility (true = enabled with default placement)
* - AppendLinkOptions: New format with configurable placement options
*/
appendLink: boolean | AppendLinkOptions;
task: boolean;
insertAfter: {
enabled: boolean;
after: string;
insertAtEnd: boolean;
considerSubsections: boolean;
createIfNotFound: boolean;
createIfNotFoundLocation: string;
};
newLineCapture: {
enabled: boolean;
direction: "above" | "below";
};
openFile: boolean;
fileOpening: {
location: OpenLocation;
direction: "vertical" | "horizontal";
mode: FileViewMode2;
focus: boolean;
};
templater?: {
afterCapture?: "none" | "wholeFile";
};
}