https://github.com/cetanu/dailylog
small util for writing or appending to a daily journal
https://github.com/cetanu/dailylog
Last synced: about 1 year ago
JSON representation
small util for writing or appending to a daily journal
- Host: GitHub
- URL: https://github.com/cetanu/dailylog
- Owner: cetanu
- License: other
- Created: 2025-06-02T01:06:33.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-06-02T01:52:48.000Z (about 1 year ago)
- Last Synced: 2025-06-02T11:05:22.064Z (about 1 year ago)
- Language: Rust
- Size: 10.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🗓️ dailylog
A minimal journaling tool
## ✨ Features
- Opens your `$EDITOR` (defaults to `vim`) to write an entry
- Saves or appends your input to `YYYY-MM-DD.txt`
- Configurable log directory via a simple TOML config
- Clean, dependency-light, and terminal-native
## 📦 Installation
Requires Rust toolchain. [Install Rust](https://www.rust-lang.org/tools/install)
### Build from source
```bash
git clone https://github.com/cetanu/dailylog.git
cd dailylog
cargo build --release
cp target/release/dailylog ~/.local/bin/
```
### Install via Cargo
```bash
cargo install dailylog
```
## ⚙️ Configuration
Create a config file at `~/.dailylog.toml`:
```toml
log_dir = "/path/to/your/log/folder"
```
Make sure this directory exists, or `dailylog` will try to create it on first run.
## Usage
```bash
dailylog
```
This will:
1. Open your editor (via `$EDITOR` or default to `vim`)
2. Save whatever you type into a file named like `2025-05-31.txt` inside your configured directory
3. Append if the file already exists
Note: on shells like `fish`, sometimes `$EDITOR` is not set to propagate to child processes. You can fix this with `set -Ux EDITOR myEditor`