commit 7fcd618f75ffdc63b181ecf23017471fae7650b7
parent 8ee6fb99acac2fe4cc1fb803068edfc1a1e24f12
Author: Hunter
Date:   Sun,  4 Aug 2024 10:14:47 -0400

update readme.md; add text highlight to themes

Diffstat:
Mindex.html | 20++++++++++++--------
Mreadme.md | 8+++++---
2 files changed, 17 insertions(+), 11 deletions(-)

diff --git a/index.html b/index.html @@ -40,15 +40,15 @@ :root[data-theme="gak"] { --background: var(--snow); --text: var(--coal); - --active-task-highlight: var(--slime); - --checkbox-accent-color: var(--grape); + --highlight: var(--slime); + --accent: var(--grape); } :root[data-theme="harvest"] { --background: var(--goldenrod); --text: var(--acorn); - --active-task-highlight: var(--butternut-squash); - --checkbox-accent-color: var(--olive); + --highlight: var(--butternut-squash); + --accent: var(--olive); } body { @@ -79,6 +79,10 @@ input[type="text"]:focus { outline: none; } + input[type="text"]::selection { + background-color: var(--accent); + color: var(--background); + } .task-container { display: flex; align-items: center; @@ -88,7 +92,7 @@ padding-bottom: 4px; } .active { - background-color: var(--active-task-highlight); + background-color: var(--highlight); } .parent-task { font-size: 1.5em; @@ -107,14 +111,14 @@ width: 20px; height: 20px; background-color: var(--background); - border: 2px solid var(--checkbox-accent-color); + border: 2px solid var(--accent); position: relative; cursor: pointer; box-sizing: border-box; border-radius: 4px; } .custom-checkbox:checked + .checkbox-label { - background-color: var(--checkbox-accent-color); + background-color: var(--accent); } .custom-checkbox:checked + .checkbox-label::before { content: ''; @@ -135,7 +139,7 @@ right: 25%; top: 50%; height: 2px; - background-color: var(--checkbox-accent-color); + background-color: var(--accent-color); transform: translateY(-50%); } </style> diff --git a/readme.md b/readme.md @@ -9,7 +9,7 @@ a nested task manager that breaks complex tasks into manageable subtasks. - unlimited subtask depth - intuitive keyboard controls for rapid navigation - automatic saving using browser's local storage -- works completely offline +- complete offline functionality ### quickstart 1. press the `Enter` key to add subtasks to the root "todo" task @@ -33,9 +33,11 @@ a nested task manager that breaks complex tasks into manageable subtasks. - `Shift + Arrow Up/Down` reposition the selected task within its current level ### text editing -- standard text editing controls apply -- `Command/Ctrl + C` copy the selected task's text +- `Left/Right` move text cursor within current task +- `Command/Ctrl + C` copy the selected task's text (or highlighted substring) - `Command/Ctrl + V` paste text content from the clipboard +- `Command/Ctrl + Z` undo text edit +- `Command/Ctrl + Shift + Z` redo text edit ## data persistence your task tree is automatically saved to your browser's local storage. this ensures your tasks will persist even if you close the browser or refresh the page. note that clearing your browser data may erase your saved tasks.