Skip to content

stoa-predict: an emoji replaces the typed word - #209

Merged
VictorGSchneider merged 1 commit into
mainfrom
claude/tender-dirac-0bc2zn
Oct 22, 2026
Merged

VictorGSchneider merged 1 commit into
mainfrom
claude/tender-dirac-0bc2zn

Conversation

@VictorGSchneider

Copy link
Copy Markdown
Owner

What

Picking an emoji now replaces the prefix it was suggested for, as a word does. For example, ke + 🔑 now gives 🔑 instead of ke🔑. Words still end with a space; emojis do not.

The change is in accept() in scripts/stoa-predict.py. Deleting the prefix now runs for both kinds of suggestion:

  • delete_surrounding_text where the app reports surrounding text;
  • BackSpaces in terminals.

Verification

Tested in headless sway 1.10 with the full-layout test keyboard:

  • GTK: a ke + ↓ ← Enter gives a 🗝️. A word afterwards still gives stoic with its space.
  • foot: ke + ↓ ← Enter gives 2×DEL + 🗝️.
  • Repo checks: tests/run.sh 18 passed, ruff clean.

Generated by Claude Code

Picking an emoji now erases the prefix it was suggested for, the same
way a word does: "ke" + 🔑 gives "🔑" instead of "ke🔑". Words still
end with a space, emojis do not.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CrdbH4MCHhLKimzdRSzXZp
@VictorGSchneider VictorGSchneider self-assigned this Oct 22, 2026
@VictorGSchneider
VictorGSchneider merged commit ebd8e47 into main Oct 22, 2026
3 checks passed
@VictorGSchneider
VictorGSchneider deleted the claude/tender-dirac-0bc2zn branch October 22, 2026 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants