|
|
d76b753fa7
|
add tests for 'W' move motion
|
2024-11-24 12:19:43 +00:00 |
|
|
|
04d4e013e2
|
ensure that searchList is deleted from when calling delete functions other than 'helpRemoveChr'
|
2024-11-23 06:10:40 +00:00 |
|
|
|
0bfe549e04
|
add just one more 'word' test, extract steps to delete from search list into a reusable function (don't need to memorise the steps), and fix bug in cursor.sml where we were looking at tl without calculating correct strIdx
|
2024-11-23 05:16:37 +00:00 |
|
|
|
4a09a5716d
|
add more 'w'/'word' motion tests
|
2024-11-19 22:41:07 +00:00 |
|
|
|
c48eeb07b3
|
finish testing motions for 'k', meaning tests for hjkl motions are complete (can test other motions like 'w', '0', 'e', etc. next, and then test delete motions after that)
|
2024-11-19 13:02:13 +00:00 |
|
|
|
26850da6d3
|
done testing 'j' motion; next is to test 'k' motion
|
2024-11-19 06:43:00 +00:00 |
|
|
|
f6d4b10d44
|
break test suite in test.sml into more managable chunks (one test per motion)
|
2024-11-19 06:35:47 +00:00 |
|
|
|
64eec10049
|
add tests for 'j' motion
|
2024-11-19 06:27:38 +00:00 |
|
|
|
e2dfe25d36
|
a bit of refactoring in test.sml
|
2024-11-19 05:51:46 +00:00 |
|
|
|
96080d0964
|
a bit of repository management (add Makefile to make it less verbose to run tests, and add .gitignore to avoid committing built binaries)
|
2024-11-19 04:32:37 +00:00 |
|
|
|
afcd3ee70b
|
add additional tests for vi's 'h' and 'l' motions
|
2024-11-19 04:21:54 +00:00 |
|
|
|
09165b48d9
|
format test file
|
2024-11-19 03:53:22 +00:00 |
|
|
|
d92d3b3a26
|
add a couple of tests
|
2024-11-19 03:53:05 +00:00 |
|
|
|
55c371370f
|
add a couple of tests
|
2024-11-19 03:48:30 +00:00 |
|
|
|
ee73a1c858
|
add Railroad framework as a git submodule properly
|
2024-11-18 13:50:02 +00:00 |
|
|
|
b5e1c3757f
|
add unit tests, etc.
|
2024-11-18 13:47:00 +00:00 |
|
|
|
ef395feea8
|
add similar fix described in previous commit to 'moveLeftAndDelete' function
|
2024-11-18 11:42:23 +00:00 |
|
|
|
25046dcb88
|
bug fix to search-list.sml's 'moveRightAndDelete' function by possibly deleting if start > finish, rather than terminating
|
2024-11-18 11:29:54 +00:00 |
|
|
|
e90df37b43
|
in search-list.sml: fix 'delRightFromHere' and 'delLeftFromHere' functions which joined newHd with left/right, rather than the tl, and therefore added new numbers to the list, which is incorrect behaviour. Fixed this by using joining with 'tl' rather than left/right. In build-search-list.sml: make fromRange function return tuple instead of an instance of app. Finally, in app-update.sml: progress towards refactoring 'helpRemoveChr' function to map and delete from searchList as desired.
|
2024-11-17 09:25:01 +00:00 |
|
|
|
f7cc2d4740
|
change 'targetLength' of SearchList.t from 1024 to 32
|
2024-11-16 19:59:46 +00:00 |
|
|
|
5e9f118b15
|
fixed two issues related to insertion in search-list.sml. First issue: in top level 'insert' function, we called 'insLeft' if new value is greater than first value on right, and we called 'insRight' in the opposite case; this is backwards. Second issue: in base cases of 'insLeft' and 'insRight', when we have reached the end of one side of the list, we used to return the same list we got back instead of adding the new value to this end of the list; this is now fixed.
|
2024-11-16 19:51:29 +00:00 |
|
|
|
09d9945201
|
add function to build search list from specific range
|
2024-11-16 12:27:14 +00:00 |
|
|
|
f2b4f256ec
|
bugfix: in search-list.sml's 'delRightFromHere' function, make sure we preserve the last part of the vector when finish < last
|
2024-11-16 09:05:47 +00:00 |
|
|
|
436b3e0d92
|
simplify and rewrite function 'del' in search-list.sml
|
2024-11-16 08:33:26 +00:00 |
|
|
|
0ba56bf6d3
|
amend lambdas in search-list.sml's 'moveRightAndMap' function, where wrong variable was used in lambda, and rename 'num' variable in that function to 'from' to make purpose and intent clearer
|
2024-11-16 04:55:02 +00:00 |
|
|
|
d6c59e140e
|
replace text-builder.sml's 'buildCursor' function with a new 'Rect.lerp' function (which is in fcore/rect.sml)
|
2024-11-15 21:14:43 +00:00 |
|
|
|
2a2f64f00c
|
add bgVertexBuffer and bgProgram to imperative shell, so we can draw bg and cursor without overlap, and without z-index
|
2024-11-15 10:26:22 +00:00 |
|
|
|
d5eb19f8d9
|
progress drawing spaces within search string, and drawing behind background of search string
|
2024-11-15 09:50:35 +00:00 |
|
|
|
025f9d2bf4
|
fix exception in bin-search.sml, by making sure that forwardLinearSearch always starts at 0 or more
|
2024-11-15 09:24:48 +00:00 |
|
|
|
c0c1a7c885
|
refactor app-update.sml to pass additional parameters to TextBuilder.build
|
2024-11-15 08:24:48 +00:00 |
|
|
|
35de4582e9
|
refactor TextBuilder and inner functions to handle highlighting searched characters
|
2024-11-15 08:13:32 +00:00 |
|
|
|
91688441cf
|
refactor fcore/text-builder.sml to take non-changing parameters as records, for brevity
|
2024-11-15 06:43:14 +00:00 |
|
|
|
df9c0e3b51
|
break out of infinite loop in build-search-list.sml's 'helpBuild' function, by passing 'matchedIdx + 1' to tail call, and return correct matchedIdx value from 'helpNextMatch' function by adding 1 rather than subtracting
|
2024-11-15 06:04:11 +00:00 |
|
|
|
13d6d51fe9
|
when buildinng search list, also save searchString into app
|
2024-11-15 05:40:57 +00:00 |
|
|
|
cac0d02fab
|
initial implementation of building search list
|
2024-11-15 05:37:53 +00:00 |
|
|
|
f279dc0937
|
make 'de', 'dE', 'dj' and 'dk' commands work similarly to vi (details are in comments)
|
2024-11-14 08:57:31 +00:00 |
|
|
|
cae9f19787
|
add search list to app type
|
2024-11-14 08:12:27 +00:00 |
|
|
|
91663a6cae
|
done implementing search list
|
2024-11-13 12:54:47 +00:00 |
|
|
|
11df1a6bcd
|
done implementing delete function in SearchList
|
2024-11-13 03:49:12 +00:00 |
|
|
|
fb236aa7a1
|
add another helper function for deleting in SearchList. (Only one more helper function to go now.)
|
2024-11-13 03:15:20 +00:00 |
|
|
|
204d171893
|
implement a couple of more helper functions for deletion
|
2024-11-12 20:46:07 +00:00 |
|
|
|
b24dbd0ede
|
implement a helper function for delete
|
2024-11-12 13:07:28 +00:00 |
|
|
|
9b45f43948
|
start implementing delete in search-list.sml (with top-down programming, calling functions that do not yet exist)
|
2024-11-12 09:14:39 +00:00 |
|
|
|
3b81d087f0
|
implement function to go specific number in search-list.sml
|
2024-11-12 07:57:36 +00:00 |
|
|
|
1bae34a067
|
done with insert into search list
|
2024-11-12 03:15:04 +00:00 |
|
|
|
8bf0b64ef3
|
implement insRight function in search-list.sml
|
2024-11-12 03:05:14 +00:00 |
|
|
|
287dc5548d
|
progress implementing searchList data structure
|
2024-11-11 13:23:37 +00:00 |
|
|
|
fb8090338f
|
remove unnecessary import statement
|
2024-11-11 05:31:43 +00:00 |
|
|
|
54090ccf64
|
add yank functionality in imperative shell
|
2024-11-11 05:27:20 +00:00 |
|
|
|
ae68627a8f
|
pull minor line_gap.sml update (not user facing or significant)
|
2024-11-10 22:03:12 +00:00 |
|