Fold commands #368
mrbjarksen
started this conversation in
Show and tell
Replies: 1 comment 3 replies
-
Ha! Back in July, I hadn't seen this, and I reinvented it. I added my version to the wiki at that time. Like you, I don't have a version of |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been tinkering around with creating commands and mappings which behave like Vim's default fold mappings. My custom commands can be found in this GitHub Gist. I use them with the following mappings:
I'm pretty happy with the results. There are some mappings missing, though, most notably the ones which manipulate
'foldenable'
and'foldlevel'
. I've decided this is as much as I can stomach, however. I'm curious if anyone here has any ideas for the remaining mappings or improvements on my commands (I suspect there is a better way to recursively scan files, for example).Edit: I noticed a bug that throws errors when opening different Neo-tree sources on the same side as the current one. This should be fixed now, at the cost of the saved cursor node (used for folding) being forgotten when leaving the Neo-tree window. Of course this isn't the end of the world, but it's not ideal.
Beta Was this translation helpful? Give feedback.
All reactions