Customize the undo behavior of certain entries
Project description
Plover undo tools
Commands that modify how translations behave when Plover undoes them.
Setup
This plugin is currently not available from Plover's Plugins Manager. Instructions are available on the Plover wiki on how to install this plugin from this Git repository.
Commands
{plover:undoable}
Makes a translation that does not produce any text output undoable.
For instance, to make various spacing commands undoable:
"TK-LS": "{plover:undoable}{^}"
"KPA": "{plover:undoable}{~|}{-|}"
"KPA*": "{plover:undoable}{^}{-|}"
"KPWAOEGS": "{plover:undoable}{^}{MODE:LOWER}{MODE:SET_SPACE:-}"
With these entries, stroking e.g. KPA/*
will no longer undo the last stroke before KPA
that caused text to be output (what happens by default in Plover); it will instead not alter the currently typed text at all, but now the next word will no longer be capitalized.
Edge case behavior
- If used on an entry that is normally undoable, an extra undo is needed before Plover will start undoing the translation before it.
{plover:undo_with:...}
Causes additional text or commands to be translated when a given translation is undone.
Some example use cases:
- Undoing
{plover:solo_dict}
command calls:"PHRAU": "{plover:undo_with:\\{plover:end_solo_dict\\}}{plover:solo_dict:+raw-solo-dict.json}{^ ^}{MODE:SET_SPACE:/}"
- Undoing movement strokes:
"STPH-G": "{#right}{^}{plover:undo_with:\\{#left\\}}"
Edge case behavior
- (TODO?) The number of undos needed to erase a multistroke translation that uses this command may not match the number of strokes in the entry. If this command is set to produce text, the entire translation is replaced with text that can be erased with just 1 stroke.
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_undo_tools-0.0.0.tar.gz
.
File metadata
- Download URL: plover_undo_tools-0.0.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56b0cd612eaf0e0e77b9cabfef99f81c62ef9a9009f15f3a1d50fe5876ca291c |
|
MD5 | 7565066d3188b10ea581bd07fa5d0436 |
|
BLAKE2b-256 | 7aca0861f137f309351ea648a35cfbe6f7c47bebafa89a782d3bc9c037e7e54a |
File details
Details for the file plover_undo_tools-0.0.0-py3-none-any.whl
.
File metadata
- Download URL: plover_undo_tools-0.0.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d29c21c491ebd723eae5ba3d4293fdb9b3cfcf6b024b10cad86cf3f07bd6df5b |
|
MD5 | 199c0932632e0e8e39642b1dce152d86 |
|
BLAKE2b-256 | 5259930e04e3f9ac2acf894786874fba1ffa141bc87fd968826bdd8b998c6912 |