all repos — blog @ 47d08ca936a8c426183d6500a348d6f254b703f9

Code and content for 5ika.ch

Add side-projects
Tim Izzo tim@5ika.ch
Mon, 19 May 2025 17:04:01 +0200
commit

47d08ca936a8c426183d6500a348d6f254b703f9

parent

15cfcc735dd774458db83036cc90605d17d9141e

M assets/css/style.cssassets/css/style.css

@@ -32,6 +32,10 @@ color: var(--text-secondary);

border-left: 6px solid var(--color-primary); } +:not(a) > img { + width: 100%; +} + a { color: var(--color-primary); text-decoration: none;
A content/dev/todo.txt-go.md

@@ -0,0 +1,76 @@

+--- +Title: todo.txt-go +--- + +**todo.txt-go** is a TUI program for [todo.txt](http://todotxt.org/) written in Go. +It provides a minimalistic and efficient interface in the terminal to handle todo list following [todo-txt format rules](https://github.com/todotxt/todo.txt) stored in a plain text file. + +![Demo](/todo.txt-go.gif) + +## Installation + +Ensure that you have a supported version of Go properly installed and setup. + +You can then install the latest release globally by running: + +```bash +git clone https://5ika.ch/todo.txt-go.git +cd todo-txt +go install +``` + +`todo-txt` is now available in your terminal. + +## Configuration + +Tasks are stored in a `todo.txt` file in the `TODO_DIR` directory. +By default, the `TODO_DIR` is `$HOME/.todo` but you can change it +with two ways: + +- By setting `TODO_DIR` environment variable + + ```bash + export TODO_DIR=~/tasks + todo-txt + ``` + +- By using `-dir` flag + + ```bash + todo-txt -dir ~/tasks + ``` + +## Use + +### Keymaps + +- `Up` or `Down`: Move cursor +- `Shift+Up` or `Shift+Down`: Move focused task +- `A` or `+`: Add a new task +- `Enter`: Edit focused task +- `Space`: Check/Uncheck focused task +- `a`, `b`, `c`, `d`: Set priority level for focused task +- `z`: Clear priority of focused task +- `p`: Sort task by priority +- `s`: Sort task by date +- `u`: Clear done tasks (move them to *done.txt*) +- `q`: Quit + +### Due date + +Additionnaly, it handles due dates as a [custom *key:value* metadata](https://github.com/todotxt/todo.txt?tab=readme-ov-file#additional-file-format-definitions). +Example: + +``` +(B) Review pull request #123 @work +code due:2025-09-05 +``` + +### Clear tasks history + +Done tasks are archived to *done.txt* file when `u` is entered. + +## Contribution + +Intrested by this project ? [Contact me](https://5ika.ch) + +Code is available here: https://git.5ika.ch/todo.txt-go.git
M layouts/garden/single.htmllayouts/garden/single.html

@@ -2,12 +2,4 @@ {{ define "main" }}

<h1>{{ .Title }}</h1> {{ .Content }} <hr/> - <p> - <i> - Cette page vous est utile ? Vous avez vu une coquille ou vous avez une suggestion d'amélioration ? - <br/> - Dites-le moi sur <a href='https://tooting.ch/@5ika' target="_blank">Mastodon</a> - ou <a href='mailto:tim@5ika.ch'>par email</a> car je n'ai pas d'autre moyen de le savoir :-) - </i> - </p> {{ end }}
M layouts/shortcodes/projects.htmllayouts/shortcodes/projects.html

@@ -17,3 +17,15 @@ <a href='/circuitcourt'>đźš´ CircuitCourt</a>

<p>Plateforme Open-Source permettant aux agriculteurs et transformateurs alimentaires locaux de vendre leur production, sans intermédiaire, aux consommateurs de la région.</p> </div> </div> + +<h4>Side-projects</h4> +<div class="projects"> + <div class="project"> + <a href='/dev/todo.txt-go'>✅ todo.txt-go</a> + <p>TUI développée en Go pour gérer une liste de tâches selon le format todo.txt.</p> + </div> + <div class="project"> + <a href='/dev/kokyo'>🚍 Kokyo</a> + <p>Chatbot permettant d’obtenir rapidement des informations sur les transports en commun dans toute la Suisse.</p> + </div> +</div>