Commit graph

99 commits

Author SHA1 Message Date
75791c4e71 Remove old console.log 2025-02-12 13:09:03 +01:00
6a3d701e82 Make entire ui store state public 2025-02-12 12:58:35 +01:00
aaca49f1d2 Add delete button and group buttons 2025-02-12 03:00:50 +01:00
6e96ae7fd4 Implement controls for new UI state 2025-02-12 01:06:50 +01:00
2f9b1925dc Refactor ui state
Now with more mode!
2025-02-12 00:08:56 +01:00
4710f19b1e Destructure all remaining defineProps
This makes it nicer to define default values.
2025-02-11 21:19:39 +01:00
994c3bb654 Disallow === 2025-02-11 20:10:57 +01:00
7d6f610be0 Add temporary button to go back to previous note 2025-02-11 20:10:57 +01:00
5bc62d12f4 Add button to navigate to a note 2025-02-11 19:57:27 +01:00
369839912f Make CNoteButton disable-able 2025-02-11 19:57:27 +01:00
4b6732ccd0 Hide mouse buttons using visibility: hidden 2025-02-11 19:28:39 +01:00
7a58ac37f7 Fix rendering bug by not enlarging buttons
Previously, the buttons left weird smudges when moving the mouse while a
button was enlarged. It appears to be a rendering engine bug (webkit
gtk), since the same does not happen in Firefox/Chromium. This fix
avoids enlarging the buttons so no residue is left behind.
2025-02-11 19:10:47 +01:00
47340858b0 Update dependencies 2025-02-11 01:25:10 +01:00
9f3789e032 Enable and fix custom eslint rules 2025-02-10 16:23:14 +01:00
ca929a37d1 Disable warning for @theme 2025-02-10 15:44:50 +01:00
7b10670a88 Fix eslint warnings 2025-02-10 15:42:21 +01:00
fba72e723f Set up eslint with type information 2025-02-10 15:42:14 +01:00
4aeb9eb8bd Fix eslint warnings 2025-02-10 15:28:30 +01:00
92f5e37a4c Set up eslint 2025-02-10 14:49:52 +01:00
447bcf39a7 Fix pinned button border 2025-02-10 02:10:20 +01:00
b29b3c1e4e Write custom Path and Segment classes
Also fixes how pinning works in some edge cases.
2025-02-09 19:41:35 +01:00
0b485e6cfe Pin notes 2025-02-09 18:49:42 +01:00
de6080c3ad Show other parents of a note 2025-02-09 18:21:48 +01:00
3628fa260b Encapsulate note store more 2025-02-08 18:27:13 +01:00
c2b4592bc9 Create test notes on startup 2025-02-08 01:09:06 +01:00
9e41b5920a Fix focused note sometimes becoming invisible 2025-02-08 01:09:06 +01:00
e3e35f54b3 Ensure only one editor is open at a time
Also binds the open editor to the focused note more closely: The note
associated with the editor must be focused, and focusing a different
note closes the editor again.
2025-02-07 23:19:39 +01:00
fbb808c69f Polish a turd 2025-02-07 23:02:33 +01:00
e35124f5ac Make focus and folding robust against reordering
Now paths use the same keys as vue's key property instead of being
purely index-based.
2025-02-07 23:00:44 +01:00
363f88edcf Edit existing notes 2025-02-07 22:51:21 +01:00
32193376bc Show mouse controls on hover instead of focus
Saves a click in most scenarios.
2025-02-07 22:23:45 +01:00
9ce2169931 Fix editor key events bubbling up 2025-02-07 22:16:06 +01:00
6c1ee3a3fc Make note and editor structure similar
In preparation for using the editor to edit the note
2025-02-07 22:04:07 +01:00
b70903ef6f Set printWidth to 100 for code files 2025-02-07 21:53:19 +01:00
2531e7d640 Display multiline note text correctly 2025-02-07 21:44:41 +01:00
1295db8283 Refactor child note editor
I plan on using the same editor component when editing a note itself, in
which case the plus symbol and padding is unnecessary. The editor is
meant to be used in-place of note text.
2025-02-07 21:43:15 +01:00
5c6c607ea4 Move focus upwards when pressing Escape 2025-02-07 21:09:08 +01:00
903d137cda Render empty notes nicer 2025-02-07 21:07:47 +01:00
aab2a502ab Leave some space so scroll bar does not overlap buttons 2025-02-07 14:49:53 +01:00
02aed54ca3 Add basic key bindings for note creator 2025-02-07 14:47:25 +01:00
56ab7c2613 Focus on note once created 2025-02-07 14:47:06 +01:00
3d2941791e Save created notes to store 2025-02-07 14:21:33 +01:00
5fa8a0466e Resize note creator input to fit contents 2025-02-07 14:06:34 +01:00
cda2ddee32 Grey out fold symbol if note is stuck open 2025-02-07 02:22:43 +01:00
dd19497426 Store paths of unfolded nodes in ui state 2025-02-07 02:22:13 +01:00
e62f277ee4 Fix navbar dropdown not closing when clicking outside 2025-02-07 01:28:00 +01:00
ae1bcf4746 Fix navbar dropdown disappearing behind notes 2025-02-06 02:59:34 +01:00
8453f6ee53 Add nonfunctional text box to create new notes 2025-02-06 02:55:33 +01:00
6c785ce566 Add title text to navbar buttons 2025-02-05 22:50:22 +01:00
21cd015ada Focus on and fold notes by clicking
Also tweaks the look a bit, of course.
2025-02-05 22:44:15 +01:00