mirror of
https://github.com/rabirabirara/obsidian-jelly-snippets.git
synced 2026-07-22 04:34:09 +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 { Symbol } from "src/symbol";
|
||||
import { LHS, RHS, Snippet } from "src/snippet";
|
||||
import { LHS, RHS, Snippet, SnippetType } from "src/snippet";
|
||||
|
||||
enum AutoTriggerOptions {
|
||||
Disabled = "disabled",
|
||||
|
|
@ -19,13 +19,6 @@ enum AutoTriggerOptions {
|
|||
EnabledYesWS = "y-ws",
|
||||
}
|
||||
|
||||
enum SnippetType {
|
||||
SLSR = 0,
|
||||
SLMR = 1,
|
||||
MLSR = 2,
|
||||
MLMR = 3,
|
||||
}
|
||||
|
||||
interface JellySnippetsSettings {
|
||||
snippetsFile: string;
|
||||
triggerOnSpace: AutoTriggerOptions;
|
||||
|
|
|
|||
|
|
@ -11,3 +11,10 @@ export type Snippet = {
|
|||
lhs: LHS;
|
||||
rhs: RHS;
|
||||
};
|
||||
|
||||
export enum SnippetType {
|
||||
SLSR = 0,
|
||||
SLMR = 1,
|
||||
MLSR = 2,
|
||||
MLMR = 3,
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue