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

view memo #23

Closed
lanox opened this issue Jul 9, 2018 · 3 comments
Closed

view memo #23

lanox opened this issue Jul 9, 2018 · 3 comments

Comments

@lanox
Copy link

lanox commented Jul 9, 2018

It would be nice if you can view the memo rather having to go and edit it to see the conten, or that feature is there already.

@mattn
Copy link
Owner

mattn commented Jul 10, 2018

memo serve start web sever that can look the text as markdown.

@lanox
Copy link
Author

lanox commented Jul 10, 2018

I got that, but would be nice to view the memo from cli. I think its more faster/better to have it all in cli at least my 5c worth.

robotamer added a commit to gotamer/memo that referenced this issue Jun 6, 2019
mattn pushed a commit that referenced this issue Jun 8, 2019
@luv2code
Copy link
Contributor

luv2code commented Feb 20, 2020

I wrote a little plugin in bash to view the output formatted:
I put an executable file called view in my plugins dir:
https://github.com/luv2code/dotfiles/blob/master/memo/plugins/view

This requires three external tools one external tool to be installed:

  • glow: go get -u github.com/charmbracelet/glow - https://github.com/charmbracelet/glow
  • peco: apt install peco - for choosing files
  • marked: npm install --global marked - for taking gfm input and outputting html
  • elinks: apt install elinks - a cli web browser. the --dump option takes html on stdin and formats it for CLI.

@lanox lanox closed this as completed Jun 27, 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

No branches or pull requests

3 participants