Skip to content

Jekyll

Current Thoughts

I'm currently thinking of having 3 online note taking places:

  • The first is this Jekyll site for keeping a log of activities and thoughts.
  • Second is a Todo Tiddlywiki site with three index pages - Active, Perhaps, and Completed Tasks.
  • Third is MkDocs - it's still the best product for documentation. Although I have to admit to being pretty happy with the paper notes I took from the Tech With Tim curses playlist on Youtube. Maybe I don't need a documentation site at all.

And I think it would be nice to have these all on a fairly low powered Raspberry Pi. Maybe the Pi 4 I've got or maybe even trying it on an old Pi 2. I think I'll look up the power consumption difference. Although thinking about it, not having USB3 on the Pi 2 is a strike against the Pi 2.

More Jekyll Manager Curses Notes

One of the stack overflow articles recommends using curses.endwin() before exiting to a subprocess like vim, and stdscr.refresh() upon returning.

I also need to fix the system so that the number of entries shown on the main screen is variable and calculated based on the number of rows (which curses calls lines) available in the terminal. Pretty much working, but when there's less than a full page at the end, the highlight doesn't work well. Got that.

I should also create a menu entry which lets the user run the update jekyll script from the manager, so they don't have to do it separately. Got that. Nice.

Jekyll Manager Curses Version

The Jekyll Manager Curses Version on the Beelink i3 (/home/terry/GT_blog/jmc.py) is working well. I need to add an alias to it and put it in the opening message. Did that, the alias is jm and the script it runs is jm.sh.

I tried to do things differently this time. All I did was create a python program that just used print, input, and various subprocess statements to print out the entry information and use the number of the one that I wanted to edit. Once I got that python program working, I then went ahead and slowly used that as a template to create a curses based version of the same basic logic. And it works great. I'd still like to add colors to it, but it's pretty darn good. I think I have to recall wrapper everytime I go away to vim because the bottom menu can be messed up. Or maybe I can start vim in a new window and not mess with the curses app at all.

I think I should be able to do the same sort of thing using jekyll and the same setup to do a todo list. Just use the tags completed, progressing, perhaps, and maybe 1 or 2 more then use the tag menu on the jekyll site to view the stuff.