Skip to content

Commit

Permalink
remove unused command in main.ts, version 1.0.0 done.
Browse files Browse the repository at this point in the history
  • Loading branch information
gbviktor committed Nov 25, 2023
1 parent 52715b2 commit c7a661d
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,6 @@ export default class IssueTrackerMain extends Plugin {

this.addInitialIssueTracker();

this.addCommand({
id: 'open-sample-modal-complex',
name: 'Open sample modal (complex)',
checkCallback: (checking: boolean) => {
// Conditions to check
const markdownView = this.app.workspace.getActiveViewOfType(MarkdownView);
if (markdownView) {
// If checking is true, we're simply "checking" if the command can be run.
// If checking is false, then we want to actually perform the operation.
if (!checking) {
// new SampleModal(this.app).open();
}

const document = markdownView.editor.getDoc();
const documentToReplace = document.getValue()
const changeDocument = this.renderIssueTrackers(this.settings.patterns, documentToReplace)
markdownView.editor.getDoc().setValue(changeDocument)

// This command will only show up in Command Palette when the check function returns true
return true;
}
}
});

// This adds an editor command that can perform some operation on the current editor instance
this.addCommand({
id: 'issue-tracker-open-editor',
Expand Down

0 comments on commit c7a661d

Please sign in to comment.