Skip to content

Fields: word editing (double/triple click, Ctrl+Backspace/Delete/Left/Right) - #141

Merged
k4ditano merged 2 commits into
k4ditano:mainfrom
natepayn3:field-editing
Nov 6, 2026
Merged

k4ditano merged 2 commits into
k4ditano:mainfrom
natepayn3:field-editing

Conversation

@natepayn3

@natepayn3 natepayn3 commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Text fields (input) only had paste/copy/cut/select-all. This adds the word editing people expect from a text box:

  • Double click takes the word it lands on (same word rules as selectable texts, word_around); a third click takes all of it.
  • Ctrl+Backspace / Ctrl+Delete delete a word back / forward.
  • Ctrl+Left / Ctrl+Right move the cursor one word.

Found it missing in a file save dialog's name box: renaming meant holding Backspace.

Test: ctrl_moves_and_deletes_a_word_at_a_time. Rebased on 0.7.26; cargo test --release passes (196). In daily use here since 0.7.20.

🤖 Generated with Claude Code

@k4ditano
k4ditano merged commit 1cdcfbb into k4ditano:main Nov 6, 2026
1 check passed
@k4ditano

k4ditano commented Nov 6, 2026

Copy link
Copy Markdown
Owner

Thanks, merged. Word editing works the way people expect, and reusing word_around keeps fields and selectable texts in step. One thing on top (81a244c): a secret field is now a single word. A double click takes all of it, and Ctrl with the arrows and deletes goes to the start or the end, so where they stop says nothing about the password's punctuation. Out in 0.7.27.

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