Skip to main content

plover_clippy fork focused on extensibility and useability

Project description

Plover_clippy_2

Installation

simple

  • To install this plugin, right click the plover icon. go to tools -> plugins manager, find `plover-clippy-2`, and click "install/update".
  • When it finishes installing, restart Plover, go to configure -> plugins, and check the box next to `plover_clippy_2` to activate the plugin

File viewing

  • Now that you have installed this plugin it's time to use it!
  • By default the output is written into clippy_2.org in your config files
    • The same place as where your user.json and main.json is located

Terminal

  • here are some live commands for different platforms
  1. Windows

    Get-Content clippy_2.org -Wait -Tail 30
    
  2. Linux

    tail -f clippy_2.org
    
  3. WSL

    Note that on WSL, the flag `—disable-inotify` may be required to make `tail` work

    tail -f ---disable-inotify clippy_2.org
    
  4. Plover-live-view-nvim (neovim only)

    • This plugin is a live viewer which supports:
      • Splits - You can split both horizontally and vertically and customize the sizes of the splits
      • Terminal viewing (requires harpoon)
  5. vim-autoread (vim only [no nvim])

    • This plugin is a live viewer for buffer viewing
  6. Extra

Advanced

Customization

  • In your config directory create a python file:
    • clippy_2_cfg.py
  • feel free to write all your customization code here!
  1. Initialization

    • Below are some states that can be set by the user
      • Note that these are the basic defaults (see extended docs for more)
    def initPost(obj, clippy):
        clippy.state.output_file_name = "clippy_2.org"
        clippy.state.efficiency_symbol = "*"
        clippy.state.max_pad_efficiency = 5
        clippy.state.max_pad_english = 15
        clippy.state.justify = "left"
        clippy.state.last_num_translations = 10
    
    • output_file_name: name of the output file, directory location will default to config directory
    • efficiency_symbol: any one character symbol used to denote how many strokes can be saved
    • max_pad_efficiency: the maximum number of efficiency symbols that are allowed to be displayed
    • max_pad_english: the maximum amount of space padding for English translations
    • justify: add white space either "left" or "right" to the output
    • last_num_translations: these number of translations are used to give suggestions
    • note: initPost executes after this plugin initializes itself
  2. Formatting Sources

    • The different formats come from different "sources", choose whenever you want!!!
      • below is the default, but feel free to comment out whichever you want
    def startPost(obj, clippy):
        clippy.formatting.sources.set(
            ["Org", {"mode": "defaultSuggest"}]
            # ["Org", {"mode": "debugSuggest"}]
            # ["Org", {"mode": "minimalSuggest"}]
    
            # ["Retro", {"mode": "defaultSuggest"}]
            # ["Retro", {"mode": "minimalSuggest"}]
            )
    
    • For more information on customizing formatting sources, see the extended docs
  3. Suggestion sources

    • The suggestions come from different sources, and you can choose which sources to include!!!
      • Listed below are the defaults
    clippy.translations.sources.set("Undo", "FingerSpelling", "Retro", "Tkfps")
    
    • see Suggestion Sources for a more information on what each source does
    • see Sources for other methods like "append" and "prepend"
  4. distillation sources

    • TODO
  5. Extremity Sources

    • TODO

Multiple configurations

  • In this plugin it is possible to use multiple configurations to do crazy things like:
    • multifile output, each with different configurations
      • for example one file could have syntax highlighting and the other doesn't
    • become a framework for other text output programs like tapey-tape (maybe in the future)
  • see extended docs for more information

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

plover_clippy_2-0.0.6.tar.gz (29.0 kB view details)

Uploaded Source

Built Distribution

plover_clippy_2-0.0.6-py3-none-any.whl (37.1 kB view details)

Uploaded Python 3

File details

Details for the file plover_clippy_2-0.0.6.tar.gz.

File metadata

  • Download URL: plover_clippy_2-0.0.6.tar.gz
  • Upload date:
  • Size: 29.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.2

File hashes

Hashes for plover_clippy_2-0.0.6.tar.gz
Algorithm Hash digest
SHA256 36c96a4171f1fcb068d4580616c4e1d5751ee0937a934953f0cb0646a903043f
MD5 5b225456b2d1600b089f6bc9829e446d
BLAKE2b-256 459c7f43bd29b64409665120c7f7e50b9d3c70b544df5191b2c5332d03304396

See more details on using hashes here.

File details

Details for the file plover_clippy_2-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: plover_clippy_2-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 37.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.2

File hashes

Hashes for plover_clippy_2-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 194b3813ec28dce53ac94472311d41378af7227bb397715ed5d00a27a301a0aa
MD5 a04a361e7763cd521be11923099bdfb0
BLAKE2b-256 89ad911cadd41cf2e0f91ca69e786291055e33976039c2de0080fe4aef85be00

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page