Skip to content

Commit e0decb8

Browse files
committed
Think it's ready
1 parent f2fd6da commit e0decb8

File tree

3 files changed

+3
-23
lines changed

3 files changed

+3
-23
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# latex-folding
2-
Code folding for LaTeX in Atom (modelled off [`custom-folds`](https://atom.io/packages/custom-folds)).
2+
The best (and only?) folding for LaTeX in Atom.
33

4-
Just finished a working version, so no guarantees for bugs, etc. Close the tab and reopen it if something goes wrong.
4+
Major changes this update, should be working as well as the inbuilt indentation based folding does (but note that has been removed; am able to make it configurable).
55

6-
This package never modifies / deletes text; all changes are visual and will be reset if the tab is closed. Having said that, please always make a backup of your files.
6+
This package overrides core folding methods, but never modifies / deletes text. All changes are visual and will be reset if the tab is closed. Having said that, please always make a backup of your files.

lib/main.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,11 @@ const editorInfo = new Map();
1515
// LOOK at `render` in TextEditorComponent #3206
1616
module.exports = {
1717
activate() {
18-
19-
console.log("Loaded latex-folding");
20-
2118
this.disposables = new CompositeDisposable();
22-
this.observedEditors = [];
2319
this.disposables.add(
2420
atom.workspace.observeTextEditors((editor) => {
2521

2622
editorInfo.set(editor.id, {
27-
lastSelections: [],
28-
sectionMarkers: [],
29-
disposables: new CompositeDisposable(),
3023
hooked: false
3124
});
3225

@@ -100,8 +93,6 @@ function removeFoldingRules(editor) {
10093
languageMode.isFoldableAtRow = context.isFoldableAtRow
10194
languageMode.origGetFoldableRangeContainingPoint = context.getFoldableRangeContainingPoint
10295
}
103-
104-
context.disposables.dispose();
10596
}
10697
}
10798

styles/latex-folding.less

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)