-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Decent folding like in Vim #3226
Comments
Can't we get this to work with the regular |
Yeah I don't see any value in adding this as it can be done with the |
How about
|
I personally don't see value but I'm stubborn as hell. |
Also to create a fold with
|
Am hoping to add this to evil itself - first need a little help from vimish-fold - matsievskiysv/vimish-fold#16 - and then can add support to evil itself for create, delete and other fold commands: https://bitbucket.org/alexmurray/evil/commits/7523bda77b74a5be2766629bc8a9cf6bfcee3c67 |
Update - PR for evil itself (without the need for the change to vimish-fold) - https://bitbucket.org/lyro/evil/pull-requests/24/add-vimish-fold-folding-support-and-fold |
@robbyoconnor Vim can do a whole lot more with folds than any of the currently implemented fold methods, like create folds from arbitrary regions. It's one of the few remaining feature gaps between Emacs/Evil/Spacemacs and Vim. If this package does what is advertised it's a no-brainer for me to include it. Good job on the PR @alexmurray, exactly what I had in mind. |
👍 |
This is handy, but how does the work with hideshow as well? The capability to collapse all folds is valuable. I am also working on package to extend evil and hs to be more like vim, that I will release once I figure out how I am going to maintain multiple ranger frames simultaneously. |
WOW you guys are amazing 👍 |
👍 |
Ohh nice! this was indeed missing from spacemacs!! good job guys!! |
Since this doesn't appear to be landing in evil just yet - for the impatient have a look at https://github.com/alexmurray/evil-vimish-fold |
Hey Guys, great work. I'm loving it. I am really missing the code folding capabilities from Vim.
Anyway thanks again for the package. |
http://emacs.stackexchange.com/questions/14781/how-can-i-replicate-vims-code-folding One of these packages have the capability to fold the |
Thanx for the reply. when folded turning into: I work mainly with statistical software which requires doing the same things many times over with only minor changes. So the recommended "Search for the function you need" approach really doesn't work for me as it produces too many results. |
@cataclysmic what if you open an issue on the issue tracker of Vimish Fold? |
Great idea. I wanted to check all the options first. There just soooo many packages out there. ;-) |
FYI, the PR to evil got declined. Maybe evil-vimish-fold integration in spacemacs is a good idea? |
Hm Sad. Thank you for trying. On 15.02.2016 05:03, Michael Komitee wrote:
|
PR welcome :-) |
@cataclysmic did you ever find a nice approach for getting folding working? vimish-fold doesn't seem that great for ruby code (just trying to fold do/end blocks for chef resources). |
Hi there, honestly I moved to using outline-(minor)-mode. On 20.06.2016 19:06, Hippie Hacker wrote:
|
You may try to set |
@StreakyCobra doing that gives me a |
Show us your code please. |
Not sure if you meant me but here:
In the code it looks like:
` |
@mrkgnao I just started learning to edit my Example of what i was doing (wrong): Example of what I had to change it to to make it work (correct): @cataclysmic do you have a sample of what you used to fold your tripple braces? ( EDIT: Well digging into it more, it seems that evil-vimish-fold has been incorporated into spacemacs, i was able to use zc to close all of my manual folding points, and tested a close and reopen of the file keeps the folds closed, which looks a lot nicer 👍 |
@challsted Take a look at dotspacemacs-folding-method for more information. You have two options |
I hope someone within the project will look into this soon, since it's the only feature of Spacemacs that I'm currently missing — coming from me after several years of usage, it's incredible. I'm particularly interested in this for Ruby DSLs (this may be helpful: https://gist.github.com/littlemove/5c55dfe0bb724f4420c0). |
I'm actually not sure about "Vim-style" folding; I will be absolutely happy with a kinda org minor mode (for Ruby or whatever), with functionality like dragging blocks/methods etc. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid! |
I've attempted to integrate |
The following PRs changes have been applied to the |
One of the things that I miss in Spacemacs, was the decent folding like Vim have. I opened a topic about it on Emacs Stackexchange.
@mrkkrp took the challenge, and developed the package Vimish fold that succesfully emulates nearly all the abilities of Vim folding method.
See this screenscast to see it in the action:
I was wondering if this could be included with Spacemacs, given the fact that one of the goals of Spacemacs is to emulate Vim.
Given the fact that Vim creates the folding in visual mode with the key
zf
, I remapped the features of Vimish fold, might be some inspiration for you? :Note that you will be still able to use the key
s
, but with another timing.The text was updated successfully, but these errors were encountered: