Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested folds exist unofficially #17

Open
Monkeypac opened this issue Apr 11, 2018 · 1 comment
Open

Nested folds exist unofficially #17

Monkeypac opened this issue Apr 11, 2018 · 1 comment

Comments

@Monkeypac
Copy link

Hi, I am not an evil user. I made a PR to the official vimish-fold for allowing it to handle nested folds. However, I saw with the owner that the package would need to be redesigned at some point in order to allow it being a little bit heavier.

You can see the fork at: https://github.com/Monkeypac/vimish-fold

I have some people at work trying to use evil-vimish-fold from here and vimish-fold nested from my fork but they can't since it does not behave well. So I thought there might be some people interested from here.

NB: Sorry for the bad english.

@chuckberrypi
Copy link

chuckberrypi commented Aug 9, 2022

This is an issue for me too. I'm building a re-frame web app (clojure(script)'s analog to redux), and I'd like to be able to organize the file like this:

;; reg-fx {{{
(reg-fx ::effect1...)

(reg-fx ::effect2...)
;; }}}

;; reg-event-db {{{
(reg-event-db ::db-event2...)

(reg-event-db ::db-event-2...)
;; }}}
...

Unfortunately, when I try to fold the individual functions within the fold block marked with the vimish-fold-marks, the whole outer fold collapses, which is not what I'd prefer. I think it would be great if we could have nested folds, and the default would be for the inner-most fold possible would collapse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants