Skip to content

Commit

Permalink
Merge pull request #1147 from jaxwagner/master
Browse files Browse the repository at this point in the history
add notes app plugin
  • Loading branch information
pnhofmann committed Dec 28, 2023
2 parents ecc29d7 + 546f188 commit 6a5d984
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions jarviscli/plugins/notes.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import os
from colorama import Fore
from plugin import plugin, require, LINUX, MACOS

@require(native="gedit", platform=LINUX)
@plugin('open notes')
def open_notes__LINUX(jarvis, s):
"""Jarvis will open the notes application for you."""
jarvis.say("Opening notes.......", Fore.GREEN)
os.system("gedit")

@require(platform=MACOS)
@plugin('open notes')
def open_notes__MAC(jarvis, s):
"""Jarvis will open the Notes app for you."""
jarvis.say("Opening Notes.......", Fore.GREEN)
os.system('open /Applications/Notes.app')

0 comments on commit 6a5d984

Please sign in to comment.