Skip to main content

plover-textarea

Display a text area that can be controlled from other plugins or strokes.

Installation

This plugin can be installed from source on GitHub.

When it's released it can also be installed from PyPI (pip install plover-textarea) or Plover's plugins manager.

Note

You need to enable the extension plugin.

Configuration

Currently only some UNIX systems/terminals (xterm) are supported. Qt GUI output is not supported.

You need to create a file textarea-config.json in Plover's configuration directory with the content:

{
	"command": ["xterm", "-e", "cat /proc/$(echo $(ps -o ppid= $$))/fd/0"],
	"escape_sequence_clear_window": "\u001B[H\u001B[J"
}

Usage

Define strokes like this

{
"A": "{plover:textarea_write:a:b}",
"A": "{plover:textarea_write:a:text\n}",
"A": "{plover:textarea_clear:a}",
"A": "{plover:textarea_close:a}",
"...": "..."
}

{} should be escaped.

The value before the first : is the window name. Must be provided.

It's not possible to specify a window name that contains :, but it's possible in the Python API.

Python API

Example code: (requires the extension plugin to be running)

from plover_textarea.extension import get_instance

get_instance().write("a", "text to write\n")
get_instance().clear("a")
get_instance().close("a")

Release files for plover-textarea 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for plover-textarea 0.0.2
File Size Uploaded
plover-textarea-0.0.2.tar.gz 16.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for plover-textarea 0.0.2
File Interpreter ABI Platform
plover_textarea-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 33.2 kB

Release files / plover-textarea-0.0.2.tar.gz

Download URL plover-textarea-0.0.2.tar.gz
Size 16.6 kB
Tags Source
SHA-256 checksum
How to use checksums
60eff5ccedbb8d61d3a2da07624f0ac77526265c6f6e5399436bf72d12dca4f9
BLAKE2b-256 checksum
How to use checksums
2179ad68ec0b7ec3413cb426a393ed21a01442dac54e63df0db5e6d6c9d4d2b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.6.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.3

Release files / plover_textarea-0.0.2-py3-none-any.whl

Download URL plover_textarea-0.0.2-py3-none-any.whl
Size 16.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
029b5d98f741e43d599640d2b3d0add4eeb908b483f415c711a40e91f58ff8c0
BLAKE2b-256 checksum
How to use checksums
e238f6e84e48965d501d39bf74234a9378147974e2c318dcd74abaab16fbbbba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.6.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.3

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page