Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wooningeire/plover-undo-tools
WIP — Plover plugin that lets you change how translations are undone
https://github.com/wooningeire/plover-undo-tools
plover plover-plugins
Last synced: 2 months ago
JSON representation
WIP — Plover plugin that lets you change how translations are undone
- Host: GitHub
- URL: https://github.com/wooningeire/plover-undo-tools
- Owner: wooningeire
- Created: 2023-05-19T03:38:42.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-31T02:13:41.000Z (4 months ago)
- Last Synced: 2024-09-30T02:31:48.899Z (3 months ago)
- Topics: plover, plover-plugins
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://plover.wiki/index.php/Plugins#Find_the_plugin_on_PyPI_or_as_a_git_repo) 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.