Commit Graph

38 Commits

Author SHA1 Message Date
Jonatan Heyman
6d7abb1503 Decrease font size 2023-01-12 01:01:25 +01:00
Jonatan Heyman
77146bda6c Change block background colors for light theme 2023-01-12 01:01:17 +01:00
Jonatan Heyman
7d87277f65 Slightly less padding in gutter 2023-01-12 00:59:51 +01:00
Jonatan Heyman
c64deb786e Add some spacing between blocks 2023-01-12 00:57:58 +01:00
Jonatan Heyman
15c6cc8523 Include light/dark theme before base so that it takes precedence 2023-01-12 00:57:02 +01:00
Jonatan Heyman
af86743f19 Language auto detection 2023-01-03 16:56:07 +01:00
Jonatan Heyman
95328ba739 Add getActiveNoteBlock function 2023-01-02 11:49:45 +01:00
Jonatan Heyman
f53a579614 Change selection background color for light theme 2022-12-31 14:49:01 +01:00
Jonatan Heyman
866c2fd30f Disable (over)scroll "bouncing" 2022-12-31 12:20:21 +01:00
Jonatan Heyman
8c059dc4be Add a light theme.
Move common stuff into a base theme.
2022-12-31 02:03:13 +01:00
Jonatan Heyman
74bb800a4a Tweak colors of dark theme 2022-12-30 17:04:53 +01:00
Jonatan Heyman
51bb893836 Move keymap into its own JS module 2022-12-30 16:18:15 +01:00
Jonatan Heyman
c8e4861ffe Fix bug causing note delimiter to be copied if "moveLineUp" command was executed with the first line selected 2022-12-30 16:11:22 +01:00
Jonatan Heyman
0f072b8699 Add select all command that first selects the current note, and then the whole document (if executed with a whole note selected) 2022-12-30 15:31:12 +01:00
Jonatan Heyman
4307bf6d0f Set scroll margin 2022-12-30 15:04:48 +01:00
Jonatan Heyman
937c5af191 Add command for inserting a new note 2022-12-30 15:04:33 +01:00
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
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