Commit Graph

457 Commits

Author SHA1 Message Date
Anton-4
8a5a1ae244 consistent color naming 2021-02-19 19:16:37 +01:00
Anton-4
2bbd569ba1 fixed comment position 2021-02-19 18:37:14 +01:00
Anton-4
33a7ed0f3b uncommented app_update tests 2021-02-19 18:25:45 +01:00
Anton-4
902c38bb69 merge fixes 2021-02-19 17:53:48 +01:00
Anton-4
c1e0f73851 Merge branch 'trunk' of github.com:rtfeldman/roc into ui_refactor 2021-02-19 17:40:32 +01:00
Anton-4
7853c41944 done with UI refactor, adjusted colors to roc logo 2021-02-19 17:33:27 +01:00
Richard Feldman
89e1150b6a
Merge pull request #998 from rtfeldman/editor_ideas
More editor ideas
2021-02-17 23:06:51 -05:00
Anton-4
774f723980 ui refactoring progress 2021-02-17 20:04:30 +01:00
Anton-4
4c4b720123
Debugging idea 2021-02-17 14:51:28 +01:00
Anton-4
05692e2c31 more ui refactoring progress 2021-02-16 20:02:42 +01:00
Anton-4
28e9431b97
More editor ideas 2021-02-16 18:29:40 +01:00
Anton-4
2f11f59ccb
Added sourcetrail inspiration from @popara 2021-02-16 11:18:02 +01:00
Anton-4
b905fadcf9 refactoring progress 2021-02-15 18:36:49 +01:00
rvcas
911a063d1c kinda render Num.add 2021-02-15 11:13:12 -05:00
rvcas
66e4e03a99 make type2 smaller by implementing problem2 2021-02-15 10:30:40 -05:00
Lucas
42d7c5b0ec
Merge branch 'trunk' into solved_type_to_type_id 2021-02-14 12:59:26 -05:00
rvcas
9ff3dec715 explicit type 2021-02-13 14:38:11 -05:00
rvcas
1ff0423bda index into pool by node_id 2021-02-13 14:20:08 -05:00
Anton-4
d289dc9f73 refactoring to separate UI folder for future UI framework 2021-02-13 19:41:20 +01:00
Anton-4
60e0f4d4db
more ideas 2021-02-13 19:09:40 +01:00
Anton-4
7f6149ae30
Show productivity/feature tips 2021-02-13 18:59:32 +01:00
Anton-4
251f85b0e3
More editor ideas 2021-02-13 18:38:41 +01:00
rvcas
d1e9a77740 feat: have the recursion happen in a function that return Type2 2021-02-12 21:51:50 -05:00
rvcas
3e3560137a feat: start function 2021-02-12 21:18:19 -05:00
Anton-4
9dda23cf8b Home + End keys, refactoring for seperate ui folder/lib 2021-02-12 19:38:20 +01:00
Richard Feldman
299018aa34
Merge branch 'trunk' into select_all 2021-02-11 23:33:56 -05:00
Richard Feldman
411ac41085
Merge branch 'trunk' into editor_cut 2021-02-11 23:33:37 -05:00
rvcas
eddc85a365 feat(editor): render Expr2::GlobalTag 2021-02-11 08:59:19 -05:00
Anton-4
4f7269d87d moved handle_select_all to ed_update 2021-02-10 19:53:42 +01:00
Anton-4
ca5e2d0285 Ctrl+A to select all 2021-02-10 18:58:56 +01:00
Anton-4
ae57b87b1e cut text with Ctrl+X 2021-02-10 16:44:14 +01:00
Richard Feldman
2b4bb69e44
Merge pull request #975 from rtfeldman/parse-param-error
Good parse error messages!
2021-02-09 22:55:29 -05:00
Lucas
0bb92f7952
Merge branch 'trunk' into add_lifetime_to_text 2021-02-09 21:17:44 -05:00
Richard Feldman
f81186649a
Merge branch 'trunk' into comment_arena 2021-02-09 20:17:11 -05:00
Anton-4
cd8adb1d6d arena heads-up comment, mem_arena -> arena, used seperate arena for GUI rects 2021-02-09 17:11:33 +01:00
rvcas
ff985e5fac fix: PoolStr len should be string.len() 2021-02-09 10:42:39 -05:00
rvcas
d42aacb506 add Expr2::Str case to render 2021-02-09 10:30:22 -05:00
Anton-4
b78a7a94b2
Merge branch 'trunk' into editor_ideas 2021-02-09 16:16:44 +01:00
Anton-4
86dd751569
collection of research + lamdu 2021-02-09 16:16:32 +01:00
rvcas
04320f95fe len as usize 2021-02-09 10:01:36 -05:00
rvcas
36e3b5d556 try to use pool str instead of arena 2021-02-09 09:45:12 -05:00
rvcas
b9cfe985ee Merge branch 'trunk' into add_lifetime_to_text 2021-02-08 23:45:36 -05:00
Folkert
f5a48237b7 Merge remote-tracking branch 'origin/trunk' into parse-param-error 2021-02-08 22:55:17 +01:00
Anton-4
3e2ac2e81e
Added luna lang 2021-02-08 16:40:47 +01:00
Anton-4
5d4543ae5c more editor ideas 2021-02-08 11:52:46 +01:00
Richard Feldman
7feada88e4
Merge branch 'trunk' into parser-with-progress 2021-02-08 00:11:04 -05:00
Folkert
2c9a80153d remove Bag 2021-02-08 00:33:29 +01:00
Folkert
ca04411523 fix tests/more uniq removal 2021-02-07 22:50:33 +01:00
Folkert
38b21c3474 add lifetime to SyntaxError 2021-02-07 22:26:55 +01:00
Folkert
148fffe969 parameterize Parser on an Error type 2021-02-07 22:08:28 +01:00
Folkert
dc5eec189c report unexposed values 2021-02-07 01:17:46 +01:00
rvcas
3b0425e81f text needs a lifetime and str 2021-02-05 18:19:16 -05:00
Richard Feldman
c2a355ab4b
Merge pull request #966 from rtfeldman/unwrap_number_and_use_arena
Render Expr2 Better Number Matches
2021-02-05 07:38:34 -05:00
Richard Feldman
6d0832591b
Merge pull request #963 from rtfeldman/popara-patch-1
Accessability idea
2021-02-05 07:37:32 -05:00
Richard Feldman
5d9ac70d88
Merge pull request #960 from rtfeldman/editor_ideas
More editor ideas
2021-02-05 07:26:18 -05:00
Anton-4
df909deb27 Added editor idea from @Chadtech 2021-02-05 10:43:40 +01:00
rvcas
8a1e38ab5b match IntVal and FloatVal cases 2021-02-04 20:44:18 -05:00
Zeljko Nesic
22a22fb2bd
Accessability idea
Some thoughts about what is ambitious goal for accessibility-wise.
2021-02-04 01:32:38 +00:00
Folkert de Vries
438a2e6f83
Merge branch 'trunk' into parser-with-progress 2021-02-04 00:40:20 +01:00
Folkert
d211ca7e61 WIP 2021-02-03 20:21:12 +01:00
Anton-4
a124e31893 Added comments to ignored unicode chars 2021-02-03 13:35:57 +01:00
Anton-4
e39e33b11b more editor ideas 2021-02-03 13:25:16 +01:00
rvcas
ceefd535de feat(editor): render Expr2::Float 2021-02-02 16:53:52 -05:00
Folkert
56f6770804 WIP 2021-02-02 01:56:50 +01:00
Anton-4
2c7b7590aa expanded README, ignored copy_paste test 2021-01-30 19:30:14 +01:00
Anton-4
51bf8a42b5 trying fork of clipboard crate 2021-01-30 16:23:54 +01:00
Anton-4
3ed7aeec92 clipboard dependency fix 2021-01-30 15:06:29 +01:00
Anton-4
fd5132f13e rustfmt 2021-01-30 12:33:37 +01:00
Anton-4
c9dca76222 Merge branch 'trunk' of /rtfeldman/roc into copy_paste 2021-01-30 12:30:18 +01:00
Anton-4
f3f57a13ef finished tests, some restructuring, bugfixes 2021-01-30 12:09:14 +01:00
Anton-4
a5ac077ec9 restructuring for app<->editor, copy tests 2021-01-29 19:52:38 +01:00
Anton-4
fa2480ed4f restructuring with dedicated app_model update file 2021-01-29 16:12:56 +01:00
Anton-4
7613730ada copy and paste work 2021-01-29 15:04:59 +01:00
Anton-4
8a5162cdb4 copy+paste error handling progress 2021-01-27 19:53:38 +01:00
rvcas
6abeea00d3 feat(editor): pass ast by reference to render 2021-01-27 08:19:22 -05:00
Lucas
60007f2a51
Merge branch 'trunk' into render_ast_nodes 2021-01-27 08:18:55 -05:00
Anton-4
93e9353e5e Merge branch 'trunk' of /rtfeldman/roc into copy_paste 2021-01-27 11:01:43 +01:00
Anton-4
8925d3b9b8 fmt 2021-01-26 19:40:56 +01:00
Anton-4
ecab069c69 allow benchmark files dir to be specified with env var 2021-01-26 18:27:07 +01:00
Anton-4
cfb213c853 expose modules automatically for benchmarks, actually run benchmarks 2021-01-25 19:16:03 +01:00
Lucas
3165115cfe
Merge branch 'trunk' into render_ast_nodes 2021-01-25 11:14:19 -05:00
Anton-4
569afe329b removed println 2021-01-25 15:35:16 +01:00
Anton-4
b0d506242e text_buffer get line fix 2021-01-25 15:31:50 +01:00
rvcas
41f3a222ea feat(editor): render a SmallInt 2021-01-24 11:38:04 -05:00
Anton-4
8c1e4b63e2 Progress on implementing copy and paste 2021-01-23 19:28:23 +01:00
rvcas
c83f01db5a fix(str_to_expr2): borrow error on loc_expr 2021-01-22 20:29:08 -05:00
rvcas
ef149bedd0 feat: construct pool, env, and scope 2021-01-21 22:12:26 -05:00
Anton-4
f588590b42 disabled changes only necessary for benchmarks 2021-01-20 11:47:32 +01:00
rvcas
141c881cf9 feat: start to render some AST nodes 2021-01-19 21:14:00 -05:00
Anton-4
8e94ae41fc added read file and text buffer benchmarks 2021-01-19 17:41:23 +01:00
Anton-4
cc63042023 rustfmt 2021-01-18 11:44:40 +01:00
Anton-4
55cd6a4976 added insert_char benchmark 2021-01-16 19:33:23 +01:00
Anton-4
93c032d530 fmt + clippy 2021-01-15 19:00:56 +01:00
Anton-4
30b87a1c93 syntax highlight rendering, highlighting demo 2021-01-15 18:13:05 +01:00
Anton-4
1f90c6f47b Used bump allocation for TextBuffer::all_lines 2021-01-13 17:02:41 +01:00
Anton-4
76e2edff97 show instructions if no file was opened, fmt 2021-01-13 16:48:45 +01:00
Anton-4
d6dc6dbf8b handle_new_char tests, bug fixes for #869 2021-01-13 16:14:52 +01:00
Anton-4
29e9cf3a6f integrated text rope, added open file, refactoring 2021-01-12 20:10:20 +01:00
Anton-4
bdf48d478f progress integrating text rope 2021-01-11 19:46:15 +01:00
Anton-4
83b3dea08e simpler, more mem efficient and probably faster selection 2021-01-09 13:08:36 +01:00
Anton-4
38a6b19b0f progress on selection memory optimization 2021-01-08 20:10:01 +01:00
Anton-4
83b4bb9be8 merge fixes 2021-01-08 16:26:04 +01:00
Anton-4
659a77da9f pull in trunk, moved all pipelines to single file, renamed model to ed_model 2021-01-08 16:17:59 +01:00
Anton-4
f71d1a5c42 refactoring for improved structure 2021-01-08 16:12:18 +01:00
Anton-4
bca451af3c caret is now drawn, centralized colors more in one place 2021-01-06 19:16:00 +01:00
Anton-4
e19969ac69 clippy, fmt, comments 2021-01-06 10:38:31 +01:00
Anton-4
4e99f7ca6a selection shrink tests, selection shrink fixes 2021-01-05 20:08:19 +01:00
Anton-4
bed9166fcb selection extension test, selection extension fixes 2021-01-05 17:56:28 +01:00
Anton-4
85553987ec end selection tests 2021-01-04 20:06:32 +01:00
Anton-4
45296ba2e5 start selection tests 2021-01-04 16:45:55 +01:00
Anton-4
df53e78c53 tests for all caret movement, moving caret up now goes to beginning of line for first line 2021-01-04 14:42:24 +01:00
Anton-4
1acbe42962 implemented selection test DSL, added caret tests for move right 2021-01-02 19:33:26 +01:00
Anton-4
6e245b20c9 clippy fix 2021-01-01 15:49:19 +01:00
Anton-4
df5661541c editor folder reorganization 2021-01-01 15:02:31 +01:00
Richard Feldman
c420893fe2
Merge pull request #853 from rtfeldman/bye-cond
remove Cond from the mono IR
2021-01-01 00:11:32 -05:00
Folkert
754521c4c3 all the clippy fixes 2021-01-01 00:40:41 +01:00
Anton-4
657081fc3c rustfmt 2020-12-30 17:27:50 +01:00
Anton-4
fb66312a69 renamed txt_cursor to caret 2020-12-30 17:21:21 +01:00
Anton-4
7f69e57d30 Merge branch 'trunk' of ssh://github.com/rtfeldman/roc into text_highlighting 2020-12-30 13:40:42 +01:00
Anton-4
0a46c1d48f improvements based on PR feedback 2020-12-30 13:40:36 +01:00
Richard Feldman
6a0c2a4867
Merge pull request #840 from rtfeldman/editor-ast-module
Editor ast module
2020-12-29 23:26:26 -05:00
Anton-4
862a85698c merge, fmt, clippy 2020-12-29 20:42:58 +01:00
Anton-4
bae3db0616 rustfmt, renamed caret to txt_cursor 2020-12-29 20:30:40 +01:00
Anton-4
2b0a320734 implemented selection with up and down arrows, closes #776 2020-12-29 20:18:59 +01:00
Anton-4
f67c4324d4 selection bug fixes #776 2020-12-29 19:14:16 +01:00
Anton-4
cf7c816123 closes #836, closes #832, bug fixes for #776 2020-12-29 11:59:39 +01:00
Folkert
a5d58c4a7f introduce aliases into scope 2020-12-28 22:18:16 +01:00
Sébastien Besnier
4e9387cbda fix compile issues 2020-12-28 21:17:27 +01:00
Anton-4
12990d293c added limited shift+arrow functionality (with bugs) #776 2020-12-28 19:47:50 +01:00
Anton-4
da6fe428a3 went from single String 'text_state' to Vec<String> 'lines' 2020-12-28 16:56:19 +01:00
Anton-4
103cccd61b put more things in the model 2020-12-28 15:41:48 +01:00
Anton-4
0556e61ca2 Added position struct for text selection 2020-12-28 11:40:29 +01:00
Folkert
a6ee72dbac basic version of editor/module 2020-12-27 16:22:34 +01:00
Anton-4
8219293e65 added InvalidSelection error, moved all selection stuff to separate file 2020-12-26 20:22:40 +01:00
Anton-4
8c55f4b172 use snafu for errors, pretty backtraces, added backtrace editor idea 2020-12-26 19:24:09 +01:00
Anton-4
81412786db working multiline selection, added unit test recording to editor-ideas 2020-12-26 11:15:01 +01:00
Anton-4
7a70c95bb4 rewrite to support multi line selection(unfinished) 2020-12-25 19:46:31 +01:00
Folkert
52d6ab8b7c WIP 2020-12-23 23:59:54 +01:00
Folkert
e1f3a0f8b6 topological sort logic 2020-12-23 00:29:58 +01:00
Folkert
e7e58446a9 candefs 2020-12-22 23:31:25 +01:00
Folkert
35137d2542 add (Typed) Body 2020-12-22 23:05:23 +01:00
Anton-4
fc310cf974 removed hacky caret, fixed highlight rectsize, added voice input idea 2020-12-22 15:57:50 +01:00
Anton-4
c82119e6d8 rect per glyph, buffer size bugfix 2020-12-22 13:39:14 +01:00
Folkert
0acf41dd19 silence clippy 2020-12-21 20:54:26 +01:00
Folkert
fdbff0e2c4 implement variables 2020-12-21 20:53:27 +01:00
Folkert
06053c68a9 implement variables 2020-12-21 20:53:11 +01:00
Folkert
6f8fcd4d42 initial alias 2020-12-21 20:39:34 +01:00
Anton-4
d89bf1c0af highlight all text in editor 2020-12-21 19:49:15 +01:00
Folkert
7e494ad428 shallow clone 2020-12-21 15:34:11 +01:00
Folkert
4c15267be3 annotation without body 2020-12-21 15:18:12 +01:00
Folkert
8a0ba55339 pending def 2020-12-21 14:11:12 +01:00
Folkert
f5337d5bbf add ven_graph to the editor 2020-12-21 13:55:40 +01:00
Folkert
9f3f7699e2 add symbol/variable helper 2020-12-21 13:53:21 +01:00
Folkert
39ffa7d11b add def.rs 2020-12-21 13:50:16 +01:00
Folkert
4c9c9a3173 edit ast for patterns 2020-12-19 00:12:46 +01:00
Folkert
b1e31730d9 tag apply 2020-12-18 01:08:27 +01:00
Folkert
7bedc3ff6e ident and tags 2020-12-18 00:53:31 +01:00
Folkert
f40f0c50b9 clippy 2020-12-17 23:15:33 +01:00
Folkert
90522c01f7 all of annotation (modulo some todos) 2020-12-17 22:25:17 +01:00
Folkert
eb82b08a85 type2 record 2020-12-17 21:28:03 +01:00
Folkert
757449057e skeleton of type2 conversion 2020-12-17 21:10:42 +01:00
Folkert
2f0fe94182 snapshot 2020-12-17 20:22:57 +01:00
Folkert
5b045f8a86 first stab at editor patterns 2020-12-16 13:21:45 +01:00
Folkert
0096078cd0 changes after review 2020-12-16 11:23:04 +01:00
Richard Feldman
90bf0b3ace
Merge pull request #805 from rtfeldman/parse-to-edit-ast
Parse to edit ast
2020-12-15 22:44:56 -05:00
Folkert
421e652edb Merge remote-tracking branch 'origin/trunk' into parse-to-edit-ast 2020-12-16 00:29:27 +01:00
Folkert
82bf9b3f93 more parse to Expr2 conversion 2020-12-16 00:29:12 +01:00
Folkert
aec95a61ae extend Pool and PoolVec 2020-12-16 00:28:19 +01:00
Folkert
18f3142254 return both Expr2 and ExprId (from separate functions) 2020-12-15 19:53:16 +01:00
Folkert
96a4432327 clippy on PoolStr 2020-12-15 17:01:45 +01:00
Folkert
8b289f3398 simple literals in editor ast 2020-12-15 17:00:08 +01:00
Anton-4
1f3850126e include shaders in repo 2020-12-15 15:34:39 +01:00
Anton-4
e1a0bc1563 Merge branch 'trunk' of rtfeldman/roc into ci_speedup 2020-12-15 15:16:38 +01:00
Anton-4
8bf426b6b9 don't recompile shaders unnecessarily 2020-12-15 15:00:24 +01:00
Richard Feldman
44e91bbfda
Merge pull request #801 from rtfeldman/editor_refactor
editor: refactoring orthographic projection
2020-12-14 22:19:00 -05:00
Folkert
a174137351 add PoolStr::new() 2020-12-14 23:27:24 +01:00
Anton-4
b085469602 Replaced large_enum_variant explanation with link to issue #800 2020-12-14 16:09:16 +01:00
Anton-4
0feb8a9226 editor refactoring orthographic projection 2020-12-14 15:35:10 +01:00
Anton-4
bf34fc4fe0 Merge branch 'trunk' into editor_pixel_coords 2020-12-12 19:00:34 +01:00
Anton-4
fc4d510c40 more comments and minor cleanup 2020-12-12 18:11:57 +01:00
Anton-4
ea3f15f950 forgot to submit cmd_queue 2020-12-12 17:55:11 +01:00
Anton-4
8ca09dae73 fixed errors and rect positioning 2020-12-12 13:29:43 +01:00
Anton-4
06a2dcb5b7 orthographic projection to support pixel coordinates (with errors) 2020-12-11 19:38:44 +01:00
Richard Feldman
d420beb56f Implement Pool::reserve 2020-12-09 20:34:41 -05:00
Richard Feldman
53534f5b09 Drop obsolete comment 2020-12-09 19:05:19 -05:00
Richard Feldman
7cad3eb68c Drop obsolete AccessVars 2020-12-09 08:09:45 -05:00
Richard Feldman
ed4e223b03 Drop obsolete RecordVars 2020-12-09 08:09:20 -05:00
Richard Feldman
b48a6dee28 Drop obsolete UpdateVars 2020-12-09 08:08:46 -05:00
Richard Feldman
22369e523c Use PoolStr for tag and field names 2020-12-09 08:07:35 -05:00
Richard Feldman
fdd3fd14e9 cargo fmt 2020-12-09 08:06:17 -05:00
Richard Feldman
c0a74ab10e Drop oboslete comment 2020-12-09 08:05:13 -05:00
Richard Feldman
0d0a9e677c Remove obsolete expr_and_args 2020-12-09 08:05:13 -05:00
Richard Feldman
acb2bc7092
fix field name 2020-12-09 07:53:42 -05:00
Richard Feldman
61300f782d Use cmp, per clippy 2020-12-08 23:19:05 -05:00
Richard Feldman
68cf9602e1 cargo fmt 2020-12-08 23:15:57 -05:00
Richard Feldman
91c3cf25b6 Revise how numbers are stored in editor IR 2020-12-08 23:15:21 -05:00
Richard Feldman
48dd79c5f4 Revert "Add a mmap benchmark"
This reverts commit 89f213d58f92f16227b3b0542e5a99e10874e91a.
2020-12-08 23:03:42 -05:00
Richard Feldman
a46a8d076b Add a mmap benchmark 2020-12-08 23:03:42 -05:00
Richard Feldman
bdf08ea5a6 Remove unused argument from with_capacity 2020-12-08 23:03:42 -05:00
Richard Feldman
c1356f0b68 Fix Pool implementation 2020-12-08 23:03:42 -05:00