{"id":13783660,"url":"https://github.com/wsw70/dly","last_synced_at":"2025-05-11T19:31:23.117Z","repository":{"id":65311230,"uuid":"588605430","full_name":"wsw70/dly","owner":"wsw70","description":"Your daily note from the command line","archived":false,"fork":false,"pushed_at":"2023-04-29T08:30:52.000Z","size":49,"stargazers_count":31,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-17T20:47:43.465Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wsw70.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-01-13T14:33:51.000Z","updated_at":"2024-09-03T16:25:35.000Z","dependencies_parsed_at":"2024-01-07T00:07:48.582Z","dependency_job_id":null,"html_url":"https://github.com/wsw70/dly","commit_stats":{"total_commits":19,"total_committers":2,"mean_commits":9.5,"dds":"0.10526315789473684","last_synced_commit":"164f70a740f2e24d50552348d1b2f7ec6f1631c2"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wsw70%2Fdly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wsw70%2Fdly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wsw70%2Fdly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wsw70%2Fdly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wsw70","download_url":"https://codeload.github.com/wsw70/dly/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253621049,"owners_count":21937468,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T19:00:27.841Z","updated_at":"2025-05-11T19:31:22.800Z","avatar_url":"https://github.com/wsw70.png","language":"Go","readme":"\u003c!-- markdownlint-disable MD040 MD009 --\u003e\n\n# `dly` - your daily note from the command line\n\nThis small utility was built because I needed a quick way to add one-line entries to my daily notes, from the command line. These would usually be some clever thoughts I do not want to forget, TODOs, things to buy, ...\n\nI do not want to start Logseq just for that (even though I mapped it to shortcuts) and so `dly` was born.\n\n## Installation\n\nThe binary `dly.exe` (or the relevant one for your OS) attempts to read a configuration file located in `.config/dly/dly.yml` in your home directory. It will try hard to find said home directory and will abort if this is not possible. Should you encounter such a case, please open a bug report (a Github Issue).\n\nIf the configuration file is not found, a minimal empty one will be created. **It is not yet functional as it**, you need to edit it to add your Logseq daily notes folder (I could automate that if I knew how).\n\nBinaries can be found in the Releases section.\n\n### Building from source\n\n```\ngo install github.com/wsw70/dly@latest\n```\n\n## Usage\n\nRun `dly.exe`, a pop-up window appears to allow you to type your line. Once you are done press `Enter` (or click `OK`) and your daily note is updated.\n\nIf you use a tool such as [AutoHotKey](https://www.autohotkey.com/), you could bind a key combination to run `dly`.\n\nExample for a hotkey under `Win-N`:\n\n```\n#n::Run \"D:\\Y\\dev-perso\\dly\\dly.exe\"\n```\n\n## Debugging\n\nIf you want to have a more verbose mode or help debug the program, you can set the environment variable `DLY_DEBUG` to the value `yes`. Below is an example of the consequences of setting it inline in PowerShell:\n\n```\nPS D:\\Y\\dev-perso\\dly\u003e go run . poiytporipoerit teprotperoite r eortieproit\n2023-01-13T15:05:29+01:00 INFO note D:\\Y\\Logseq\\journals\\2023_01_13.md updated\n\nPS D:\\Y\\dev-perso\\dly\u003e $env:DLY_DEBUG = 'yes'; go run . poiytporipoerit teprotperoite r eortieproit\n2023-01-13T15:06:27+01:00 DEBUG text starts on a new line\n2023-01-13T15:06:27+01:00 DEBUG backup note is C:TEMP\\2023_01_13.md\n2023-01-13T15:06:27+01:00 INFO note D:\\Y\\Logseq\\journals\\2023_01_13.md updated\n```\n\n## Configuration file\n\nThe configuration file located in `.config/dly/dly.yml` in your home directory is a YAML file that may contain the following directives\n\n| directive | mandatory? | type | meaning |\n| --- | --- | --- | :--- |\n| `DailyNotesPath` | yes | string | Path to the LogSeq daily notes (typically the `journal` folder in Logseq data directory)\n| `FilenameFormat` | yes | string | Format of your daily note, without the `.md` extension. The format follows (weird) Go formatting rules, see the [documentation](https://pkg.go.dev/time) or an [article](https://www.geeksforgeeks.org/time-formatting-in-golang/) for details. As a general rule, when you want to say \"the current year\" and expected something like `YYYY`, you use `2006` (yes, exactly this string). The \"current month\" is `01` and the \"current day\" is `02`. Yes this is insane. The default format (in the auto-generated file) is `2006_01_02` - this corresponds today to `2023_01_13` which in turns points to the file `2023_01_13.md`, which **Logseq** interprets as the date 2023-01-13.|\n| `AddTimestamp` | no | bool | Should your line be prefixed with a bolded timestamp? |\n| `AppendHashtag` | no | string | add the string as hashtag (example: `from-cli`, note the absence of `#` which will be automatically added) |\n| `ShowNotificationOnSuccess`\u003cbr\u003e(MS Windows only) | yes | bool | Show a tray notification when the note is added |\n| `ShowNotificationOnNewversion`\u003cbr\u003e(MS Windows only) | yes | bool | Show a tray notification when a new version of `dly` is available |\n\n## What next?\n\n- automated detection of the daily notes folder\n- cleanup of code, including more comments\n- more OSes (notably MacOS). It is easy to do but I need someone to test the binary (and information about where the home and temporary directories are)\n- anything you can think of\n\nFeel free to open Issues if you find bugs, or start Discussions.\n\nI should probbaly add a license but I do not care, so let it be [WTFPL](https://en.wikipedia.org/wiki/WTFPL).\n\nIf you have the irrestible need to share your gratitude, call someone you love or send money to a clever charity that helps with education.\n","funding_links":[],"categories":["others","🔍 CLI Tools and Scripts"],"sub_categories":["Misc CLI"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwsw70%2Fdly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwsw70%2Fdly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwsw70%2Fdly/lists"}