Plover dictionary entries based on the current focussed application
Project description
Plover Application Dictionary
Plover dictionary entries based on the current focussed application.
This plugin has two dictionary types .ad
and .mad
, for defining single or multiple application dictionaries
respectively. The first is not readonly, allowing for entries to be added through Plover, but .mad
dictionaries are
readonly. Both have to be edited to change which applications the entries within the dictionary
Installation:
Navigate to the installation directory for Plover and open a terminal / command prompt.
Run:
<exe_name> -s plover_plugins install -e plover-application-dictionary
Restart Plover.
Dictionaries:
Dictionaries can match applications using three properties, app
, class
and title
. title
should be consistent
between platforms, whereas class
and app
will depend across platforms and specific user installations. To find an
application's app
or class
, see meta actions. class
is only available on some Linux systems.
Matching supports full Regex. An empty string will match anything.
Note: The plugin only checks the currently focussed window every 0.25 seconds, so translations made quickly after switching windows may be inaccurate.
The following is an example dictionary which only activates when Discord or Firefox is active. Implementation from system to system may vary.
Example.ad:
{
"app": "",
"class": "discord|Navigator",
"title": "",
"entries": {
...
}
}
The following is an example dictionary which defines separate entries depending on the user being messaged on Discord.
Example.mad:
[
{
"app": "",
"class": "discord",
"title": "@User1 - Discord",
"entries": {
...
}
},
{
"app": "",
"class": "discord",
"title": "@User2 - Discord",
"entries": {
...
}
}
]
Meta Actions:
The {:application_name}
meta outputs information about the currently active window. Argument can be app
, class
or
title
, or a combination of them with :
as a separator. When a property is unknown UNKNOWN
will be output.
The following example will output UNKNOWN:Navigator:Mozilla Firefox
(output will vary between platforms and installations).
Example:
{
"W*EUPB": "{:application_name:app:class:title}"
}
Project details
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
Hashes for plover-application-dictionary-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5c015ee3bcf0dbb2a7c3f7b54a1129233300d5e613e344b0bb5067c3d69852b |
|
MD5 | 2d395044804af676763c0382df7bd548 |
|
BLAKE2b-256 | 1ea979ed75deb56cf5948423e6ce50e936f9180864e1ecd4ec458ad4801ace43 |
Hashes for plover_application_dictionary-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66abc6294740702b355018e77ce0ef5773cd8ff540dbf1d93c6680860f7d3294 |
|
MD5 | ebbc3c9b5bc10e4a11d29d2c9d6b8375 |
|
BLAKE2b-256 | 0bd339d9c99861cab10a17fc44f206d90bff2ef7067fbd89ed19ff8f6d553ec7 |