Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@
.relay/
.relay-archive/
dist/
docs/desktop-tests/gnome-r1-*.png
13 changes: 9 additions & 4 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Menew for Linux: Project Rules for Agents

Native Linux productivity utility built in Rust (GTK4 + Libadwaita). Separate repository from the macOS version (`../menew`). Licensed under **GPL-3.0-only**, the same as the Mac app. The name "Menew", the icon and the website are not covered by the license: see `TRADEMARK.md`.
Native Linux productivity utility built in Rust (GTK4 + Libadwaita). Separate repository from the macOS version (`../menew`; on some machines the folder is `../MeuMenu`). Licensed under **GPL-3.0-only**, the same as the Mac app. The name "Menew", the icon and the website are not covered by the license: see `TRADEMARK.md`.

**Parity with the Mac app is the goal.** Before planning or reviewing any feature, check `../menew` itself (README, `LICENSE`, `TRADEMARK.md`, `Sources/`), not only this repo, and keep `docs/parity.md` up to date.
**Parity with the Mac app is the goal.** Before planning or reviewing any feature, check the Mac repo itself (`../menew` or `../MeuMenu`) (README, `LICENSE`, `TRADEMARK.md`, `Sources/`), not only this repo, and keep `docs/parity.md` up to date.

## Core Principles (Strict - Never Violate)

Expand All @@ -12,7 +12,7 @@ Native Linux productivity utility built in Rust (GTK4 + Libadwaita). Separate re
4. **Localization (i18n)**: Every single UI string must be translatable across 5 languages: English (`en`), Portuguese (`pt`), German (`de`), Spanish (`es`), and Chinese (`zh`).
5. **English Commits**: Conventional Commits in English (e.g., `feat(palette): ...`, `fix(clipboard): ...`).
6. **No Em-Dash**: Never use the em-dash character in documentation or code comments. Always use the regular hyphen (`-`).
7. **Isolation from Mac repo**: Do not touch `../menew`. The Linux version has its own lifecycle.
7. **Isolation from Mac repo**: Do not touch the Mac repo (`../menew` or `../MeuMenu`). The Linux version has its own lifecycle.

## Technical Architecture & Decisions

Expand All @@ -34,10 +34,11 @@ Native Linux productivity utility built in Rust (GTK4 + Libadwaita). Separate re
## Workspace Structure

- `crates/menew-core`: Pure Rust core logic, desktop entry scanner, inline math evaluator, SQLite storage, i18n dictionary.
- `crates/menew-ui`: Command palette window and widgets using GTK4 and Libadwaita.
- `crates/menew-ui`: GTK4 / Libadwaita windows: palette, Menew window (notes, performance, settings), tray popover, screenshot editor, welcome tour.
- `crates/menew-tray`: System tray implementation with `ksni`.
- `crates/menew-shortcuts`: Global shortcut listener with `ashpd`.
- `crates/menew-clipboard`: Clipboard service and data-control/D-Bus listeners.
- `crates/menew-desktop`: Screenshot and color picker portals, window snapping (KWin scripting, GNOME extension `org.menew.Shell`).
- `crates/menew`: Main coordinator daemon and entry point.
- `gnome-extension`: GNOME Shell extension for clipboard bridging on GNOME Wayland.
- `docs/`: Technical findings and architecture specifications.
Expand All @@ -50,3 +51,7 @@ cargo check
cargo test
cargo clippy
```

From macOS or Windows, run them (and the headless GNOME/KDE tests) in the Linux dev image:
`docker build -t menew-dev scripts/dev`, then `bash scripts/dev/run.sh "cargo test --workspace"` and
`bash scripts/dev/run.sh "bash scripts/dev/desktop-tests.sh"`.
8 changes: 4 additions & 4 deletions crates/menew-core/src/focus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
//! +5 minutes, stop, and a 5 minute break at the end. Pure state: the daemon ticks it and shows the
//! time left in the tray and the notification at the end.
//!
//! The Mac app can also mute the microphone, keep the computer awake and pause the clipboard while
//! a focus runs. Those options depend on the quick actions (Phase 9) and the clipboard pause
//! (Phase 5), so they are left as the [`FocusHooks`] trait: the daemon passes [`NoHooks`] today.
//! Like the Mac, a focus can also mute the microphone, keep the computer awake and pause the
//! clipboard while it runs: the daemon does those through the [`FocusHooks`] trait
//! (`crates/menew/src/focus_hooks.rs`), following the Settings.

use crate::i18n::Language;
use crate::strings::tr;
Expand All @@ -31,7 +31,7 @@ pub trait FocusHooks {
fn ended(&mut self);
}

/// Does nothing: the options that need them are not on Linux yet (see `docs/parity.md`).
/// Does nothing (tests, and before the daemon sets its own hooks).
pub struct NoHooks;

impl FocusHooks for NoHooks {
Expand Down
172 changes: 172 additions & 0 deletions crates/menew-core/src/strings_r1.rs

Large diffs are not rendered by default.

Loading