Feature Request : option to disable auto expand of folders
-
Folder function is very very neat for me cuz i put everything down in a several txt files. I don’t like opening and closing a lot of different txt files. It gets messy and txt files often get neglected and forgotten. I can open a few txt files and just add folders to it to organize all kinds of info, so that I don’t have to deal with too many files and yet still can have access to stuff without having to use search function or endless scrolling.
That being said, it is kinda awkward when I’m moving around folders, because they tend to auto expand and I have to scroll way back up to close them. Or I have to constantly use “Fold level” hotkey and it also gets frustrating. I really don’t see how people would prefer auto expanding behavior but even if I’m in the minority, I’d like to be offered an option, please :( …
And if I can inconvince you more, it’d be even nicer if I can collape folders from the bottom as well. As of right now, collapse button(“-”) is only at the top left side. Thank you very much for this amazing application anyway. Cheers.
-
@Hyung-jun-Chang said in Feature Request : option to disable auto expand of folders:
Folder function
Which “folder function” do you mean?
Because the View > Folder as Workspace, which is what I originally thought you meant, doesn’t use
-for collapse – it uses〉for exapand and﹀for collapse:

And the “code folding”, like

… which does use-as the collapse button, but it doesn’t fold on.txtfiles. But since you mention the “Fold level” hotkey, that does imply that you are using code folding.But you need to be more specific. Maybe showing a screenshot, to make sure we understand…
(further, as our FAQ section explains, we can talk about ideas for Feature Requests here, but this is just the Community of Notepad++ users, so no ideas will be implemented here; an official Feature Request would have to be made.)
-
@PeterJones
yeah I was talking about the second one. to make giant txt files while also having some sort of structure within them. as for posting this on wrong place, I apologize and will go to github. -
@Hyung-jun-Chang said in Feature Request : option to disable auto expand of folders:
yeah I was talking about the second one. to make giant txt files while also having some sort of structure within them. as for posting this on wrong place, I apologize and will go to github.
Just a minor language issue: what you are talking about is called “folding.” When you say “folders,” people think of things that contain files (otherwise known as “directories”). That’s just the way we ordinarily use those words.
Folding is not normally possible for plain text files, so there is some bit of information missing here. It would probably help if you use the Debug Info option on the ? menu and copy that information here. I think one of these things must be true:
-
You are editing files in a Language (meaning computer language, not human language) other than None (Normal Text).
-
You are using a plugin that does something to create fold points.
It would help us understand and discuss your idea if we knew how you were getting fold points in the first place.
It’s not wrong to post here about something like this; discussing an idea for a change here is fine, and usually a good thing to do before proposing it on GitHub. We can sometimes help you clarify what you want and think about how it would interact with other features, or tell you if there is already a way to accomplish what you want. @PeterJones was merely pointing out that after discussing it, you would still need to make a feature request on GitHub before any results could be expected.
-
-
I really don’t see how people would prefer auto expanding behavior but even if I’m in the minority, I’d like to be offered an option, please :( …
The auto expanding behavior is usually good though at times is disruptive. If you search for a word then a match may ensure the line is visible which may cause the fold to collapse so that you can see the match.
Reminds me of this issue #12121 where posted some Lua code to help prevent auto expanding behavior. It is not an ideal solution but may help a little with that particular problem. The behavior that makes expanding happen for you is not clear with your problem to know what may help.
In the Lua code, notice the change of this setting
SC_AUTOMATICFOLD_NONE = 0 editor.AutomaticFold = SC_AUTOMATICFOLD_NONEwhich disables auto folding. View editor.AutomaticFold for more details. Need LuaScript plugin for the Lua code. Many of the other scripting plugins can possibly do this function call too.
And if I can inconvince you more, it’d be even nicer if I can collape folders from the bottom as well. As of right now, collapse button(“-”) is only at the top left side.
The tail fold line can be the last hidden line when a fold is collapsed so unsure how that line can possibly have a visible tail fold marker.