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
Just came across this issue while attempting to search for issues for an equal/opposite feature: "collapse all folds when file is larger than X lines".
Maybe a new feature could be created where a user can define 2 parameters, an upper and lower bound, or 1 parameter, that tells UFO to collapse/open all folds when the file is larger or smaller the given parameter(s).
I'm unsure if there is already a way to do this as I only found this plugin yesterday (and what a great plugin it is too).
Feature description
Disable folding if the file is less than X lines long.
Describe the solution you'd like
I used to have the following code when I was using built-in folding, to disable folding for short files:
Is it possible to accomplish the same with ufo?
If not, that would be a nice feature to have.
Additional context
Not much point folding parts, if the whole file already fits on the screen.
The text was updated successfully, but these errors were encountered: