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, disposably

Install the current release from PyPI to a virtual environment:

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

You will also need one of the following backends.

FoxDot backend

# Simply install, and Concern will use it:
venvname/bin/pip install FoxDot

pym2149 backend

# Install as usual:
venvname/bin/pip install pym2149

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

To use, permanently

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

To add a backend, substitute pip3 install --user for venvname/bin/pip install above. See ~/.local/bin for executables.

To develop

First install venvpool to get the motivate command:

pip3 install --user venvpool

Get codebase and install executables:

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

Requirements will be satisfied just in time, using sibling projects with matching .egg-info if any.

Commands

Concern

Vim-based live coding environment.

Usage

FoxDot

# Any arguments are passed to vim, here we discover the FoxDot demo directory:
Concern "$(venvname/bin/python -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

# Download some files to play with:
git clone git@github.com:combatopera/pym2149.git

# Load a non-trivial tune written in the Lurlene live coding language:
Concern 'pym2149/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-28.tar.gz (19.1 kB view details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file concern-28.tar.gz.

File metadata

  • Download URL: concern-28.tar.gz
  • Upload date:
  • Size: 19.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for concern-28.tar.gz
Algorithm Hash digest
SHA256 8c814c5c8e504234617b70660a53a86b729a8ecb9d7bf695dfe8f50dacb6e732
MD5 af95e2a10ae8e119f82334eedb0bcbe1
BLAKE2b-256 0c32dc7a8a5c0bb54f0bc612fda4739cedc0053f022a41e1ee61a5deddf568df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Concern-28-py3-none-any.whl
  • Upload date:
  • Size: 24.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for Concern-28-py3-none-any.whl
Algorithm Hash digest
SHA256 ef1786850335336f5595b8e965629792a2fcb7e53a1605ca24bfcbb95446f16e
MD5 9bb26948095da25f3c153441e60d1ffe
BLAKE2b-256 703999b9a1af9be31856513bd064c8b9bfb7291ca5787fa64df649e3d9463c2b

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