mirror of
https://github.com/rabirabirara/obsidian-jelly-snippets.git
synced 2026-07-22 07:30:22 +00:00
refac: move SnippetType into snippet.ts
This commit is contained in:
parent
e05c88e941
commit
8a88ae3a68
2 changed files with 8 additions and 8 deletions
9
main.ts
9
main.ts
|
|
@ -11,7 +11,7 @@ import {
|
||||||
import { EditorView } from "@codemirror/view";
|
import { EditorView } from "@codemirror/view";
|
||||||
|
|
||||||
import { Symbol } from "src/symbol";
|
import { Symbol } from "src/symbol";
|
||||||
import { LHS, RHS, Snippet } from "src/snippet";
|
import { LHS, RHS, Snippet, SnippetType } from "src/snippet";
|
||||||
|
|
||||||
enum AutoTriggerOptions {
|
enum AutoTriggerOptions {
|
||||||
Disabled = "disabled",
|
Disabled = "disabled",
|
||||||
|
|
@ -19,13 +19,6 @@ enum AutoTriggerOptions {
|
||||||
EnabledYesWS = "y-ws",
|
EnabledYesWS = "y-ws",
|
||||||
}
|
}
|
||||||
|
|
||||||
enum SnippetType {
|
|
||||||
SLSR = 0,
|
|
||||||
SLMR = 1,
|
|
||||||
MLSR = 2,
|
|
||||||
MLMR = 3,
|
|
||||||
}
|
|
||||||
|
|
||||||
interface JellySnippetsSettings {
|
interface JellySnippetsSettings {
|
||||||
snippetsFile: string;
|
snippetsFile: string;
|
||||||
triggerOnSpace: AutoTriggerOptions;
|
triggerOnSpace: AutoTriggerOptions;
|
||||||
|
|
|
||||||
|
|
@ -11,3 +11,10 @@ export type Snippet = {
|
||||||
lhs: LHS;
|
lhs: LHS;
|
||||||
rhs: RHS;
|
rhs: RHS;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export enum SnippetType {
|
||||||
|
SLSR = 0,
|
||||||
|
SLMR = 1,
|
||||||
|
MLSR = 2,
|
||||||
|
MLMR = 3,
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue