You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 zn and friends. I also don't have your fold navigations, like zk. Very cool!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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