How to collapse lines under a header?
-
So im unsure if this is doable, but I have a yaml file open within notepad. And in it I can use a read - icon to collapse everything in under the header.
Is there anyway for me to do this with a standard .txt file? I need a lot of notes for the work im currently doing and that ability would be very helpful.
I can provide a pic with what I can collapse if it somehow helps people know what im referring to.
-
With .txt extension, it won’t be automatic… But you can select the Language > YAML language manually to apply YAML-style folding (or pick whatever lexer has the closest folding rules to your .txt)… Or even make a UDL (though the folding rules for UDL are rather simplistic).
You can assign a keyboard shortcut to any of the Language entries, if the menu is too slow for you.
If you can assign a custom extension instead of.txt, you could make it pick the right lexer or UDL automatically
-
Wonderful! thank you so much that will make this way easier to keep orgenized.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login