Repository navigation
Sapience — v0.5.1
Sapience: deez-notes v0.5.1
Chapter XXXIX: The Pointing Finger
With the CLI shipped and the 2am script finally feeding journal/ while he slept, the creator returned to the TUI in a good mood. He wanted to do something almost romantic with it: just sit down and write a note. With the mouse. Like a person.
He'd taught the mouse to scroll, back in v0.4.0. He'd given the right hand its job. So he reached over, found a note in the side panel, and clicked it.
The note highlighted. The preview loaded. Good.
He clicked it again to open it.
Nothing.
He clicked a folder, to go inside.
The folder highlighted. It did not open. It sat there, selected, radiating the quiet confidence of something that believes pointing is the job.
He clicked the search bar at the top, ready to type.
The search bar did not care. It had not been clicked. It had been looked at, sternly, by a cursor with no authority.
Chapter XL: Bright Eyes, No One Home
The creator leaned back and studied the thing he had built.
The mouse could see. It could point. It could even select — it knew exactly which note you meant. It just had no idea what you wanted done about it. Every click was a sentence that trailed off. "This one—" and then nothing. A finger raised to make a point, lowered without making it. All hands, no intent.
It wasn't the mouse's fault. He'd given it eyes and a hand and then, apparently, called it a day and gone to write a CLI.
"Right," he said, in the tone of a man about to anthropomorphize a peripheral well past the point of dignity. "Let's give you a brain."
Chapter XLI: Sapience
So he taught it the three things it had been missing.
Double-click to commit. One click still selects and previews — the polite, non-committal hover of before. But a second click, quick, on the same thing, now means yes, this one, go. On a note it opens the editor. On a folder it walks inside. Exactly what Enter always did — the mouse just learned to say it.
A click on the search bar is a click into search. No more reaching for / like a caveman. Click the bar, start typing. The cursor finally has standing.
Search results are clickable mid-hunt. Type a query, see the matches, and click the one you want — no detour through Enter first. The click confirms the search and lands on the note, one gesture. The found thing is now a thing you can touch.
The mouse blinked, metaphorically, and understood.
The pointing finger had, at last, learned to knock.
What's new — the mouse grows up
| Gesture | What it does now |
|---|---|
| Double-click a side-panel item | Enters the folder, or opens the note in the editor — same as Enter. |
| Single-click the search bar | Drops you into search mode, ready to type — same as /. |
| Click a search result | Confirms the active search (like Enter) and selects the clicked note, in one click. |
Single-click still just selects + previews, exactly as before. Nothing you were used to changed — the mouse only gained the moves it was missing.
Under the hood
- Double-click is reconstructed app-side (two left-presses on the same item within 400 ms) — terminals don't deliver a native double-click event.
- The mouse path now reuses the same
Enterlogic and the same terminal suspend/restore code as the keyboard, instead of duplicating it. No new behaviour was invented; existing actions just got a second way in.
Install
Grab a binary below, or build from source:
cargo install --path .Full diff: v0.5.0...v0.5.1