Display a text area that can be controlled from other plugins or strokes.
Project description
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")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file plover-textarea-0.0.2.tar.gz
.
File metadata
- Download URL: plover-textarea-0.0.2.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60eff5ccedbb8d61d3a2da07624f0ac77526265c6f6e5399436bf72d12dca4f9 |
|
MD5 | 7e578916fa3de038e5871b57dc88b5bf |
|
BLAKE2b-256 | 2179ad68ec0b7ec3413cb426a393ed21a01442dac54e63df0db5e6d6c9d4d2b5 |
File details
Details for the file plover_textarea-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: plover_textarea-0.0.2-py3-none-any.whl
- Upload date:
- Size: 16.6 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 029b5d98f741e43d599640d2b3d0add4eeb908b483f415c711a40e91f58ff8c0 |
|
MD5 | be9f404640a97490745d5f6b33672985 |
|
BLAKE2b-256 | e238f6e84e48965d501d39bf74234a9378147974e2c318dcd74abaab16fbbbba |