Emoji picker (Super+.): search, tabs, skin tones, recents, text-input-v3 insertion
CI / test (push) Canceled after 0s
CI / test (push) Canceled after 0s
Compositor-drawn Win+. style picker. The focused app keeps keyboard focus so
its text-input-v3 field stays enabled; the emoji goes in with commit_string,
or onto the clipboard with a visible notice when the app has no text field.
Shortcut lives in the shortcut table (rebindable in Settings > Shortcuts).
- compositor/wayland/text_input.mbt: zwp_text_input_manager_v3 (global 12)
- compositor/emoji: Emoji 18.0 + CLDR 49 data (Unicode License), search,
picker model, CBDT/CBLC + GSUB reader for Noto Color Emoji
- Chandra's own pinned bitmap Noto Color Emoji (scripts/fetch-emoji-font.sh,
just emoji-font); Fedora's COLRv1 copy can't be drawn. Missing font shows
an error panel.
- raster WIT: emoji-font, emoji-has, emoji-image; served by wasmhost
- state.edn :emoji {:recent [...] :skin-tone n}
- tests incl. a fake text-input client; docs/emoji-picker.md
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DPL5hkABDGJixotaqFv2X2
This commit is contained in:
39 files changed
+4942
-41
No files matched your search
@@ -26,6 +26,10 @@ tcc-build:
|
||||
make -j"$(nproc)" >/dev/null
|
||||
make install >/dev/null
|
||||
|
||||
# Fetch the emoji picker's font (Noto Color Emoji, bitmap edition) into assets/fonts, once: scripts/fetch-emoji-font.sh.
|
||||
emoji-font:
|
||||
scripts/fetch-emoji-font.sh
|
||||
|
||||
# Build the panel's wasm modules (application menu, task list, clock, ...) into build/components.
|
||||
modules:
|
||||
pixi run modules
|
||||
@@ -48,17 +52,17 @@ auth-demo mode="password":
|
||||
python3 session/chandra-ctl auth-demo {{mode}}
|
||||
|
||||
# Run the compositor, built as a wasm component, in a window on your current Wayland session (close the window or Ctrl-C to stop). Connect clients via `just client`.
|
||||
run: compositor-wasm wasmhost modules
|
||||
run: compositor-wasm wasmhost modules emoji-font
|
||||
rm -f {{socket}}
|
||||
build/wasmhost build/compositor.wasm --socket {{socket}} --theme {{theme}} --window
|
||||
|
||||
# On an X server (NVIDIA's proprietary driver, docs/x11.md): a window under a window manager, or the whole screen without one.
|
||||
run-x11: compositor-wasm wasmhost modules
|
||||
run-x11: compositor-wasm wasmhost modules emoji-font
|
||||
rm -f {{socket}}
|
||||
build/wasmhost build/compositor.wasm --socket {{socket}} --theme {{theme}} --x11
|
||||
|
||||
# Run the native compositor (tcc debug build, with the wasm panel modules) in a window on your current Wayland session.
|
||||
run-native: build modules
|
||||
run-native: build modules emoji-font
|
||||
rm -f {{socket}}
|
||||
{{exe}} --window --socket {{socket}} --theme {{theme}}
|
||||
|
||||
@@ -84,14 +88,14 @@ run-headless: build modules
|
||||
{{exe}} --socket {{socket}} --theme {{theme}}
|
||||
|
||||
# Run the wasm compositor on the real display (DRM/KMS + libinput, through the host). Run from a login VT (Ctrl+Alt+F3), not inside another session. Ctrl+Alt+Backspace quits, Ctrl+Alt+F<n> switches VT.
|
||||
run-drm: compositor-wasm wasmhost modules
|
||||
run-drm: compositor-wasm wasmhost modules emoji-font
|
||||
rm -f {{socket}}
|
||||
# Let D-Bus-activated helpers (gcr-prompter's keyring unlock prompt, portals) open windows here.
|
||||
-dbus-update-activation-environment --systemd WAYLAND_DISPLAY=$(basename {{socket}}) XDG_SESSION_TYPE=wayland XDG_CURRENT_DESKTOP=chandra 2>/dev/null
|
||||
build/wasmhost build/compositor.wasm --drm --socket {{socket}} --theme {{theme}}
|
||||
|
||||
# The same on the native compositor (system-cc release build), for comparison.
|
||||
run-drm-native: build-release modules
|
||||
run-drm-native: build-release modules emoji-font
|
||||
rm -f {{socket}}
|
||||
-dbus-update-activation-environment --systemd WAYLAND_DISPLAY=$(basename {{socket}}) XDG_SESSION_TYPE=wayland XDG_CURRENT_DESKTOP=chandra 2>/dev/null
|
||||
{{release_exe}} --drm --socket {{socket}} --theme {{theme}}
|
||||
@@ -100,11 +104,11 @@ run-drm-native: build-release modules
|
||||
install *flags:
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
builds="compositor-wasm wasmhost modules auth-agent"
|
||||
builds="compositor-wasm wasmhost modules auth-agent emoji-font"
|
||||
face=1
|
||||
for f in {{flags}}; do
|
||||
case "$f" in
|
||||
--native) builds="build-release modules auth-agent" ;;
|
||||
--native) builds="build-release modules auth-agent emoji-font" ;;
|
||||
--rust) echo "just install: --rust is gone: the Rust host was removed (2026-11-26); the MoonBit host is the only one" >&2; exit 2 ;;
|
||||
--no-face) face=0 ;;
|
||||
--link|--pam|--no-models) ;;
|
||||
@@ -150,8 +154,8 @@ remote-build *targets:
|
||||
scripts/remote-build.sh {{targets}}
|
||||
|
||||
# Compositor + wasm component + lib tests.
|
||||
test: modules
|
||||
XDG_CONFIG_HOME="$(mktemp -d)" CHANDRA_TEST_CONFIG=1 moon test --target native --warn-list -a compositor/renderer compositor/wasm compositor/host
|
||||
test: modules emoji-font
|
||||
XDG_CONFIG_HOME="$(mktemp -d)" CHANDRA_TEST_CONFIG=1 moon test --target native --warn-list -a compositor/renderer compositor/wasm compositor/emoji compositor/host
|
||||
moon test --target wasm --warn-list -a lib/shell lib/panel lib/clock lib/launcher lib/wm lib/taskbar lib/layoutpick lib/modmgr
|
||||
|
||||
# Render one composed frame to _build/e2e_frame.png (via the e2e test).
|
||||
|
||||
Reference in new issue
Block a user