Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove and search notes #59

Closed
wants to merge 0 commits into from
Closed

Remove and search notes #59

wants to merge 0 commits into from

Conversation

AyushP90
Copy link

Short description of what this resolves:

Delete notes and search for them using a substring

Changes proposed in this pull request:

  • Can remove notes now
  • Searching is done using substring matching
  • Temporary fix to 42

Fixes: #42

@codecov-io
Copy link

Codecov Report

Merging #59 into master will decrease coverage by 0.71%.
The diff coverage is 6.52%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #59      +/-   ##
==========================================
- Coverage   27.61%   26.89%   -0.72%     
==========================================
  Files          18       18              
  Lines        1159     1201      +42     
==========================================
+ Hits          320      323       +3     
- Misses        839      878      +39
Impacted Files Coverage Δ
yoda.py 38.2% <ø> (ø) ⬆️
setup.py 100% <ø> (ø) ⬆️
util.py 32.14% <25%> (-0.55%) ⬇️
modules/diary.py 16.58% <4.76%> (-2.58%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2e21752...cc4b021. Read the comment docs.

Copy link
Member

@manparvesh manparvesh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make the commented changes and also remove the 2 .swp files

modules/diary.py Outdated
@@ -237,7 +237,63 @@ def complete_task():
chalk.red(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove the above .swp files

@@ -676,3 +676,5 @@ parlous - full of danger or uncertainty; precarious
pilloried - attack or ridicule publicly; pillory is a wooden shackle
expatiate - speak or write at length or in detail
man - someone who serves in the armed forces; a member of a military force
work - make uniform
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove the changes from this file

modules/diary.py Outdated
time = entry['time']
text = entry['text']
click.echo(time + "| " + text)
click.echo("--" + str(counter) + "---|" + time + "| " + text)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please reformat the files you've changed using autopep8 after you're finished working on them

modules/diary.py Outdated
else:
chalk.red(
'There are no notes for today. Add a new note by entering "yoda diary nn"')

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, this is not what I meant by searching the notes. I would like to give the user an option to search in the previous notes. There is no point in searching today's notes, right?

@AyushP90
Copy link
Author

AyushP90 commented Dec 12, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants