-
Notifications
You must be signed in to change notification settings - Fork 18
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
Edit fold names #39
Comments
This is not its first line, it's like a hint of what the fold contains. To edit it you need to unfold it, which makes sense IMO, because you'll be able to see the whole text in normal form.
I can't reproduce it here. If I fold several last lines in a buffer, I still can position cursor after the fold and execute either
This is same idea, you first unfold, then edit. I understand it may be annoying, but the read-only property is there for a reason. It would be too easy to end up with folds that look bad (i.e. fold overlay starts not from beginning of a line but somewhere in the middle) without it. |
I now understand your vision of folds!
where lines 1 and 2 are folded together as well as lines 3 and 4. Then, folding all gives something looking like
Now if you want to add something between the two fold, you would naturally position the cursor at the beginning of line 3 (line with This kind of edits of the name of a fold (that is, just inserting a line before or after a fold) couldn't mess up with the organisation of folds, so I think they should be allowed! |
Yes, I see the problem, but I don't know yet how to solve it. |
Perfect, thank you! |
I really like
vimish-fold
, but something annoys me: when a region is folded, I can't edit its first line. When the region is the last part of the buffer, it prevents me from adding a new line. Also, using command such ascomment-dwim
(which comments a region) isn't possible for the whole file: I get the messagecomment-region-default: Text is read-only
. How could I edit fold names ?The text was updated successfully, but these errors were encountered: