• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

fold-lines

Display full-width fold lines, similar to Notepad++ or Komodo editors.
  • #fold
  • #lines
  • #notepad++
  • #komodo
alysov
16,725
27
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

Fold Lines

Display full-width fold lines, similar to Notepad++ or Komodo editors.

Underline all the folds!

The solution is rather simple, really: It adds a "folded" class to the editor, similar to how the line number is marked. Therefore, to modify the style of the line marker, you could do something like this in your styles.less file:

atom-text-editor.editor .line.folded {
  border-bottom: 1px dashed salmon;  // Mmm.. salmon..
}

To remove underline from the line number marker:

atom-text-editor.editor .line-number.folded {
  border-bottom: none;
}

To hide default fold marker (which I feel to be redundant while fold lines are visible):

atom-text-editor.editor .fold-marker {
  display: none;
}

Goals / TODO:

  • [ ] Write specs
  • [ ] Config option to hide default fold marker
  • [ ] Fold lines in minimap. Hmm…
  • [ ] Get mainline Atom to include this

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by