Skip to content

Commit 6bdabe3

Browse files
committed
update readme (+ link fix)
1 parent 5bee28c commit 6bdabe3

File tree

2 files changed

+25
-14
lines changed

2 files changed

+25
-14
lines changed

README.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@ a tui-style browser startpage, built with svelte.
44

55
features:
66

7-
- todoist tasks integration
8-
- weather (from open-meteo)
7+
- task list with multiple backend options (local, todoist, google tasks (chrome only))
8+
- smart task input with natural date and project parsing
9+
- weather summary (from open-meteo)
910
- customizable quick links
1011
- stats (load time, ping, fps, viewport size)
1112
- multiple color themes
12-
- lightweight & performant (<100kb including fonts, loads in <50ms)
13+
- custom css support
14+
- lightweight & performant (~100kb including fonts, loads in <50ms)
1315

1416
<img width="2331" height="1319" alt="image" src="https://github.com/user-attachments/assets/e3164af7-fc42-4caf-81ee-a049e05b84c7" />
1517

@@ -29,17 +31,20 @@ features:
2931

3032
## usage tips
3133

32-
- hover your cursor on the top right corner of the startpage, and you should see a settings button appear. click it to configure settings.
33-
- to get your todoist api token, open the todoist website and click your profile in the top left. then go to "Settings" > "Integrations" > "Developer" > "Copy API Token".
34-
- the 'x tasks' text is also a clickable link to todoist.
35-
- you can force a refresh of the weather and todoist widgets by clicking the top left panel labels.
34+
- hover your cursor on the top right corner of the startpage to see the settings button.
35+
- you can force a refresh of the weather and task widgets by clicking the panel labels "weather" and "tasks".
36+
- to get your todoist api token, sign into todoist and go to <https://app.todoist.com/app/settings/integrations/developer>. click "Copy API Token".
37+
- the 'x tasks' text is a clickable link to either <https://app.todoist.com/app> or <https://tasks.google.com>.
38+
- use smart date input when adding tasks: type naturally like "tomorrow", "friday", "dec 25", "jan 1 3pm", etc.
39+
- assign tasks to projects (todoist) or lists (google tasks) by typing `#projectname` anywhere in the task input.
40+
- drag the "=" handle to reorder links in the settings
3641
- the ping stat is based on how long a request to <https://www.google.com/generate_204> takes. don't take it too seriously.
3742
- here's a matching [firefox color theme](https://color.firefox.com/?theme=XQAAAAK3BAAAAAAAAABBqYhm849SCicxcUhA3DJozHnOMuotJJDtxcajvY2nrbwtWf53IW6FuMhmsQBmHjQtYV0LyoGIJnESUiSA8WGCMfXU1SYqmE_CaU8iA8bQXAYc2jrXIT6bjoi8T-cSTCi2_9o7kcESfauVKnMZKEKJIeeuT9qsP4Z_T2ya4LBqvZWjm1-pHOmWMq1OU0wrgs4bkzHQWozn4dcm22eBmWyWR55FkcmEsPvvHzhHCZ2ZMQrPXQqrOBLr79GTkJUGa5oslhWTp2LYqdD2gNQ1a8_c5-F91bPVmQerXZWpp-OZ11D1Ai6t1ydqjbVKD3RrGXYJwhcQaAxCKa_ft4VoGrVBq8AXYeJOZdXuOxnYXGhOXXSK_NybBfJLm-2W28qSSdoiW0pTL-iFan3xQQeC0WlSrnRYrRjh7HkgLuI-Ft8Fq5kNC7nVXoo8j9Ml_q2AO_RhE116j_MECbspxaJP58juayX_wNty3V2g5zUsf0gSqpEWGT02oZAF2z6LABKRWTO28wIoMUDvj9WAQGsup95WAmNW7g4WMEIgaiJhmBz9koq0wV7gHQtJB_0x2lJ7WQ488bJi8LvqnW-VT3kZ3GJtyv-yXmRJ)!
3843

3944
## development / build from source
4045

4146
1. clone this repo.
4247
2. run `npm i` (you must have node.js).
43-
3. run `npm run dev` to run the page in dev mode at `http://localhost:5173`.
48+
3. run `npm run dev` to run just the webpage in dev mode at `http://localhost:5173`.
4449
4. run `npm run watch` to build the extension and watch for changes. this can be used with `web-ext run` to test in firefox.
45-
5. run `npm run build:firefox` or `npm run build:chrome` to build for production. the built extension will output to `dist/firefox` or `dist/chrome` respectively.
50+
5. run `npm run build:firefox` or `npm run build:chrome:prod` to build for production. the built extension will output to `dist/firefox` or `dist/chrome` respectively.

src/lib/components/Tasks.svelte

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,12 @@
4040
}
4141
4242
// Split around project match and try each half
43-
const leftHalf = newTaskContent.slice(0, parsedProject.match.start).trimEnd()
44-
const rightHalf = newTaskContent.slice(parsedProject.match.end).trimStart()
43+
const leftHalf = newTaskContent
44+
.slice(0, parsedProject.match.start)
45+
.trimEnd()
46+
const rightHalf = newTaskContent
47+
.slice(parsedProject.match.end)
48+
.trimStart()
4549
4650
// Try left half first
4751
const leftResult = parseSmartDate(leftHalf, {
@@ -57,8 +61,10 @@
5761
})
5862
if (rightResult) {
5963
// Offset positions to account for stripped whitespace and project
60-
const rightStartOffset = parsedProject.match.end +
61-
(newTaskContent.slice(parsedProject.match.end).length - rightHalf.length)
64+
const rightStartOffset =
65+
parsedProject.match.end +
66+
(newTaskContent.slice(parsedProject.match.end).length -
67+
rightHalf.length)
6268
return {
6369
...rightResult,
6470
match: {
@@ -350,7 +356,7 @@
350356
<div class="widget-header">
351357
{#if settings.taskBackend === 'todoist'}
352358
<a
353-
href="https://todoist.com/app"
359+
href="https://app.todoist.com/app"
354360
target="_blank"
355361
rel="noopener noreferrer"
356362
>

0 commit comments

Comments
 (0)