Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SilentVoid13 committed Nov 7, 2020
1 parent 063ff35 commit 4c1eef4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"id": "templater-obsidian",
"name": "Templater",
"version": "0.1",
"description": "Create custom templates",
"version": "0.1.0",
"description": "Create and use templates",
"author": "SilentVoid",
"authorUrl": "https://github.com/SilentVoid13",
"isDesktopOnly": false
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "templater",
"name": "templater-obsidian",
"version": "0.1.0",
"description": "Create custom templates",
"description": "Create and use templates",
"main": "main.js",
"scripts": {
"dev": "rollup --config rollup.config.js -w",
Expand Down
5 changes: 2 additions & 3 deletions src/internal_templates.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { request } from 'http';
import axios from 'axios';

// An Internal template function takes no argument and must return a string.
// Give your function the same name as the associated template pattern.
// Your function should have the same name as the associated template pattern.
// This string will replace the template pattern (see the replace_internal_templates function)

// Hashmap where the template pattern is the key and the associated function is the value.
// Just add your template pattern and your internal template function here to add it to the plugin.
// Just add them here to add your internal template to the plugin.
export const internal_templates_map: {[id: string]: Function} = {
"{{templater_daily_quote}}": templater_daily_quote,
};
Expand Down
6 changes: 2 additions & 4 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { App, HoverPopover, MarkdownSourceView, MarkdownView, MenuDom, MenuGroupDom, Modal, Notice, Plugin, PluginSettingTab, Setting, TAbstractFile, TFile, WorkspaceLeaf } from 'obsidian';
import { exec, execSync } from 'child_process';
import { setFlagsFromString } from 'v8';
import { textSpanContainsPosition } from 'typescript';
import { App, MarkdownView, Notice, Plugin, PluginSettingTab, Setting, TAbstractFile, TFile } from 'obsidian';
import { exec } from 'child_process';
import { promisify } from "util";

import { internal_templates_map, replace_internal_templates } from "./internal_templates";
Expand Down

0 comments on commit 4c1eef4

Please sign in to comment.