Live data from Hacker News

The Plain Text Project

plaintextproject.online

131–140 of 208 posts

Re: The Plain Text Project

#131
post #129
post #33

Recently I decided that I was going to solve the problem of: I easily write inline TODO comments while I work on code, but then have difficulty keeping track of them and getting my head back into the state of things later. While there is IDE support for such things, it's usually not exactly the right interface I want. So I made a tiny CLI app that scans the source for TODO and FIXME lines and presents a menu of files…

Related to this. I write comments for TODOs that I want completed before I commit with a special prefix like: //hhh I want this to be done before I commit. Then have a git pre-commit hook that scans for "//hhh" and aborts if it's found.

Same with XXX instead, which even gets auto-highlighted by many editors.

Re: The Plain Text Project

#133

I use this plain text planner / calendar every day and I love it, if I can say so myself, since I made it too. I've been using it for a few years now and I can say that it has definitely made me more productive. https://crushentropy.com/ You can plan and log your day in plain text and it visualizes your schedule. Markdown for planning, if you will.

Sounds great. Did you open source the parser?

Re: The Plain Text Project

#134
post #33

Recently I decided that I was going to solve the problem of: I easily write inline TODO comments while I work on code, but then have difficulty keeping track of them and getting my head back into the state of things later. While there is IDE support for such things, it's usually not exactly the right interface I want. So I made a tiny CLI app that scans the source for TODO and FIXME lines and presents a menu of files…

Just be careful about Microsoft's Patent US6748582B1; it doesn't expire for another few months. ;)

From the patent (edited down a bit):

> According to various example implementations of the invention, a task list facilitates code development by assisting developers in keeping track of and managing a variety of tasks, such as errors to be corrected, opportunities for optimization, and other user-defined tasks. As the developer edits source code, warnings and coding errors are detected and inserted as tasks in a task list. The developer can also embed keywords known as comment tokens in the code. These comment tokens are detected and used to define tasks.

> [...]

> Tasks can also be identified using tokens or keywords. These tokens or keywords typically preface comment lines in the code and may include predefined labels such as, for example, “UNDONE,” “TODO,” or “HACK,” as well as labels that are defined by the individual developer. If the source code has no syntax errors, the parser [...] determines whether any of the keywords are present in the source code[.] If so, [it] extracts the comment from the source code and uses the tag to determine the priority of the task. The task is then inserted in the task list[.] For example, if the source code contains the comment, “/TODO: Need to add copyright text/”, the parser [...] adds the task “TODO: Need to add copyright text” to the task list with a priority rating assigned to the “TODO” tag. [1]

[1] http://patents.google.com/patent/US6748582B1/en

Re: The Plain Text Project

#135
Does anyone know of a system for managing contacts in plain text? I would love some CLI I could use to fuzzy search contacts, making it easy to grab info to my clipboard for using email clients like mutt or aerc.

Re: The Plain Text Project

#136
post #46

Earlier quoted context omitted.

Markor works well on Android.

This is what I'm using now, and it seems to be working well although I'll point out that it is nagware. I'll put up with the intermittent begging for donations over ads, in-app purchases, and data mining you'd find on other apps.

Could it be that you had in mind a different app? Markor is completely free (no paid version) and has never nagged me

Re: The Plain Text Project

#137

Does anyone know of a system for managing contacts in plain text? I would love some CLI I could use to fuzzy search contacts, making it easy to grab info to my clipboard for using email clients like mutt or aerc.

  tre-agrep -3 "Joohn Doe" contacts.txt|cut -d':' -f1

Re: The Plain Text Project

#138
post #33

Recently I decided that I was going to solve the problem of: I easily write inline TODO comments while I work on code, but then have difficulty keeping track of them and getting my head back into the state of things later. While there is IDE support for such things, it's usually not exactly the right interface I want. So I made a tiny CLI app that scans the source for TODO and FIXME lines and presents a menu of files…

> So I made a tiny CLI app that scans the source for TODO and FIXME lines and presents a menu of files, containing the number of items to work on in each. Then I type in which file I want to work on and it instantly reports all relevant lines, plus successive comment lines. All I have to do is punch in the line number and start working.

Isn't this exactly like how cscope works?

Re: The Plain Text Project

#139

Does anyone know of a system for managing contacts in plain text? I would love some CLI I could use to fuzzy search contacts, making it easy to grab info to my clipboard for using email clients like mutt or aerc.

I don't know of an existing system, but you could look into constructing something using FZF and a plain text file of contacts names and email addresses formatted in a specific way.

https://github.com/junegunn/fzf

Re: The Plain Text Project

#140
post #61

Earlier quoted context omitted.

I use IntelliJ as well for years, but don't underestimate grep -r "# TODO" .

This only works depending on how diligently you formatted those TODOs. Before you know it your regex explodes. I use IntelliJ as well, so I don't have to think about these problems.

Does IntelliJ do something smarter than a regex to find TODO?
Post reply on HN