Show HN: Posce, a note-taking toolkit for your command-line
github.com
github.com
for the env vars, i hope there are defaults that make even setting the env vars optional and not needed unless i want to change the defaults.
This is why the XDG spec exists. Use XDG_CONFIG_HOME, not HOME.
I don't feel strongly about config file vs env var for just 2 settings, but seems worth noting. Dropping a dotfile right into your home directory is old school and needs to go away.
Even on my relatively clean Windows system, that directory contains config files generated by NPM and Scoop.
Would you still feel like dropping things in HOME was tidy if hidden files weren't a thing? You can also back up XDG_CONFIG_HOME without grabbing garbage like cache data.
I don't look at my HOME directory often, I usually start from a subdirectory of HOME that has what I'm looking for. Is that why people prefer XDG_CONFIG_HOME, because they look at HOME a lot? I guess I can understand that.
I actually also prefer putting config files in HOME. I don't feel strongly enough to argue about it, I just prefer it.
However, one thing I think must be required from such a tool is a full text search engine. The find subcommand appears to only use substrings or regular expressions which can be very limiting when trying to find that note you made about server xyz and some service abc on it. A regex that would sufficiently find that escapes me, if it's even possible.
eg. i want to find all notes that contain the terms "linux" and "webserver" in any order anywhere in the note.
it may be possible to write a multiline regexp to do that, but it's not trivial, and this would be a common use case
## Why use this instead of ls/grep/wget/etc?
Posce is one app using one system on one directory. It's a very focused app, and that focus gives it a level of stability and uniformity I enjoy. Also, by using a single notes directory, you can use disambiguated names and get incredible brevity when entering commands.