• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

penguinolog / urwid / 41465346988
94%

Build:
DEFAULT BRANCH: master
Ran 02 Nov 2026 02:48PM UTC
Jobs 18
Files 73
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Nov 2026 02:45PM UTC coverage: 91.781% (+0.07%) from 91.711%
41465346988

push

github

web-flow
Add readline keys, undo and a kill buffer to Edit (#1565)

* Add readline editing commands and CommandMap.bind_readline()

Edit handles four new commands, which no key is mapped to by default:

- "cursor line start" and "cursor line end" move to the ends of the line, which ends at a newline, not at the screen row edge.
- "delete space word left" deletes back to the previous whitespace, as bash's ctrl w does.
- "delete char right" does what the delete key does.

CommandMap.bind_readline() maps ctrl a/e, meta b/f, meta backspace/d, ctrl u/k, ctrl w and ctrl d to them:

- It binds on a copy and installs it only when no key is taken by another command.
- Only Edit handles these commands, so the keys reach a ListBox unhandled and the shared map can take them.
- The manual and the tour show an Edit subclass with its own copy of the map.

* Add undo and redo to Edit

Edit(undo_limit=n) keeps up to n changes made by keys; undo() and redo() take them back and make them again.

- The default limit is 0, so nothing is recorded unless the application asks for it.
- The new "undo" and "redo" commands call undo() and redo().
- bind_readline() maps ctrl _ to "undo".
- Consecutive typed characters are one step, and so is a run of backspace or of delete.
- Setting the text from the application clears the history, including a "submit" handler that clears the field.
- IntEdit and NumEdit strip leading zeros within the step of the key.
- An undo or redo key in IntEdit and NumEdit keeps the restored text as it was shown.

* Add a kill buffer and yank to Edit

Edit(kill_buffer=list) puts the text the word and line delete commands remove into the list; edits may share it.

- Consecutive kills in one edit join the newest entry: forward kills append, backward kills prepend.
- Any other key, a mouse event, a change from elsewhere, or a change of the list by someone else starts a new entry.
- A masked edit puts nothing into the list.
- The new "yank" command inserts the newest ... (continued)

6135 of 6874 branches covered (89.25%)

Branch coverage included in aggregate %.

194 of 197 new or added lines in 3 files covered. (98.48%)

9 existing lines in 1 file now uncovered.

15474 of 16670 relevant lines covered (92.83%)

15.56 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
98.93
-0.23% urwid/widget/edit.py
1
97.93
-0.47% urwid/numedit.py

Coverage Regressions

Lines Coverage ∆ File
9
95.95
0.04% urwid/widget/columns.py
Jobs
ID Job ID Ran Files Coverage
1 run-3.14t-ubuntu-latest - 41465346988.1 02 Nov 2026 02:49PM UTC 73
89.9
GitHub Action Run
2 run-3.13t-ubuntu-latest - 41465346988.2 02 Nov 2026 02:53PM UTC 73
89.9
GitHub Action Run
3 run-3.11-macos-latest - 41465346988.3 02 Nov 2026 02:58PM UTC 73
90.6
GitHub Action Run
4 run-pypy3.11-ubuntu-latest - 41465346988.4 02 Nov 2026 02:53PM UTC 73
89.48
GitHub Action Run
5 run-pypy3.11-windows-latest - 41465346988.5 02 Nov 2026 02:57PM UTC 73
79.31
GitHub Action Run
6 run-3.14-windows-latest - 41465346988.6 02 Nov 2026 02:50PM UTC 73
79.69
GitHub Action Run
7 run-3.15t-windows-latest - 41465346988.7 02 Nov 2026 02:52PM UTC 73
79.38
GitHub Action Run
8 run-3.11-ubuntu-latest - 41465346988.8 02 Nov 2026 02:49PM UTC 73
90.6
GitHub Action Run
9 run-3.11-windows-latest - 41465346988.9 02 Nov 2026 02:51PM UTC 73
79.71
GitHub Action Run
10 run-3.12-ubuntu-latest - 41465346988.10 02 Nov 2026 02:49PM UTC 73
90.58
GitHub Action Run
11 run-3.13-ubuntu-latest - 41465346988.11 02 Nov 2026 02:49PM UTC 73
90.58
GitHub Action Run
12 run-3.12-windows-latest - 41465346988.12 02 Nov 2026 02:51PM UTC 73
79.68
GitHub Action Run
13 run-3.15t-ubuntu-latest - 41465346988.13 02 Nov 2026 02:49PM UTC 73
89.9
GitHub Action Run
14 run-3.14t-windows-latest - 41465346988.14 02 Nov 2026 02:52PM UTC 73
79.38
GitHub Action Run
15 run-3.13-windows-latest - 41465346988.15 02 Nov 2026 02:50PM UTC 73
79.68
GitHub Action Run
16 run-3.14-ubuntu-latest - 41465346988.16 02 Nov 2026 02:48PM UTC 73
90.58
GitHub Action Run
17 run-3.15-windows-latest - 41465346988.17 02 Nov 2026 02:51PM UTC 73
79.38
GitHub Action Run
18 run-3.15-ubuntu-latest - 41465346988.18 02 Nov 2026 02:49PM UTC 73
90.58
GitHub Action Run
Source Files on build 41465346988
  • Tree
  • List 73
  • Changed 7
  • Source Changed 6
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #41465346988
  • 7c5b8e3c on github
  • Prev Build on master (#41443660298)
  • Next Build on master (#41618009658)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc