Control FoxDot or pym2149 using Vim
Project description
Concern
Use Vim to control FoxDot or pym2149 with the aid of GNU Screen.
Install latest release
# 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
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 enter
- 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
]
instead of backslash enter to send from cursor to the end of the file - To quit you will need to terminate both Vim and FoxDot manually
- Use
ctrl a
followed byn
to navigate to the next GNU Screen window
- Use
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 pym2149's (currently nameless) live coding language:
Concern 'contrib/Lemmings 2 Tune 6.py'
- Once pym2149 has initialised, type backslash
]
at the top of the file to send it
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Concern-9.tar.gz
(6.2 kB
view details)
Built Distribution
Concern-9-py3-none-any.whl
(23.7 kB
view details)
File details
Details for the file Concern-9.tar.gz
.
File metadata
- Download URL: Concern-9.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.5.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18c8b1ec37e5f9938099bcf530bb1f9717ae0d326bae08e828fb9f5c37b7fffe |
|
MD5 | ae92dd56832a258598cef6df6b2b87ac |
|
BLAKE2b-256 | 24bb6f0aadcc845d144fb7d3159c8a482d4f1465f8c4090cd1196bb68e4ee9ac |
File details
Details for the file Concern-9-py3-none-any.whl
.
File metadata
- Download URL: Concern-9-py3-none-any.whl
- Upload date:
- Size: 23.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.5.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db8290b07d30402f3f1ada2439db7924f69641117f98966a7eb1a6bd199b3ec2 |
|
MD5 | b3dbdcf3c87cb62807a98d9dc5900432 |
|
BLAKE2b-256 | 3ebfa7ac94efec7b66a960d0943ff21b5c6c461f862d9f2032f51516ab504cd0 |