froos
06f9c2dfb5
Merge pull request 'Expose Vim object in order to create custom keybindings' ( #1816 ) from JohnBjrk/strudel:expose-vim-for-custom-keybindings into main
...
Reviewed-on: https://codeberg.org/uzu/strudel/pulls/1816
2025-12-28 22:56:05 +01:00
Felix Roos
e4e2d60b28
Merge branch 'main' into vanillarepl
2025-12-28 12:58:45 +01:00
John Björk
a9752fb2a4
Exposing Vim from codemirror-vim
...
Docs for adding keybindings
Only expose Vim from keybindings
2025-12-20 17:20:38 +01:00
Dsm0
0de212c12f
fix visual block mode
2025-12-18 22:55:44 -08:00
froos
56ecb006fa
Merge pull request 'Feature: non-realtime exporting' ( #1674 ) from BANanaD3V/strudel:feat/non-realtime-exporting into main
...
Reviewed-on: https://codeberg.org/uzu/strudel/pulls/1674
2025-12-19 00:45:39 +01:00
Felix Roos
48407c309c
add basic dough repl
2025-11-17 23:10:10 +01:00
Alex Victoria
247bf9b930
fix for node 24 support #1718
2025-11-04 20:54:21 -06:00
Jade (Rose) Rowland
4f046ae883
cf
2025-11-01 02:40:40 -04:00
Jade (Rose) Rowland
2b575d50b9
temporarily disable sample autocomplete
2025-11-01 02:39:43 -04:00
Jade (Rose) Rowland
7b92874909
fix broken array
2025-11-01 01:55:05 -04:00
Jade (Rose) Rowland
a41b07c67a
fixed build
2025-11-01 01:44:32 -04:00
froos
980bf17059
Merge branch 'main' into feat/vim-shortcuts
2025-10-28 22:38:04 +01:00
alex
cbe7aaacfb
Publish
...
- @strudel/codemirror@1.2.6
- @strudel/core@1.2.5
- @strudel/csound@1.2.6
- @strudel/draw@1.2.5
- @strudel/gamepad@1.2.5
- @strudel/hydra@1.2.5
- @strudel/midi@1.2.6
- @strudel/mini@1.2.5
- @strudel/mondo@1.1.5
- @strudel/motion@1.2.5
- @strudel/mqtt@1.2.5
- @strudel/osc@1.3.0
- @strudel/repl@1.2.7
- @strudel/serial@1.2.5
- @strudel/soundfonts@1.2.6
- superdough@1.2.6
- supradough@1.2.4
- @strudel/tonal@1.2.5
- @strudel/transpiler@1.2.5
- @strudel/web@1.2.6
- @strudel/webaudio@1.2.6
- @strudel/xen@1.2.5
2025-10-27 15:38:32 +00:00
Nikita
95700e1196
Fix wavetables breaking after playback
2025-10-22 20:00:36 +03:00
Nikita
daea207aff
Better sample loading
2025-10-21 22:42:01 +03:00
Nikita
92d3fe496d
Bug fixes
2025-10-21 21:00:30 +03:00
Felix Roos
105db2a4ca
fix: tonal import in autocomplete + add tonal to codemirror package dependencies
2025-10-18 08:49:31 +02:00
dtricks
f48f8e46e5
fix empty catches
2025-10-06 15:53:44 +02:00
dtricks
a79fc3db5b
remove unnecessary comments
2025-10-06 15:53:44 +02:00
dtricks
46ba165c7e
remove gcc
2025-10-06 15:53:44 +02:00
dtricks
73a9834959
codeformat
2025-10-06 15:53:44 +02:00
dtricks
be9368e8a2
feat(codemirror): add Vim :w evaluate, :q stop, and gc/gcc toggle comment via custom events; docs: add Vim shortcuts page and link from REPL manual
2025-10-06 15:53:44 +02:00
Matthew Pocock
7080490c68
Merge handlers and cache regexes in autocomplete
...
- Merged scalePreColonHandler and scaleAfterColonHandler into single scaleHandler
- Merged modePreColonHandler and modeAfterColonHandler into single modeHandler
- Cached all regex patterns as constants above their respective handler functions
- Eliminated regex compilation overhead on every keystroke/navigation event
- Improved code maintainability by reducing duplication between similar handlers
- Preserved exact same functionality while improving performance
Each handler now follows a consistent pattern of checking after-colon context
first (more specific) then pre-colon context, with all regex patterns
pre-compiled for better performance during intensive autocomplete sessions.
2025-09-18 21:52:40 +01:00
Matthew Pocock
edb6c0db2e
Reordered handlers to be a bit more organised.
2025-09-16 14:45:22 +01:00
Matthew Pocock
6ebe84e096
Added completion for chord.
2025-09-15 21:34:15 +01:00
Matthew Pocock
cb011c8bb0
Add autocomplete for mode function
...
- Added modePreColonHandler for autocomplete of mode values (below, above, duck, root)
- Added modeAfterColonHandler for pitch name completion after colon in mode:anchor syntax
- Follows same pattern as sound/bank/scale handlers for complex expressions
- Supports expressions like '<above [below root]>' with proper fragment matching
- Uses regex pattern (?:[\s\[\{\()<])([\w:]*)$ to handle delimited expressions
2025-09-15 18:44:30 +01:00
drdozer
c8875b29c1
Improve autocompletion behavior
...
- Refactored handlers to use consistent early return pattern for better readability
- Added blocking behavior for unquoted contexts (sound(, scale(, bank()) to guide users toward correct syntax instead of showing irrelevant fallback completions
- Fixed soundHandler to show all sounds when fragment is empty (e.g., sound(""))
- Simplified bankHandler by removing complex quote handling logic in favor of consistent blocking pattern
- Made scale handler regex patterns consistent (removed leading dots)
- All handlers now follow same structure: block unquoted contexts, provide completions for quoted contexts
2025-09-15 14:27:59 +01:00
drdozer
978616833a
Merged autocomplete.mjs conflict.
2025-09-15 13:01:16 +01:00
Felix Roos
2d2b238da9
fix: use template element for string to html
2025-09-14 01:03:14 +02:00
froos
f0839e02eb
Merge pull request 'Feature: Synonyms in autocomplete and reference' ( #1535 ) from glossing/strudel:glossing/synonyms-in-autocomplete into main
...
Reviewed-on: https://codeberg.org/uzu/strudel/pulls/1535
2025-09-14 00:49:16 +02:00
Aria
709b654ed3
Add synonyms to autocomplete
2025-09-13 16:21:09 -05:00
drdozer
cd659ac2a1
feat: sound autocomplete matches anywhere in name using includes()
2025-09-13 21:36:24 +01:00
drdozer
ed182d4b3f
Updated the codemirror packages to be able to access additional imports.
2025-09-13 21:36:24 +01:00
drdozer
90614612e2
feat: add E# and B# to pitchNames for complete enharmonic coverage
2025-09-13 21:36:24 +01:00
drdozer
0b67473bd3
refactor: modularize autocomplete context handlers using strategy array
2025-09-13 21:36:24 +01:00
drdozer
d87ce960d2
feat: implement context-aware autocomplete
...
Adds context-sensitive autocompletion for:
- Sound names in s("...") and sound("...") after the opening quote or after whitespace/bracket
- Bank names in bank("...") with quote handling and live filtering
- Scale types in .scale("...") after the colon, inserting colon-form for multi-word names
- Pitch names (C, C#, Db, etc.) for scale keys on explicit completion (Ctrl+Space) before the colon
- Blocks fallback completions in scale context before colon to avoid function list cross-talk
2025-09-13 21:36:24 +01:00
Felix Roos
5e2e6411e5
Publish
...
- @strudel/codemirror@1.2.5
- @strudel/repl@1.2.6
2025-09-11 08:26:20 +02:00
froos
0fac16e769
Merge pull request 'add basicSetup for keybindings' ( #1462 ) from Dsm0/strudel:codemirror-keymap-fix into main
...
Reviewed-on: https://codeberg.org/uzu/strudel/pulls/1462
2025-09-11 00:27:20 +02:00
Felix Roos
d0ce82e3cd
Publish
...
- @strudel/codemirror@1.2.4
- @strudel/core@1.2.4
- @strudel/csound@1.2.5
- @strudel/draw@1.2.4
- @strudel/gamepad@1.2.4
- @strudel/hydra@1.2.4
- @strudel/midi@1.2.5
- @strudel/mini@1.2.4
- @strudel/mondo@1.1.2
- @strudel/motion@1.2.4
- @strudel/mqtt@1.2.4
- @strudel/osc@1.2.4
- @strudel/repl@1.2.5
- @strudel/sampler@0.2.3
- @strudel/serial@1.2.4
- @strudel/soundfonts@1.2.5
- superdough@1.2.5
- @strudel/tonal@1.2.4
- @strudel/transpiler@1.2.4
- @strudel/web@1.2.5
- @strudel/webaudio@1.2.5
- @strudel/xen@1.2.4
2025-09-10 23:08:16 +02:00
Aria
c199b51645
Update autocomplete name to be the label and update ref to use main name as a synonym
2025-09-02 16:29:01 -05:00
Aria
439a7dc5e6
Include synonyms in autocomplete
2025-09-02 16:05:40 -05:00
Aria
a5886bb9d4
Use white-space instead; fix scrolling; don't close autocomplete tooltips on click
2025-08-26 14:14:00 -05:00
Aria
877bc95a58
Switch to more specific class and fix p->div
2025-08-26 12:54:39 -05:00
Felix Roos
215ab87809
fix: prettier
2025-08-21 09:41:21 +02:00
froos
6f75a0a62b
Merge pull request 'fix: repl autocomplete not rendering correctly' ( #1480 ) from robase/strudel:fix-repl-autocomplete-styles into main
...
Reviewed-on: https://codeberg.org/uzu/strudel/pulls/1480
2025-08-20 12:31:36 +02:00
Jade (Rose) Rowland
f17a4d045f
Publish
...
- @strudel/codemirror@1.2.3
- @strudel/core@1.2.3
- @strudel/csound@1.2.4
- @strudel/draw@1.2.3
- @strudel/embed@1.1.1
- @strudel/gamepad@1.2.3
- @strudel/hydra@1.2.3
- @strudel/midi@1.2.4
- @strudel/mini@1.2.3
- mondolang@1.1.1
- @strudel/mondo@1.1.1
- @strudel/motion@1.2.3
- @strudel/mqtt@1.2.3
- @strudel/osc@1.2.3
- @strudel/reference@1.2.1
- @strudel/repl@1.2.4
- @strudel/serial@1.2.3
- @strudel/soundfonts@1.2.4
- superdough@1.2.4
- @strudel/tonal@1.2.3
- @strudel/transpiler@1.2.3
- @strudel/web@1.2.4
- @strudel/webaudio@1.2.4
- @strudel/xen@1.2.3
2025-08-18 11:46:29 -04:00
robase
3292f88810
fix: repl autocomplete not rendering correctly
2025-08-07 09:25:01 +02:00
Dsm0
5448fc6077
removed duplication and unnecessary keymappings in codemirror config
2025-07-16 15:17:34 -07:00
Dsm0
06fafbd8eb
Ensure no default extensions conflict with extensions in defaultSettings
2025-07-16 15:03:55 -07:00
Dsm0
10156f0067
add basicSetup for keybindings
2025-07-15 19:13:24 -07:00