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

Add history function for the past page view. #53

Merged
merged 6 commits into from
Oct 5, 2020

Conversation

wudong
Copy link
Contributor

@wudong wudong commented Jul 31, 2020

What I did:
Add history function into tldr.

Why I did it:
Often I want to review what I have searched, and to see if there are some information I should remember instead going back to tldr constantly. This history function keeps the history for what I have searched and allow me to review easily later.

@codecov-commenter
Copy link

codecov-commenter commented Jul 31, 2020

Codecov Report

Merging #53 into master will decrease coverage by 2.79%.
The diff coverage is 62.26%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #53      +/-   ##
==========================================
- Coverage   62.70%   59.90%   -2.80%     
==========================================
  Files           3        3              
  Lines         185      222      +37     
==========================================
+ Hits          116      133      +17     
- Misses         44       57      +13     
- Partials       25       32       +7     
Impacted Files Coverage Δ
cache/cache.go 53.37% <62.26%> (+0.03%) ⬆️
platform.go 77.77% <0.00%> (-3.18%) ⬇️
render.go 92.30% <0.00%> (-0.80%) ⬇️

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 6c123be...6486b18. Read the comment docs.

Copy link
Owner

@mstruebing mstruebing left a comment

Choose a reason for hiding this comment

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

Hey @wudong thank you very much for your PR 🚀

Sorry for the long delay, but I was busy with work and after that I didn't remembered this PR anymore.
Very good code and a cool feature, I just mentioned some minor changes, would be cool if you could make them happen.

cmd/tldr/main.go Outdated Show resolved Hide resolved
cmd/tldr/main.go Outdated Show resolved Hide resolved
cache/cache.go Outdated Show resolved Hide resolved
cache/cache.go Outdated Show resolved Hide resolved
cache/cache.go Outdated Show resolved Hide resolved
cache/cache.go Outdated Show resolved Hide resolved
cache/cache.go Outdated Show resolved Hide resolved
cache/cache.go Outdated Show resolved Hide resolved
cache/cache.go Outdated Show resolved Hide resolved
cmd/tldr/main.go Outdated Show resolved Hide resolved
@wudong
Copy link
Contributor Author

wudong commented Oct 4, 2020

Hi @mstruebing, all very valid points, thanks a lot. I have address the comments now.

@mstruebing mstruebing merged commit a91ffbe into mstruebing:master Oct 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants