49 Commits

Author SHA1 Message Date
Kaspars
ef14074164 add option to disable active line highlighting in Code Settings 2023-11-15 22:38:00 +01:00
Alexandre G.-Raymond
353333653f
Implement optional hover tooltip with function documentation 2023-11-05 13:00:54 +01:00
Felix Roos
638f5c7323 rename bindings key 2023-11-02 08:48:11 +01:00
Dsm0
0c2838cc90 fixed style issues 2023-11-01 17:55:40 -04:00
Dsm0
d4c12dcef4 integrated vscode bindings 2023-11-01 17:14:22 -04:00
Felix Roos
c051a1249d remove checkbox 2023-10-01 14:06:32 +02:00
Felix Roos
aa094bf930 checkbox + number slider 2023-09-29 10:40:00 +02:00
Felix Roos
34176ab5f8 refactor:
- dedupe flash / highlighting logic
- codemirror logic now lives only in codemirror package
- remove old highlighting logic
- use codemirror package in react package
- cleanup CodeMirror6.jsx
- pull setMiniLocations into useHighlighting
- migrate MiniRepl, nano-repl + Repl to new highlighting
2023-07-04 21:49:39 +02:00
Felix Roos
dacd9afac0 comment out opacity logic for now 2023-07-04 18:34:22 +02:00
Felix Roos
3fc5bb31d0 fix: do not recreate haps mapping on update 2023-07-04 18:22:22 +02:00
Matthew Kaney
f5b092acf2 Split up highlighting logic and add progress flash 2023-07-03 17:06:39 -04:00
Matthew Kaney
aded178ab7 Pass mininotation locations into highlight state 2023-07-03 03:55:49 -04:00
Felix Roos
0b5d905120 fix: adaptive highlighting
- transpiler now uses m function with globalOffset
- patternifyAST now accepts global offset
- patternifyAST now calls .withLoc with global leaf location
- .withLoc replaces .withLocation + .withMiniLocation
- simple locs (offsets) are now used everywhere
- some tests fail, seems some haps have reordered...
- wip: Repl still uses hardcoded updateMiniLocations
- todo: find way to call updateMiniLocations dynamically
2023-07-03 05:15:32 +02:00
Felix Roos
63c23736ad wip: adaptive highlighting 2023-07-02 18:33:44 +02:00
Felix Roos
bd8ad1ed1b fix: out of range error due to rerender 2023-06-30 22:40:02 +02:00
Roipoussiere
f37a220a05 add checkbox in settings to enable line wrapping 2023-06-15 11:52:29 +02:00
Felix Roos
aa51c2b6dd Merge remote-tracking branch 'upstream/main' into line_wrap 2023-06-15 10:59:52 +02:00
Roipoussiere
5e09c3c318 add autocompletion extension from useMemo 2023-06-09 18:28:16 +02:00
Roipoussiere
8e6909478c autocompletion: lint 2023-06-09 16:42:31 +02:00
Roipoussiere
2d2d0cabb3 Add option in settings to enable autocompletion 2023-06-09 16:38:48 +02:00
Roipoussiere
6f04a1b8fa autocomplete: add vanilla js completion 2023-06-09 14:52:07 +02:00
Roipoussiere
3069b14e9c enable autocompletion 2023-06-09 13:41:40 +02:00
Roipoussiere
0c2147d9c5 repl: add option to display line numbers 2023-06-07 15:34:57 +02:00
Roipoussiere
b6d1f96930 editor: enable line wrapping 2023-06-06 13:29:55 +02:00
Felix Roos
d74cc234c4 fix: thinner outline for highlights with .color 2023-05-12 10:06:55 +02:00
Felix Roos
b88e0ecb78 fix: colorable highlighting 2023-04-22 15:25:00 +02:00
Felix Roos
032acbd27c comment out autocomplete 2023-02-28 22:11:17 +01:00
Felix Roos
0006d57a4a move isZen to nanostore
+ correctly parse non strings in store
2023-02-22 22:47:33 +01:00
Felix Roos
b67b049802 refactor settings to nanostores 2023-02-22 22:04:39 +01:00
Felix Roos
ff99dbcd22 customizable font family 2023-02-22 20:28:22 +01:00
Felix Roos
632e8e9634 use css var for highlighting color 2023-02-19 20:03:12 +01:00
Felix Roos
ceb3aa0627 add emacs mode + fontSize slider 2023-02-19 13:49:55 +01:00
Felix Roos
014555fe5d add vim toggle to settings
+ added persistent global state store
+ refactored themes to use the new store
2023-02-19 01:51:31 +01:00
Felix Roos
18d3a7e23a add vim extension (hard coded) 2023-02-17 10:41:49 +01:00
Felix Roos
0fb478a7c8 no autocomplete until upstream merge 2023-02-11 20:55:35 +01:00
Felix Roos
fe80478b8a Merge remote-tracking branch 'origin/main' into docs 2023-02-10 23:18:04 +01:00
Felix Roos
3579b6f8f3 dynamic highlight color
+ refactor hooks
2023-02-10 22:52:34 +01:00
Felix Roos
f497d7b212 reactify autocomplete info 2023-02-09 18:37:29 +01:00
Felix Roos
0f18f5eb81 remove logs 2023-02-09 14:16:37 +01:00
Felix Roos
97cbdc6b0f use jsdoc in autocomplete, still not context aware
+ add noAutocomplete flags
+ add superdirtOnly flags
2023-02-09 12:19:38 +01:00
Felix Roos
30b149053c basic theme switcher 2023-02-08 18:54:34 +01:00
Felix Roos
4e09cc14b6 fix #178 2022-08-14 11:27:13 +02:00
Felix Roos
f34d0a29e8 memo all things codemirror 2022-08-13 18:39:38 +02:00
Felix Roos
55b2d7f68f add onSelectionChange callback 2022-08-05 23:50:42 +02:00
Felix Roos
67c21c18cf set background to 222 + remove log 2022-08-05 23:23:51 +02:00
Felix Roos
93251582ab replace react-codemirror 2022-08-05 23:05:33 +02:00
Felix Roos
913416a9d5 style fixes + hide-console option
- thicker highlighting outline
- only shade actual characters, not whole lines
- strudel hide-console will now hide console
2022-07-29 00:00:41 +02:00
Felix Roos
b9829bb696 flash effect on ctrl enter 2022-06-24 21:13:17 +02:00
Felix Roos
0d63ec9146 basic react package 2022-05-14 20:27:05 +02:00