Trevor Buckner
e5ab223571
Better line position (viewport has some margin)
2024-09-10 01:25:26 -04:00
Trevor Buckner
45a9501459
Jump based on scroll position, not cursor position
2024-09-10 01:11:28 -04:00
Trevor Buckner
ec74b994d7
Simplify scroll event for source editor using lodash Throttle
2024-09-10 00:43:44 -04:00
David Bolack
1e9c7423c7
Fix "clicked on the toggle ring" crash with scroll lock.
...
The code was doing dom-climbing math based on clicking on the div contents but was attached to the div. Moved the onClick to the contents.
2024-09-07 22:36:27 -05:00
David Bolack
7a37bf47c5
Bodge Render side mirroring back into place.
2024-09-07 21:33:51 -05:00
Trevor Buckner
b124e55b3d
Merge branch 'master' into Issue_241_Part_II
2024-09-06 23:51:14 -04:00
Trevor Buckner
22678b15af
Fix snippet filter
2024-09-06 16:35:18 -04:00
David Bolack
88caa81baa
Merge branch 'master' into snippets-no-gen
2024-09-06 12:25:22 -05:00
David Bolack
5c9c342b10
Update client/homebrew/editor/snippetbar/snippetbar.jsx
...
Co-authored-by: Trevor Buckner <calculuschild@gmail.com >
2024-09-06 01:25:13 -05:00
Gazook89
3c6f49aa0a
Move focus method to handleViewChange
2024-09-03 14:48:45 -05:00
Gazook89
afa1e7974a
Set focus on editor after tab switch
...
This sets the focus on the editor (and thus reveals cursor position) between editor changes (style to text to meta and back).
2024-09-02 21:07:19 -05:00
David Bolack
6f837980eb
All Snippet entries that have subsnippets but not generators.
2024-08-31 13:54:52 -05:00
David Bolack
82f2d0254f
Merge branch 'master' into Issue_241_Part_II
...
Clean up a small bit of linting in the pr related functions.
2024-08-31 11:11:22 -05:00
David Bolack
a4f30d687d
Merge branch 'master' into Issue_241_Part_II
2024-08-28 21:17:10 -05:00
David Bolack
bda8be6ec1
Remove stray console.log
2024-08-28 20:54:50 -05:00
David Bolack
132a7d1f53
A temporary, imperfect fix for the jump hotkeys
2024-08-28 20:48:33 -05:00
Trevor Buckner
5671728c97
Change filter to some
...
`some` stops once it finds a true case; `filter` has to process the whole list of folds first.
2024-08-26 17:23:44 -04:00
Trevor Buckner
d59c6be359
Merge branch 'master' into fixEmojiFolding-#3604
2024-08-26 16:34:06 -04:00
David Bolack
e27e61aaca
Bind livescrolling when done via scrollbars.
2024-08-24 00:47:06 -05:00
Gazook89
32c6224f40
remove console.log
2024-08-22 23:30:36 -05:00
David Bolack
695293333f
Fix merge
2024-08-21 21:19:10 -05:00
David Bolack
5431d3ed9b
Merge branch 'master' into Issue_241_Part_II
2024-08-21 21:03:26 -05:00
David Bolack
54d5dbf992
Pruning
2024-08-20 13:47:32 -05:00
David Bolack
4957a0d2ef
Flip which arror is which.
2024-08-20 13:18:48 -05:00
G.Ambatte
cc9edcc67c
Prevent styling of lines inside folded sections
2024-08-17 23:11:04 +12:00
David Bolack
2d781f02e3
Merge branch 'master' into Issue_241_Part_II
2024-08-13 12:26:29 -05:00
David Bolack
fc6930c868
Merge branch 'master' into Issue_241
2024-08-13 12:17:45 -05:00
Trevor Buckner
f1fd75574d
Merge branch 'master' into CSSFolding
2024-08-08 17:51:05 -04:00
Trevor Buckner
3c8aaa7465
Update metadataEditor.less
2024-08-03 17:28:47 -04:00
G.Ambatte
1513a983f7
Skip self when generating metadata dropdown list
2024-08-03 16:32:49 +12:00
David Bolack
957b1ed9e7
Merge branch 'master' into CSSFolding
2024-08-01 10:09:56 -05:00
David Bolack
dcdc8b4943
Remove Livescrolling toggle hot-key.
2024-07-30 02:41:03 -05:00
David Bolack
184462616f
Merge branch 'master' into Issue_241_Part_II
2024-07-30 02:31:14 -05:00
David Bolack
2d335ef7fc
Merge branch 'master' into Issue_241
2024-07-30 02:30:57 -05:00
Trevor Buckner
8221579b6a
Linting
2024-07-28 18:03:25 -04:00
Trevor Buckner
2870caaae6
Clean up metadataEditor theme dropdown
2024-07-28 17:18:30 -04:00
Trevor Buckner
27c52fc244
Fix loading CSS for Legacy
2024-07-23 17:11:48 -04:00
Trevor Buckner
6ae249a527
Lint
2024-07-22 02:46:26 -04:00
Trevor Buckner
c0123b96eb
Support snippet compilation
...
Original handling of snippets only worked if the current selected theme was a staticTheme. This now fully merges all snippets through the theme chain no matter what the top-level theme is. So user themes built on 5ePHB can benefit from 5ePHB snippets too.
User input of user snippets will be a later PR, but merging them into static snippets is now supported.
2024-07-22 02:44:41 -04:00
Trevor Buckner
45f7080afd
Move loadAllBrewStylesAndSnippets to the parent page component
...
Themes contain both CSS and Snippets. The brewRenderer only cares about the CSS, but other components need the Snippets. Better to have the parent "editPage", etc. load the theme bundles and pass them down to each child that needs it, rather than trying to pass from the child up.
This also fixes the `metadataEditor.jsx` not being able to change themes live; A new theme bundle is now loaded when a new theme is selected, instead of only the first time the BrewRenderer mounts.
Also renamed to "fetchThemeBundle"
2024-07-21 16:25:24 -04:00
David Bolack
c82b62f953
Add Code folding on CSS style tab
2024-07-19 16:03:44 -05:00
Trevor Buckner
460358ce1f
Simplify some logic
2024-07-19 00:09:21 -04:00
Trevor Buckner
0448f15322
Classify user brews as V3 if they use V3
...
Each theme in the theme chain, including user brews, must use the same renderer. When moving to V4 or future versions, it will be important to distinguish which themes are compatible with each other
2024-07-19 00:05:45 -04:00
Trevor Buckner
d22cd88446
fix crash in metadataeditor
2024-07-15 23:47:19 -04:00
Trevor Buckner
1444581c86
pass userThemes prop to Editor -> MetadataEditor
2024-07-15 23:44:07 -04:00
Trevor Buckner
2fa3c0f311
themeClass is never used
2024-07-11 00:26:50 -04:00
Trevor Buckner
5c0a072115
userThemes passed to SnippetBar.jsx is never used
2024-07-11 00:25:11 -04:00
David Bolack
656edb07ea
Rework detection of user brews to look up themeid in static themes list before assuming is a user brew.
...
Ended up being a fairly straightforward change. A few ternaries got smooshed or inverted. Passes builtin and local tests. Need to compare on the test instance.
2024-07-08 18:12:58 -05:00
David Bolack
060f28a0a6
Merge branch 'master' into Issue_241
2024-06-19 18:41:02 -05:00
David Bolack
a3f146cd53
Change the last Boneheaded hot change to something better
...
CTRL-SHIFT-LEFTARROW - Source Jump
CTRL-SHIFT-RIGHTARROW - Brew Jump
2024-06-19 18:39:20 -05:00