vim-fold-cycle's Issues
Add option to enhance recursive `zC` to all nested folds
Vim's default behaviour for zC
and zA
when closing is that it only closes folds under the cursorline which is always only one line. This is identical to zc
and za
. Only when using visual selection the recursive nature of zC
can be used.
IMHO I would expect a different behavior more similar to your plugin except that zC
means always closing of the fold of the current cursor and all folds contained in this fold. zA
should follow this pattern when closing except it inverts the current fold and all nested folds.
I suspect this should be quite close what your plugin does and could easily be added.
A similar discussion about my intention can be found here:
http://vim.1045645.n5.nabble.com/Folding-recursively-levels-td4848210.html
Update
For consistency one could also change zO
and as a second option also change visual mode behaviour
Vim help would look like without visual mode description:
...
*zO*
zO Open all folds under the cursor recursively. Folds that are
contained in the fold of the cursor line are also changed.
...
*zC*
zC Close all folds under the cursor recursively. Folds that are
contained in the fold of the cursor line are also changed.
...
*zA*
zA Toggle the fold status of the fold under the cursor and
all folds contained in this fold.
...
when opening folds, should closed fold with lowest fold level and fold it first
Add global fold cycling commands
Must I use `zc` to fold a block to use vim-fold-cycle?
I use the defautl map CR
and BS
to open or close fold.
But I have to use zc
to fold some code first to let CR
and BS
work. If not there is no responce when I press CR
and BS
.
expected behavior
After open a file, BS
could fold an indent block.
actual behavior
No response when press BS
after edit a file, must fold someting use zc
and then BS
and CR
all works.
bell
I get a bell if, for instance, I
:set foldmethod=marker
on this file:
{{{1 Abc
...
then press with the cursor in the first line. I'm guessing this is not intentional?
add option to limit the levels cycled through
For example if you had more than 3 levels of folds by and set the option to limit you to three levels the following would happen each time you performed an open command.
- open first level
- open second level
- open remaining levels
Add option to enhance `zo` to open next level of closed child
I like the built-in behavior of zc
to close iteratively current fold, next parent fold and so forth.
I would like to have a similar behavior for zo
to open the current fold, the next child fold(s) and so forth.
What do you think about this?
disable vim-fold-cycle for specific FileType
Is there an option or dictionary to define what filetype don't use vom-fold-cycle?
not working in neovim without using zc or zM firstly.
In nvim 0.4.3, when opening. a new file, nothing happens without first triger once with zc or zm, or other built-in fold methods. After usage of zc/zo, then CR and BS work nicely as expected. It is quite strange, any ideas on this?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.