Skip to content
This repository has been archived by the owner on Apr 10, 2023. It is now read-only.

Play section on enter #22

Open
ghalestrilo opened this issue Dec 18, 2020 · 2 comments
Open

Play section on enter #22

ghalestrilo opened this issue Dec 18, 2020 · 2 comments
Projects

Comments

@ghalestrilo
Copy link
Owner

When hovering a section, pressing enter should send the section to the REPL

Versions

  1. use the :definition key
  2. send each pattern command
  3. generate the block and send it
@ghalestrilo ghalestrilo created this issue from a note in Features (To do) Dec 18, 2020
This was referenced Dec 18, 2020
@ghalestrilo
Copy link
Owner Author

ghalestrilo commented Dec 21, 2020

Sending a block is complicated. I see three options:

  1. Send via port (investigate flok on this)
  • Good: little coupling
  • Bad: hard
  1. Send via tmux
  • Good: provedly works with tidal (tidal.kak)
  • Bad: presumes usage of tmux (coupling), works only with CLI/TUI/REPL tools

This is a complicated issue so these are the steps I chose to take:

  1. Implement a visual feedback for what patterns are playing (make them bold)
  2. Implement the Ctrl+Enter shortcut with a dummy printing function
  3. Make a stable dev session in tmux with seg and tidal
  4. Implement one of the solutions above
  5. Fix RegExp Lookbehind in tidalcycles regex #26
  6. Compile (so we can run dev mode w/o node server)

@ghalestrilo
Copy link
Owner Author

Turns out that flok spawns each repl as a child_process. This may prove a good approach. These are the attempts I will make:

  1. Use node's child_process lib to spawn and manage them
  2. Use J's (react-blessed) [terminal] component to run the repl - this is kind of a pain because of the pty issue which requires an ugly hack to work

These are my current references:

@ghalestrilo ghalestrilo moved this from To do to In progress in Features Dec 24, 2020
@ghalestrilo ghalestrilo moved this from In progress to Done in Features Dec 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Development

No branches or pull requests

1 participant