Commit Graph

362 Commits

Author SHA1 Message Date
27ca21094d Prevent default behavior for save shortcut in editor 2026-02-01 04:10:26 +01:00
9671f63828 Refactor editor setup and add tab keymap functionality 2026-02-01 04:09:24 +01:00
2f459a0df4 Hide line numbers and measure in print mode 2026-02-01 04:04:27 +01:00
fd734a7c64 Import CodeMirror styles in App.tsx 2026-02-01 04:03:20 +01:00
7518f032a2 Remove unused CSS for line numbers 2026-02-01 04:02:04 +01:00
3456700ccd Add effect to request editor measure on state changes 2026-02-01 04:01:56 +01:00
f0b7a49611 Change font size in index.css to use CSS variable 2026-02-01 04:01:56 +01:00
9f962afcb5 Update package.json with new dependencies 2026-02-01 04:01:56 +01:00
0413d87a55 Remove src/lib/tln.ts file 2026-02-01 04:01:04 +01:00
aeafaf1d96 Update editor styles for CodeMirror integration 2026-02-01 04:00:57 +01:00
7921384ddf Replace textarea with div for CodeMirror in App.tsx 2026-02-01 04:00:33 +01:00
b843b72670 Update App.tsx to use editorView and compartments for line numbers and editable state 2026-02-01 04:00:21 +01:00
14ed5afe7b Add useEffect to initialize CodeMirror editor in App.tsx 2026-02-01 03:59:56 +01:00
34d8434fb3 Update App.tsx with new refs for editor components 2026-02-01 03:59:56 +01:00
9ecbe6ec65 Update App.tsx with CodeMirror imports and configurations 2026-02-01 03:59:44 +01:00
3ccb7bbe68 Set height to 100% for folder-item in index.css 2026-02-01 03:53:02 +01:00
28809839f2 Use markdownHtml for dangerouslySetInnerHTML in App.tsx 2026-02-01 03:53:02 +01:00
97a3871a8d Add markdownHtml memoization in App.tsx 2026-02-01 03:53:02 +01:00
8c1cf0e6a0 Add useEffect to refresh line numbers in App.tsx 2026-02-01 03:51:30 +01:00
6c528d6fb0 Import refreshLineNumbers in App.tsx 2026-02-01 03:51:30 +01:00
81a7a4fac8 Add refreshLineNumbers function to tln.ts 2026-02-01 03:51:30 +01:00
5b5371d3a8 Add CSS for hidden textarea and line numbers 2026-02-01 03:51:03 +01:00
a1f129a9cb No actual change detected in this commit 2026-02-01 03:51:03 +01:00
44b00e4a13 Import and use appendLineNumbers and removeLineNumbers functions 2026-02-01 03:51:03 +01:00
9dbce4ebee Add line number functionality to text area 2026-02-01 03:51:03 +01:00
18ae1c3d3b Remove onScroll event listener from textarea 2026-02-01 03:51:03 +01:00
15a1b22c91 Remove unused handleTextareaScroll function 2026-02-01 03:51:03 +01:00
afe8a39085 Simplify and optimize App.tsx by removing line numbers and improving markdown preview handling 2026-02-01 03:49:47 +01:00
ddba57d28b Refactor line number handling in App.tsx 2026-02-01 03:49:27 +01:00
10c6043e4e Simplify handleTextareaScroll and remove unused memoized functions in App.tsx 2026-02-01 03:49:09 +01:00
574e7899a5 Remove unused state and ref variables in App.tsx 2026-02-01 03:49:09 +01:00
2d256af21f Remove unused CSS classes in src/index.css 2026-02-01 03:32:32 +01:00
3ed9de1c54 Remove line number measure element from App.tsx 2026-02-01 03:32:27 +01:00
dd288313b9 Simplify line measurement logic in App.tsx 2026-02-01 03:32:27 +01:00
699b55b8fd Remove unused measureRef from App.tsx 2026-02-01 03:32:27 +01:00
997c8767e6 Optimize line metrics computation in App.tsx 2026-02-01 03:32:11 +01:00
b5a6b556c9 Update visible range calculation in App.tsx 2026-02-01 03:32:11 +01:00
51e8fea77b Refactor line calculation logic in App.tsx 2026-02-01 03:31:21 +01:00
7e170dfe85 Update refs and remove unused variables in App.tsx 2026-02-01 03:31:21 +01:00
78758331bb Remove unused FenwickTree class from src/App.tsx 2026-02-01 03:30:53 +01:00
2ea212fd53 Add relative positioning and adjust line numbers in index.css 2026-02-01 03:29:02 +01:00
b907855513 Refactor line number rendering in App.tsx 2026-02-01 03:28:53 +01:00
0024acdf40 Update line height calculation and management in App.tsx 2026-02-01 03:28:40 +01:00
9936fd2c0f Optimize scroll handling in App.tsx 2026-02-01 03:28:09 +01:00
1c9af949b4 Implement line number calculation and visibility tracking in App.tsx 2026-02-01 03:28:05 +01:00
3a2569daad Add state variables for line height and visible range in App.tsx 2026-02-01 03:28:05 +01:00
28edef621c Add FenwickTree class to src/App.tsx 2026-02-01 03:27:23 +01:00
e1e223ed55 Update README.md with improved feature descriptions 2026-02-01 03:19:51 +01:00
ec5cf906d2 Simplify and update README.md features section 2026-02-01 03:18:23 +01:00
016c2a3d4e Update README.md with new folder deletion behavior 2026-02-01 03:18:23 +01:00