14 ms·
Glow: Markdown reader for the terminal with a TUI and encrypted cloud stash
- cocktailpeanuts 6y agoI want this as an editor, with VIM support :)
- suprfnk 6y agoWhat does this do that Vim doesn't, for you?
- cocktailpeanuts 6y agoThis doesn’t seem to let me edit, for starters.
- D2187645 6y agoIts backed up to the cloud out of the box.
- RMPR 6y agoThere's no Cloud it's just someone else's computer
- hackerm0nkey 6y agoI've installed it and I felt the same as what you mentioned :) Then I saw Goyo Vim plugin
- dangoljames 6y agoI've done something similar but as a python flask app that uses a web browser as a reading/writing platform, that keeps it's (unencrypted) stash in a local directory (it's a 'localhost only' webservice). It's functional but crude so nothing on github just yet ;)
- charles_f 6y agoHehe, since we're on the topic of shameless plugs, I have one in typescript - it's ready and I'm using it extensively. Serves locally as you described by using --serve https://www.npmjs.com/package/plaf https://www.npmjs.com/package/plaf
- teilo 6y agoLove this. Instant install.
- camgunz 6y agoThe Charm project looks awesome, almost get a feel for “post web apps” there. Interesting.
- hk__2 6y ago> Glow works with the Charm Cloud to allow you to store any markdown files in your own private collection. Why would I want to store my files on someone else’s computer rather than in a git repo on mine?
- jws 6y ago- You might switch between several computers throughout the day. - You might believe the cloud folks do better backups than you.
- woodruffw 6y agoI'm sympathetic to the idea that a company is going to be better at doing backups and maintenance than I am, but for the first point: it sounds like they're using the local machine's SSH key to wrap a symmetric key[1]. Unless you're sharing the same SSH key across all of your machines, this tool probably isn't very useful when switching between computers. Edit: It looks like they generate their own SSH key instead of using an already present one[2]. So you'd presumably need to copy that to each machine that you'd want to use so that it can unwrap the real (cloud-stored) decryption key. [1]: https://github.com/charmbracelet/charm#how-it-works https://github.com/charmbracelet/charm#how-it-works [2]: https://github.com/charmbracelet/charm/blob/master/keygen/keygen.go#L77 https://github.com/charmbracelet/charm/blob/master/keygen/ke...
- tobypadilla 6y agoHi! I'm one of the Charm co-founders. We actually issue a new Charm specific SSH key for you. We then allow you to link machines together with our `charm` account utility. The symmetric keys used to encrypt data are encrypted for each public key linked to your account so you can access your data from multiple machines.
- woodruffw 6y agoThanks for the explanation! Glad to hear you've thought out and handled the linking process. Just out of curiosity: have you seen or considered age[1] for the symmetric pair? I've used it on a few projects where cryptographic flexibility wasn't necessary. [1]: https://github.com/FiloSottile/age https://github.com/FiloSottile/age
- buf 6y agoI prefer to do this directly in vim with Goyo: https://github.com/junegunn/goyo.vim https://github.com/junegunn/goyo.vim
- Jestar342 6y agoYup, same. Excellent plugin.
- stiff 6y agoVim can't highlight Markdown correctly because it does highlighting via regexps. For correct parsing and thus for correct highlighting of Markdown you need a real parser. See e.g. this: https://github.com/tpope/vim-markdown/issues/4 https://github.com/tpope/vim-markdown/issues/4
- auxym 6y agoIs this limitation of most general code editors? Has neovim fixed this?
- mfontani 6y agoNeovim has an experimental language parser which is still in its early days, but might just help: https://github.com/nvim-treesitter/nvim-treesitter https://github.com/nvim-treesitter/nvim-treesitter Specifically, for Markdown: https://github.com/ikatyang/tree-sitter-markdown https://github.com/ikatyang/tree-sitter-markdown
- BlackLotus89 6y agoNeovim will have treesitter in the next major release, so yes probably.
- deleted 6y ago[deleted]
- lou1306 6y agoSomewhat related: there is a Pandoc "writer" on GitHub that pretty prints most formats supported by Pandoc (including Markdown, of course). https://github.com/Orange-OpenSource/pandoc-terminal-writer https://github.com/Orange-OpenSource/pandoc-terminal-writer I contributed some changes back in 2019. The writer is written in Lua and the lead maintainer seems happy to welcome PRs.
- kps 6y agoThanks for pointing that out. (I've been using `pandoc -t html | elinks -dump -stdin` in my ~/.lessfilter)
- minerjoe 6y agoLooks great! Love CLI/TUI. That said, can someone please post a summary of what charm.sh is about? I don't use javascript and nothing comes up on the page.
- colesantiago 6y agoturn on javascript?
- minerjoe 6y agoI don't use a browser with javascript. I cannot turn it on.
- colesantiago 6y agoso what is stopping you from using a modern browser like firefox to view the site with javascript?
- 0xdeadb00f 6y agoIn disabled JavaScript and I can read the page fine.
- leephillips 6y agoIf you have Pandoc installed, you can get just the rendering/reading with something like pandoc -i file.md | w3m -T text/html
- carterschonwald 6y agopandoc is great :)
- RMPR 6y agoAnd couple it with entr to emulate live preview
- lbj 6y agoAbsolutely love this, very well done!
- zepto 6y agoVery nice tool. One issue is that the color scheme doesn’t work well with a white background, or a monochrome display.
- johnghanks 6y agowhy
- eeZah7Ux 6y agoA text file in git or syncthing does the same.
- ashton314 6y agoThis is way fancier than my project, which renders markdown (or anything pandoc can read) as a man page: https://github.com/ashton314/marked-man https://github.com/ashton314/marked-man
- JdeBP 6y agoNote that you can actually get colour and proper italics and boldface out of groff (specifically grotty). They are actually in there in the vanilla tool, but are disabled by overrides on several operating systems. * http://jdebp.uk./Softwares/nosh/italics-in-manuals.html http://jdebp.uk./Softwares/nosh/italics-in-manuals.html
- dpedu 6y agoThis is cool, but I want to run my own server.
- koheripbal 6y agoOn windows I use Typora. Since I use markdown lists as a journal and project notes, I'm usually doing it on windows.
- phenax 6y agoI love using glow as a markdown previewer for my file manager lf. But what the hell is up with everything else they are trying to do. Just be a good markdown viewer!