Skip to main content

Control pym2149 (via Lurlene) or FoxDot using Vim

Project description

Concern

Control pym2149 (via Lurlene) or FoxDot using Vim

Install

These are generic installation instructions.

To use, permanently

The quickest way to get started is to install the current release from PyPI:

# Tested on Linux and Mac:
pip3 install --user Concern

You will also need one of the following backends.

FoxDot backend

# Simply install, and Concern will use it:
pip3 install --user FoxDot

pym2149 backend

# Install as usual:
pip3 install --user pym2149

# Tell Concern to use it instead of foxdot:
echo Concern consumerName = pym2149 | tee -a ~/.settings.arid

To use, temporarily

If you prefer to keep .local clean, install to a virtualenv:

python3 -m venv venvname
venvname/bin/pip install Concern
. venvname/bin/activate

To add a backend, substitute pip install for pip3 install --user above.

To develop

First clone the repo using HTTP or SSH:

git clone https://github.com/combatopera/Concern.git
git clone git@github.com:combatopera/Concern.git

Now use pyven's pipify to create a setup.py, which pip can then use to install the project editably:

python3 -m venv pyvenvenv
pyvenvenv/bin/pip install pyven
pyvenvenv/bin/pipify Concern

python3 -m venv venvname
venvname/bin/pip install -e Concern
. venvname/bin/activate

Commands

Concern

Vim-based live coding environment.

Usage

FoxDot

# Any arguments are passed to vim, here we discover the FoxDot demo directory:
Concern "$(python3 -c 'from pkg_resources import resource_filename; print(resource_filename("FoxDot", "demo"))' | tail -1)"
  • FoxDot is running in the right hand third of the screen
  • Send code to FoxDot by typing backslash followed by ]
    • This will send the smallest top-level suite under the cursor
    • The backslash is actually your Vim leader key
  • Use visual mode to send multiple top-level suites at once
  • Use backslash enter instead of backslash ] to send from cursor to the end of the file
  • Use backslash q to quit all of Vim, FoxDot and GNU Screen

pym2149

# GitHub trick to download some files to play with:
svn export https://github.com/combatopera/pym2149/trunk/contrib

# Load a non-trivial tune written in the Lurlene live coding language:
Concern 'contrib/Lemmings 2 Tune 6.py'
  • Once pym2149 has initialised, type backslash enter at the top of the file to send the whole program

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

Concern-25.tar.gz (19.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Concern-25-py3-none-any.whl (24.0 kB view details)

Uploaded Python 3

File details

Details for the file Concern-25.tar.gz.

File metadata

  • Download URL: Concern-25.tar.gz
  • Upload date:
  • Size: 19.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.12 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.9

File hashes

Hashes for Concern-25.tar.gz
Algorithm Hash digest
SHA256 96dc580b5dd92d3af650bd0e241bab2a52ef3b52da9b969ae2f18f8f1ad47bec
MD5 bbd23b23d245b8a43cb9937e9cf6ed8a
BLAKE2b-256 5c69598cd97468bf41109691526e91bc48dc81f865ac1eacb71f7a6d3be1e686

See more details on using hashes here.

File details

Details for the file Concern-25-py3-none-any.whl.

File metadata

  • Download URL: Concern-25-py3-none-any.whl
  • Upload date:
  • Size: 24.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.12 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.9

File hashes

Hashes for Concern-25-py3-none-any.whl
Algorithm Hash digest
SHA256 e5a6f7c1869bd92d6c187a7f2b8dbaaa0314a8980d6f77fa9c343ca3c1aaf7c8
MD5 4a25ba04d1c2089554db4dbc20efcea0
BLAKE2b-256 c91cde5e3b8a9e247808f94641c7544722d43c7ddf6c3cb58ae0c0ef314f763a

See more details on using hashes here.

Supported by

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