README.md

November 9, 2020 · View on GitHub

urwid_readline

Text input widget for urwid that supports readline shortcuts.

Installation

pip install urwid-readline

Example how to use the program can be found in the examples directory.

Development

Please ensure pull requests pass CI, which requires your code to be formatted with black . and tests to pass via pytest.

Both tools can be installed with the dev extra install option; such an install from a local git repo reflecting the code (ie. 'editable'), ideally in a python virtual environment, can be achieved through a command like python3 -m pip install --editable .[dev].

Features

Supported operations:

CommandKey Combination
Jump to the Beginning of lineCtrl + A
Jump backward one characterCtrl + B /
Jump backward one wordMeta + B
Delete one characterCtrl + D
Delete one wordMeta + D
Jump to the end of lineCtrl + E
Jump forward one characterCtrl + F /
Jump forward one wordMeta + F
Delete previous characterCtrl + H
Transpose charactersCtrl + T
Kill (cut) forwards to the end of the lineCtrl + K
Kill (cut) backwards to the start of the lineCtrl + U
Kill (cut) forwards to the end of the current wordMeta + D
Kill (cut) backwards to the start of the current wordCtrl + W
Paste last killCtrl + Y
Undo last actionCtrl + _
Jump to previous lineCtrl + P /
Jump to next lineCtrl + N /
Clear screenCtrl + L
AutocompleteSee examples