Skip to content

Commit

Permalink
Mod removed and add Action menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Acidham committed Aug 17, 2019
1 parent 60f8707 commit 650ca36
Show file tree
Hide file tree
Showing 9 changed files with 2,313 additions and 617 deletions.
Binary file modified Markdown Notes.alfredworkflow
Binary file not shown.
22 changes: 22 additions & 0 deletions src/MyNotes.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,28 @@ def isNoteTagged(self, file_path, tag):
break
return match

@staticmethod
def get_search_config(q):
"""
Returns search config tuple
Args:
q (string): Search Query e.g. Searchterm1&Searchtem2
Returns:
tuple: Search Terms and operator
"""
if '&' in q:
s_terms = q.split('&')
s_type = 'and'
elif '|' in q:
s_terms = q.split('|')
s_type = 'or'
else:
s_terms = [q]
s_type = 'or'
return s_terms, s_type

@staticmethod
def getTodayDate(fmt="%d.%m.%Y"):
now = datetime.datetime.now()
Expand Down
Loading

0 comments on commit 650ca36

Please sign in to comment.