G.Ambatte
39d338e5bf
Reset position in local storage on divider reset
2022-03-09 13:19:07 +13:00
G.Ambatte
8fb25646bd
Initial pass: reset pane width on browser resize
2022-03-09 13:13:03 +13:00
Trevor Buckner
6bf4fc6cf8
Help dropdown uses existing dropdown class. Small tweaks.
2022-02-01 00:02:46 -05:00
Charlie Humphreys
7f001ee391
Merge branch 'master' into migration-guide
...
# Conflicts:
# server.js
2022-01-26 08:44:28 -06:00
Charlie Humphreys
9432304be5
Merge branch 'master' into migration-guide
...
# Conflicts:
# package-lock.json
2022-01-26 08:43:17 -06:00
Charlie Humphreys
38c0527d35
Add color mixins, help dropdown, and remove unused nav items
2022-01-26 08:40:33 -06:00
Alexey Sachkov
78d4487c58
Fix linter errors
2021-12-29 21:30:03 +03:00
Alexey Sachkov
8a3f52b704
[NFC] Add display name for custom React components
...
This improves readability of "Components" tab from React Development Tools extension for Chrome
2021-12-29 21:18:54 +03:00
Charlie Humphreys
38d8764f15
Disable code folding in style tab, disable active line highlight and whitespace visibility
2021-12-20 00:42:53 -06:00
Trevor Buckner
b9040226e4
Merge pull request #1819 from jeddai/codemirror-tweaks
...
Codemirror tweaks
2021-12-13 21:58:26 -05:00
Charlie Humphreys
2c2579ae2b
Update usage of trailing space to include special chars for spaces
2021-12-13 20:49:32 -06:00
Trevor Buckner
98f6ba6045
Update Marked to v4.0.7, use Extended-Tables extension
2021-12-13 15:21:53 -05:00
Charlie Humphreys
84f3519dbe
Remove unnecessary findPersistent method
2021-12-10 23:39:26 -06:00
Charlie Humphreys
61cfef445b
Update trailing space background and remove tab background when it is inside a trailing space
2021-12-10 23:07:21 -06:00
Charlie Humphreys
b60bc2996b
Update search/replace shortcuts and add 'Enter'-based shortcut for navigating backwards
2021-12-10 23:05:16 -06:00
Charlie Humphreys
65c9a2cba0
Update CodeMirror library import order and add comments explaining each file
2021-12-10 23:04:22 -06:00
Trevor Buckner
220316ec7e
Merge branch 'master' into pr/1819
2021-12-09 22:30:23 -05:00
Trevor Buckner
d4b26cc4c4
Merge branch 'master' into pr/1719
2021-12-03 15:16:19 -05:00
Trevor Buckner
1865e56b04
lint
2021-12-02 23:44:48 -05:00
Trevor Buckner
4fefc1e4d2
Merge branch 'master' into pr/1707
2021-12-02 23:29:47 -05:00
Trevor Buckner
a30e150ade
Disable max lines to satisfy lint
...
Eventually we should move the hotkey scripts into a separate file. They are becoming a beast of their own.
2021-12-02 15:47:18 -05:00
Trevor Buckner
9da1bfc606
Finish Merge with Master
2021-12-02 12:18:22 -05:00
Trevor Buckner
28f29ac49e
Merge branch 'master' into pr/1645
2021-12-02 12:17:41 -05:00
Trevor Buckner
2586a871e1
Use capture groups, add default "alt text" if none selected
...
Also allow whitespace at end and start of selection, so you don't have to be perfect.
2021-12-02 11:45:10 -05:00
Trevor Buckner
76553d1e65
Merge branch 'master' into pr/1568
2021-12-01 16:56:10 -05:00
Charlie Humphreys
2ea6610c57
Merge branch 'code-folding' into codemirror-tweaks
...
# Conflicts:
# shared/naturalcrit/codeEditor/codeEditor.jsx
2021-11-14 14:46:26 -06:00
Charlie Humphreys
1ec1ddc80c
Remove code fold toggling shortcut
...
#629
2021-11-14 09:58:41 -06:00
Trevor Buckner
b67dc1621b
More simplification to fold-code script
2021-11-13 20:57:33 -05:00
Charlie Humphreys
602ff67f3c
Add style for tabs to show tabs differently from spaces in the code editor
...
#1622
2021-11-11 22:38:27 -06:00
Charlie Humphreys
ea68e4778e
Merge branch 'code-folding' into codemirror-tweaks
2021-11-11 21:16:40 -06:00
Charlie Humphreys
2d30ac21a7
Update code based on PR feedback
...
#692
2021-11-11 17:08:05 -06:00
Charlie Humphreys
da6b00918d
Add addons for code search, auto-closing code, active line highlight, and trailing whitespace
...
#1201 #1202
2021-11-10 17:11:00 -06:00
Charlie Humphreys
52d7e6892b
Adjust comment to better describe the require section
...
#629
2021-11-10 11:37:18 -06:00
Charlie Humphreys
c86e8c51cb
Remove code added for debugging purposes
...
#629
2021-11-10 10:26:55 -06:00
Charlie Humphreys
3abb399045
Update homebrewery fold helper to allow folding the last page to the end of the document
...
#629
2021-11-09 10:08:48 -06:00
Charlie Humphreys
b06dedfa4a
Fix linting issues
...
#629
2021-11-08 17:24:33 -06:00
Charlie Humphreys
eec6e66543
Replace copied code with require methods to import the CodeMirror helpers
...
Put back the correct require notation for importing the foldcode and foldgutter helpers
#629
2021-11-07 21:35:35 -06:00
Charlie Humphreys
c0b9f4488f
Add code folding feature for all content within a single page
...
Added the gutter definitions and css for code folding. Enabling code folding in the editor was
tricky due to how CodeMirror loads its files. At the moment, the CodeMirror code-folding code has
been copied into the fold-code.js file. Additionally, that file contains the helper registration
for the Homebrewery-specific code folding function.
#629
2021-11-02 22:40:17 -05:00
Trevor Buckner
34293bcc1d
Merge pull request #1763 from naturalcrit/keepHistoryOnTabSwitch
...
use CodeMirror Documents
2021-10-24 19:04:14 -04:00
Trevor Buckner
ddb12ffbe2
Make sure initial tab loads with language for code highlighting
2021-10-24 18:03:10 -04:00
Trevor Buckner
63d659ff49
use CodeMirror Documents
...
Instead of re-building the whole editor box with every tab switch, we just swap in and out CodeMirror "documents".
Maintains undo history, scroll position, highlight coloring, etc.
2021-10-19 23:49:11 -04:00
G.Ambatte
dbf6020194
Darken divider on hover
2021-10-19 23:19:26 +13:00
G.Ambatte
3b37cacea2
Limit position to min/max window limits
2021-10-19 15:04:53 +13:00
G.Ambatte
a2a6a3d3f6
Add limits to central divider position
2021-10-19 14:39:51 +13:00
G.Ambatte
ab2900cadf
Expose CodeMirror functions in codeEditor.jsx
2021-10-18 22:29:25 +13:00
Sean Robertson
bfcb29ff9c
Reduce CodeMirror codeEditor historyEventDelay to 250
2021-10-18 22:29:25 +13:00
G.Ambatte
9bc52b412c
Initial pass at Editor Toolbar - Undo and Redo.
2021-10-18 22:29:25 +13:00
Trevor Buckner
feb8fcadd6
Animate dropdown
2021-10-14 00:40:51 -04:00
Trevor Buckner
872125515e
Apply to Edit page
2021-10-14 00:03:22 -04:00
Trevor Buckner
a695540f60
Working dropdown component on the Share Page
2021-10-13 11:53:01 -04:00