47 Commits

Author SHA1 Message Date
Dave Yarwood
f9b189166e PlayBuffer shouldn't alter the REPL server state 2021-07-05 12:04:03 -04:00
Dave Yarwood
4518216bb6 Remove vestigial alda_code argument 2021-07-05 11:59:16 -04:00
Dave Yarwood
0f1882adce Update README for Alda 2 2021-06-28 21:34:08 -04:00
Dave Yarwood
ec1c43dd58 Alda 2 REPL integration 2021-06-28 21:33:06 -04:00
Dave Yarwood
e4e5372b2d RunAsync should return the job ID 2021-06-28 11:08:41 -04:00
Dave Yarwood
cbb2369d98 Set NO_COLOR=true in alda CLI subprocesses 2021-06-28 11:07:52 -04:00
Dave Yarwood
a5138ebaf2 Trim extraneous newlines from printed stdout/stderr output 2021-06-27 22:31:05 -04:00
Dave Yarwood
833e265d65 Move "Stopping playback." message into the Alda CLI itself 2021-06-27 22:30:47 -04:00
Dave Yarwood
64b5725ace Add :Alda CLI wrapper 2021-06-27 22:19:07 -04:00
Dave Yarwood
adb83fe61c Join output after all 2021-06-27 17:38:15 -04:00
Dave Yarwood
f7c3c84ec9 Clean up echo area output a little 2021-06-27 17:37:55 -04:00
Dave Yarwood
9f549841c4 Remove everything history-related (no longer relevant in Alda 2) 2021-06-27 16:49:09 -04:00
Dave Yarwood
011d2bb936 Refactor shell handling code a bit 2021-06-27 16:39:22 -04:00
Dave Yarwood
b34086eb80 Remove g:alda_port, --port, --no-color
This gets parsing working with Alda v2! 🎉
2021-06-27 15:11:48 -04:00
Dave Yarwood
0cf0130d37 Update copyright years 2021-06-27 15:04:18 -04:00
Dave Yarwood
f1a73fc4eb I'm bad at estimation 2021-06-27 14:58:56 -04:00
Dave Yarwood
26bd1385b7 Add a note about lack of Alda v2 support (for now) 2021-05-02 08:37:10 -04:00
Dave Yarwood
ce9f0d07ea Update copyright years 2021-03-28 20:30:53 -04:00
Dave Yarwood
468dc2a5c2 Update my thoughts about Vim support 2021-03-28 20:30:12 -04:00
Dave Yarwood
ab6b991399 Add note to README about vim-alda currently only working on Neovim 2021-03-27 08:08:01 -04:00
Dave Yarwood
97f1580547 gg => gg0 to ensure that we start from the first character of the first line 2020-01-15 11:45:15 -05:00
Dave Yarwood
f7f6f62269 clear history when playing entire buffer 2018-08-26 06:19:45 -04:00
Dave Yarwood
b1a0656039 Use --no-color option for cleaner messages (no ANSI color codes) 2018-08-25 20:32:13 -04:00
Dave Yarwood
1747a8283d add commands/keybindings for parsing score events 2018-02-05 06:26:02 -05:00
Dave Yarwood
7bab336179 rename AldaParseFile/AldaPlayFile to AldaParseBuffer/AldaPlayBuffer
It turns out that I had already renamed AldaPlayFile to AldaPlayBuffer, but
forgot to update the help text to reflect the change.

I like calling it a Buffer in the command instead of a File, because File
implies that you have to save the file and the file is what's getting passed to
Alda, when what we're really doing is piping all the text in the buffer into
Alda -- which is more convenient because you don't have to save the file first.
2018-02-04 10:27:59 -05:00
Dave Yarwood
88aaeb5c49 remove note about saving score before parsing
It turns out this isn't required anymore, and I just forgot to update the
help text to reflect that improvement.
2018-02-04 10:19:44 -05:00
Dave Yarwood
073e295aca add syntax highlighting for markers/at-markers 2018-01-23 07:11:39 -05:00
Dave Yarwood
548ca90aac add syntax highlighting for voices; change syntax group for octave changes 2018-01-22 10:48:41 -05:00
Dave Yarwood
8fce7be262 proper syntax highlighting of inline clojure code 2018-01-22 07:38:52 -05:00
Dave Yarwood
81ae7a796e disable luochen1990/rainbow (rainbow parens) in alda buffers to keep it from interfering with syntax highlighting 2018-01-21 14:36:58 -05:00
Dave Yarwood
aadbcea8dc fix weird issue re: empty STDERR event
On this machine, for some reason, an empty STDERR event is being
handled, and trying to echo the message fails for some reason.

Ensuring that we only echo the message if its length is > 0 fixes it.

¯\_(ツ)_/¯
2017-12-03 00:22:25 -05:00
Dave Yarwood
b79f635e51 add g:alda_port option 2017-10-16 21:37:03 -04:00
Dave Yarwood
a94bc64942 move g:alda_command initialization to a more sensible place 2017-10-16 21:28:44 -04:00
Dave Yarwood
0c77a104d1 play operator, async calls, misc. other improvements 2017-08-13 17:53:03 -04:00
Dave Yarwood
ac057da638 fix/update AldaParseFile (now <localleader>s)
- The `--lisp` option is no longer supported, so parsing fails altogether.
  Updated the `alda parse` command we run to not use this flag, so it works
  again.

- The output is JSON now, not Lisp code. As a convenience, vim-alda will
  recognize when you have `jq` on your $PATH and use it to pretty-print the
  JSON so that it's readable.

- Changed the parse mapping from <localleader>l to <localleader>s. The old
  mnemonic was L for "Lisp," but now that we aren't generating Lisp code, the
  new mnemonic is S for "Score."
2017-06-14 22:44:35 -04:00
Dave Yarwood
8f120f82a5 bugfix: shell-escape the buffer name 2015-12-17 19:05:49 -05:00
Dave Yarwood
2cb2c64e80 increase dopeness level of alda.txt 2015-11-25 19:25:05 -05:00
Dave Yarwood
e257581a65 🎹 🎶 2015-11-25 18:20:43 -05:00
Dave Yarwood
094f2bf320 load Alda fns only when needed 2015-11-25 18:13:47 -05:00
Dave Yarwood
6a0d5e63c1 AldaPlayFile command 2015-11-24 09:37:08 -05:00
Dave Yarwood
0feb6845df show 'please wait...' message when parsing 2015-11-23 03:00:03 -05:00
Dave Yarwood
cb6f8825ca score-parsing commands 2015-11-22 14:29:59 -05:00
Dave Yarwood
fac428b9bd folding 2015-11-21 15:44:43 -05:00
Dave Yarwood
45031eaae2 custom [[, ]], [], ][; start documenting 2015-11-21 15:28:58 -05:00
Dave Yarwood
53f05ec2fe syntax highlighting clj exprs, WIP
This covers Clojure expressions which may include close-parens as character literals or inside of strings. Nesting Clojure expressions breaks highlighting though, it terminates on the first non-character-non-string close-paren that it finds.

So these are highlighted correctly:

    (tempo! 126)
    (prn \( "hey" \))
    (prn "some stuff (in parens)")

But this is not:

    (+ 1 (* 2 3))
2015-11-10 09:42:45 -05:00
Dave Yarwood
1f8d273e6b TODO items 2015-11-10 09:42:31 -05:00
Dave Yarwood
17ac703d81 init
* filetype detection
* very, very basic syntax highlighting. need to add/fix a lot of things.
* vim-commentary support
2015-11-07 14:02:51 -05:00