Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Commit 2d56a4c

Browse files
authored
Merge pull request #4 from nickrallison/dev
Implemented pr feedback
2 parents 7948ab0 + 4a7991e commit 2d56a4c

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

main.ts

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import { App, Editor, FileSystemAdapter, MarkdownView, Modal, Notice, Plugin, PluginSettingTab, Setting } from 'obsidian';
2-
var path = require('path');
3-
var fs = require('fs');
4-
const { exec } = require('child_process');
5-
// Remember to rename these classes and interfaces!
6-
2+
import * as path from 'path';
3+
import * as fs from 'fs';
4+
import { exec } from 'child_process';
75

86

97
interface PythonScripterSettings {
@@ -51,11 +49,7 @@ export default class PythonScripterPlugin extends Plugin {
5149
//new Notice("Error creating " + this.pythonDirectory);
5250
}
5351

54-
55-
56-
57-
58-
var files: [string] = fs.readdirSync(this.pythonDirectory);
52+
var files: string[] = fs.readdirSync(this.pythonDirectory);
5953
for (var index = 0; index < files.length; index++) {
6054
const filePath = path.join(this.pythonDirectory, files[index]);
6155
const fileName = files[index];
@@ -96,14 +90,9 @@ export default class PythonScripterPlugin extends Plugin {
9690
this.addCommand(obsidianCommand);
9791
}
9892

99-
100-
101-
10293
// This adds a settings tab so the user can configure various aspects of the plugin
10394
this.addSettingTab(new PythonScripterSettingTab(this.app, this));
10495

105-
// When registering intervals, this function will automatically clear the interval when the plugin is disabled.
106-
this.registerInterval(window.setInterval(() => console.log('setInterval'), 5 * 60 * 1000));
10796
}
10897

10998
onunload() {

0 commit comments

Comments
 (0)