This website requires JavaScript.
Explore
Help
Register
Sign In
humza
/
sml-projects
Watch
1
Star
0
Fork
0
You've already forked sml-projects
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
bf55373f6dae94e8ae6b9055d44e4eda7b98c4f2
sml-projects
/
fcore
/
normal-mode
History
Humza Shahid
bf55373f6d
fix 'MakeNormalDelete.deleteLineBack' test, which failed because we were using the wrong way to check if cursor is currently at the start of the line. We checked '(endOfLine = cursorIdx) which works in most cases to verify that the current position is a newline, but fails when the cursor is at the last non-newline character of the line. This is fixed by being more precise and calling 'Cursor.isCursorAtStartOfLine' to check directly if the cursor is currently at the end of the line.
2025-09-25 10:49:20 +01:00
..
make-normal-delete.sml
fix 'MakeNormalDelete.deleteLineBack' test, which failed because we were using the wrong way to check if cursor is currently at the start of the line. We checked '(endOfLine = cursorIdx) which works in most cases to verify that the current position is a newline, but fails when the cursor is at the last non-newline character of the line. This is fixed by being more precise and calling 'Cursor.isCursorAtStartOfLine' to check directly if the cursor is currently at the end of the line.
2025-09-25 10:49:20 +01:00
normal-delete.sml
functorise NormalDelete structure so we can use share the same deletion logic and code for NormalDelete and NormalYankDelete (the latter which is not yet implemented)
2025-09-06 03:43:45 +01:00
normal-finish.sml
pass 'maxLength' value to TextScroll function so that we can prevent scrolling past the bottom of the file (unless we want to od so by centtering the screen)
2025-09-19 23:17:28 +01:00
normal-mode-with.sml
begin reimplementing 'MakeNormalDelete.deleteLine' function
2025-09-24 17:58:37 +01:00
normal-mode.sml
rename existing 'MakeNormalDelete.deleteLine' function to 'MakeNormalDelete.deleteLineDown', make 'dj' and 'ydj' commands use the renamed function, and add a new 'MakeNormalDelete.deleteLine' function (which has no implementation yet). We do this because we want to distinguish between 'dd' and 'dj' commands, allowing 'dd' to delete to the end of the file despite any count, while stoppinhg 'dj' from deleting the file when on the last line.
2025-09-25 04:56:25 +01:00
normal-move.sml
pass all tests for 'j' motion
2025-09-23 15:30:28 +01:00
normal-search-finish.sml
pass 'maxLength' value to TextScroll function so that we can prevent scrolling past the bottom of the file (unless we want to od so by centtering the screen)
2025-09-19 23:17:28 +01:00
normal-search-mode-with.sml
a few bug fixes to NORMAL_SEARCH_MODE: the main one is that we were passing the general searchString to the resize function before, and we were drawing the wrong string because of that; another bug fix is that, on resizing, we have to update the mode to contain the recalculated searchScrollColumn
2025-09-14 10:28:42 +01:00
normal-search-mode.sml
a few bug fixes to NORMAL_SEARCH_MODE: the main one is that we were passing the general searchString to the resize function before, and we were drawing the wrong string because of that; another bug fix is that, on resizing, we have to update the mode to contain the recalculated searchScrollColumn
2025-09-14 10:28:42 +01:00
normal-yank-delete.sml
add yank-delete motions like 'ydw' and so on
2025-09-06 03:53:47 +01:00
normal-yank.sml
add a new test validating that the cursor does not move when cursor is on an empty line
2025-09-07 21:09:20 +01:00