Commit Graph

23 Commits

Author SHA1 Message Date
Jonatan Heyman
8e88f33e4a Move note-block.js into subdirectory 2022-12-30 15:00:49 +01:00
Jonatan Heyman
1695cc9d11 Create HeynoteEditor class and restructure init code 2022-12-30 12:55:41 +01:00
Jonatan Heyman
9aff278c80 Set note background layers' width to 100% in CSS instead of measuring the editor width in a requestMeasure() call 2022-12-30 12:52:32 +01:00
Jonatan Heyman
1f4c63cff1 Add ability to scroll past the end of the document, and increase the height of the last note's background layer 2022-12-30 11:20:07 +01:00
Jonatan Heyman
bbab47a8ac Indent with 4 spaces 2022-12-30 11:06:29 +01:00
Jonatan Heyman
570fdba08b Move cursor to end of document and scroll it into view 2022-12-30 11:06:09 +01:00
Jonatan Heyman
5a4a092521 Make gutter semi transparent.
Darker colors.
2022-12-30 03:03:20 +01:00
Jonatan Heyman
e21ec44556 Turn on line wrapping 2022-12-30 03:02:43 +01:00
Jonatan Heyman
b1e46e2b96 Automatically focus editor on page load 2022-12-30 03:02:31 +01:00
Jonatan Heyman
662a234377 Minor formatting 2022-12-30 03:02:04 +01:00
Jonatan Heyman
1b3665b7b6 Track the size of the first note's delimiter, and use that (instead of hard coded value) to decide how big range we need to protect in the beginning 2022-12-29 22:24:07 +01:00
Jonatan Heyman
c7282b3131 Fix issue with the first line of the first block.
Individual line numbering for each block.
2022-12-29 21:03:53 +01:00
Jonatan Heyman
f4642de14c Fix rendering of note backgrounds when there are multiple view.visibleRanges 2022-12-29 21:02:26 +01:00
Jonatan Heyman
693390cac4 Only iterate through the syntax tree in one place to build up a state and store in a StateField, which is then used by the other extensions 2022-12-29 19:38:01 +01:00
Jonatan Heyman
551089d613 Set correct width for block backgrounds 2022-12-29 18:44:33 +01:00
Jonatan Heyman
f1038ce696 Change note separator to include a new line both at the start and end. This fixes a bug with hitting End/Home keys putting the cursor within the atomic block around the separator. 2022-12-29 14:16:31 +01:00
Jonatan Heyman
fc4c7c8145 Use correct width for block decorations 2022-12-28 16:03:57 +01:00
Jonatan Heyman
c0f8bffc84 Prevent selection before (and within) first note token 2022-12-28 15:28:40 +01:00
Jonatan Heyman
b1c6ebfbf0 Add .gitignore 2022-12-28 15:27:10 +01:00
Jonatan Heyman
3d52a0ff63 Update fixture 2022-12-28 15:27:03 +01:00
Jonatan Heyman
79f4a7f0d7 Rename parser files 2022-12-28 15:26:57 +01:00
Jonatan Heyman
53d340060d Remove debug code 2022-12-28 13:52:18 +01:00
Jonatan Heyman
254ca836ef Initial import 2022-12-28 12:49:26 +01:00