File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { Notice , Plugin , MarkdownView } from 'obsidian' ;
22
33export default class DoNextTaskPlugin extends Plugin {
4- async onload ( ) {
4+ onload ( ) {
55 // Add ribbon icon for marking next task
6- this . addRibbonIcon ( 'check-circle' , 'Mark Next Task' , async ( ) => {
7- await this . markNextTask ( ) ;
6+ this . addRibbonIcon ( 'check-circle' , 'Mark next task' , ( ) => {
7+ this . markNextTask ( ) ;
88 } ) ;
99
1010 // Add command for marking next task
1111 this . addCommand ( {
1212 id : 'mark-next-task' ,
13- name : 'Mark Next Task ' ,
14- callback : async ( ) => {
15- await this . markNextTask ( ) ;
13+ name : 'Mark next task ' ,
14+ callback : ( ) => {
15+ this . markNextTask ( ) ;
1616 }
1717 } ) ;
1818 }
1919
20- async markNextTask ( ) {
20+ markNextTask ( ) {
2121 const activeView = this . app . workspace . getActiveViewOfType ( MarkdownView ) ;
2222
2323 if ( ! activeView ) {
You can’t perform that action at this time.
0 commit comments