Live data from Hacker News

Keeping a plaintext “did” file

theptrk.com

161–170 of 202 posts

Re: Keeping a plaintext “did” file

#161

For those who use Emacs, org-capture is probably the way to go: https://orgmode.org/manual/Capture.html#Capture

And for those who don't use emacs, starting to use emacs & then adopting org-capture is probably the best way to go!

I mean, you can tortuously gin up some plaintext format by hand, or you can use Org mode; you can tortuously gin up a skin over git by hand, or you can use Magit; you can tortuously gin up a skin over wget/curl by hand, or you can just use eww.

Re: Keeping a plaintext “did” file

#162

In case it's useful to anyone (or they want to pick at my code), here's a quick and dirty python thing I use to automate timestamps on journal entries. It just accepts strings of text and saves them in a file named with today's date and a time above each entry. import time user_input = "" date_string = '-'.join([str(n).zfill(2) for n in time.localtime(time.time())[0:3]]) while user_input != "q": user_input = raw_inpu…

Thanks - this is cleaner than what I was using for something similar. Here's my version:

  import datetime
  user_input = raw_input("Log entry: ")
  with open("did.log", "a") as timelog:
      timelog.write('\n')
      timelog.write(datetime.datetime.now().strftime("%Y-%m-%d %H:%M (%a)"))
      timelog.write(': ')
      timelog.write(user_input)

Re: Keeping a plaintext “did” file

#163
post #138

Earlier quoted context omitted.

You might be interested in the vimwiki plugin. The diary feature automatically creates pages per day named with a datestamp. Grep to search.

+1 for vimwiki; all plain text, with some light organization sprinkled on top. I've gone the OneNote/Evernote/GoodNotes route and keep coming back to vimwiki. If I could find a non-kludgy way to get it on iOS, my grail will have been found. You don't even need grep , as vimwiki has built-in search: " :VWS /pattern/ Search for /pattern/ in all files of current wiki. To display all matches use |:lopen| command. To disp…

I'm also searching for a good solution on iOS.

My current kludgy method is to upload the files to S3 and hit my tiny flask server via WorkflowApp to read the contents. It's not great, but achieves what I need it to do.

Re: Keeping a plaintext “did” file

#164
post #155

For a decade or so, I've been using `vim -o ~/{todo,progress,done}` That gives me vim with three splits. Every day I add a new heading with the current date in the bottom split, then in the top one I list the things I plan to do that day. As new urgent work comes in throughout the day, I add it to the top split too. When I start working on something, I move it to the middle split. If I have to shift between tasks, I'…

This is great! I might end up doing something like `alias todo=vim -o ~/{todo,progress,done}` edit: I was curious so pulled up the man page: changing -o to -O opens the windows horizontally stacked.

Yep, -o will have your work flow top to bottom, -O will have it flow left to right. I prefer the former because it gives me more horizontal space on each line.

Re: Keeping a plaintext “did” file

#165
post #138

Earlier quoted context omitted.

You might be interested in the vimwiki plugin. The diary feature automatically creates pages per day named with a datestamp. Grep to search.

+1 for vimwiki; all plain text, with some light organization sprinkled on top. I've gone the OneNote/Evernote/GoodNotes route and keep coming back to vimwiki. If I could find a non-kludgy way to get it on iOS, my grail will have been found. You don't even need grep , as vimwiki has built-in search: " :VWS /pattern/ Search for /pattern/ in all files of current wiki. To display all matches use |:lopen| command. To disp…

i have a folder of plain text files that i use as my notes (my understanding is that vimwiki stores them the same way); i store them in a folder in my dropbox and use 1Writer as the iOS interface to them; it works very well!

Re: Keeping a plaintext “did” file

#166

Does anyone know of a good open source text-based journaling system that lets you easily inline images/audio/video/etc, with render-to-html functionality? My goal is to document what's going on in my life, and that's not really possible with only text. This is where Evernote really shines in my opinion. I've been missing that functionality ever since I got off Evernote. Been wanting to create a basic system for mysel…

Emacs Org mode fits that requirement nicely.

Org mode (a plain text format ljke Markdown, but much more than that) files export easily to Markdown, HTML, tex/PDF, and multitude of other formats using Emacs itself or even Pandoc.

My site (in my HN profile), for example contains text, images, etc. The content source is in Org mode.

Re: Keeping a plaintext “did” file

#168
post #26

Similar but not the same: most days day at work I create one or more txt files in notepad (kate to be exact) where I paste every temporary info while I work on some task. Basically everything that doesn't go to git, and you have to keep somewhere while you're working on it: - nonobvious terminal commands or small scripts I had to write - fixes for enviromental/configuration problems - fragments of stacktraces - fragm…

If it's appropriate, would it be easier to use a clipboard enhancer that writes everything you copy to a file? I use ClipX at work (Windows), fairly sure it has a logging feature, and I think it can be told not to record from password fields; and Flycut at home (Mac) but Flycut doesn't seem to have logging.

That's a great way to end up with your passwords in a plaintext file

Re: Keeping a plaintext “did” file

#169
I wish all linux servers had something like this, out of the box, for all users.

the first thing I do after sshing into a box is spend an hour trying to figure out the basics. Where are the web folders? what daemons is running? what hacks does have in place?

Re: Keeping a plaintext “did” file

#170

For a decade or so, I've been using `vim -o ~/{todo,progress,done}` That gives me vim with three splits. Every day I add a new heading with the current date in the bottom split, then in the top one I list the things I plan to do that day. As new urgent work comes in throughout the day, I add it to the top split too. When I start working on something, I move it to the middle split. If I have to shift between tasks, I'…

This is so funny. It’s almost like a kanban board in vim. What’s your strategy for saving the files?
Post reply on HN