I have an issue with this plugin. When activated the cursor is unvisible in empty lines.
in order to solve the cursor issue, I used code @graphit0 wrote in 2021
MacOS
vi ~/.config/joplin-desktop/userchrome.css
add this
div.CodeMirror-gutters {
/* locates the gutter more or less to the left */
left: -1px !important;
/* makes gutter colour to be transparent essentially hiding it */
background-color: transparent !important;
}
Seems like there might be a conflict between macOS Theme plugin and Folding in Code Mirror Editor plugin:
Added issue to github: grey vertical bar at left edge of the MD editor when both macOS theme and Folding in Code Mirror Editor plugins are enabled Ā· Issue #7 Ā· ambrt/joplin-plugin-fold-cm Ā· GitHub
I have the same issue - in my case, it's a conflict between this plugin and @CalebJohn's plugin Rich Markdown option "align wrapped list items to the indent level" as described by @ambrt in the following post: Persistent text folding in editor - #36 by ambrt
I have an annoying issue with this plug-in: the triangle button to click to fold or unfold doesn't work; I just can fold/unfold all with the keystroke. The button seems active, but don't work as shown in the presentation of the plug-in. Can I have some help ?
I send a video below to show the behavior of the plug-in (macOS 14.5, Joplin 2.14.22, and here's my list of plug-ins:
Autolinker: 1.0.4
Backup: 1.4.0
Csv Import: 1.0.1
Cursor Sync: 2.1.0
Email Note: 1.2.2
Favorites: 1.3.2
Folding in Code Mirror Editor: 2.0.1
joplin-hackmd: 2.0.0
Spoilers: 1.0.6
Table Formatter Plugin: 1.2.1
Text Colorize: 1.2.5
Seems that the problem is solved⦠by desabling the plugin and replace it with this one : Joplin Plugins - CodeMirror 6 settings
I installed this plugin and the only thing different is that there are now menu entries in Tools --> Fold all or Unfold All.
But there are not any triangles to fold the code, and those selections from the tool menu don't do anything. I have tried all (I think) different editor views but don't see any triangles to fold. Am I missing something obvious? Or maybe a Joplin update in the meantime conflicts with this plugin. Does this plugin still work with recent versions of Joplin?
Joplin 3.2.13 (prod, linux)
Sync Version: 3
Profile Version: 47
Keychain Supported: No
Revision: a898e17
Plugins:
Backup: 1.4.2
Bidirectional Links: 0.2.0
Folding in Code Mirror Editor: 2.0.1
Freehand Drawing: 2.14.0
Outline: 1.5.7
This plugin hasn't been updated in a while, so it's best to switch to Extra Markdown editor settings plugin for similar functionality
That other plugin is working OK for me, but folding is only in the markdown editor and it doesn't persist. But it's better than it was without the plugin. Thank you!
I got an error related to this plugin when Joplin 3.4.10 was installed (cm.foldOption is not a function) so have had to disable it, which is a real pity as I relied on the persistent folding a lot.
I also got an error a few hours after updating to Joplin 3.4.10, and like you, I disabled this plugin. Did your error manifest the way I describe here - with all your notes showing the error ātext editor encountered a fatal errorā in the editor pane?
Yes, exactly like that. And when I did disable and reenable the plugin, it looked like it works working (note content showed) but actually it was blocking other things from functioning properly. It has been working fine since I disabled the fold plugin.
I mocked up a CSS hack to imitate āpersistent foldingā but it only works as a feasible solution for me because of the way I add āflagsā to note titles and donāt otherwise use codeblocks in these particular notes I want this to work..
Thanks for confirming. I was a little worried I might have to restore my notes from backup, but it seems probable this was just a plugin conflict with Joplin update that created an editor issue. Iāve run into issues with this plugin before, and since itās not been maintained for years, Iām deleting it.
There is a built-in plugin that allows for folding, though I havenāt tried it yet, and not sure the folding is persistent: Joplin Plugins - Extra Markdown editor settings
Yeah it didn't affect the content of my notes at all.
The built in functionality doesn't allow for persistent folding.
Thanks.
Yeah, lack of persistence kind of makes the built-in folding useless for me. Iām not going through the effort of folding text only for it to be unfolded next time I look at that note.