diff --git a/README.md b/README.md index 38fcafd..c6f7d0d 100644 --- a/README.md +++ b/README.md @@ -34,9 +34,9 @@ To run the application: To evaluate code, press `Ctrl+Enter` (no visible animation). This is true for every buffer. To stop a buffer from playing, comment your code or delete it. -# TODO +# TODO -## API +## API - [ ] Give information about its context of execution to every script - knowing which internal iterator to use for each script would be nice @@ -57,7 +57,7 @@ To evaluate code, press `Ctrl+Enter` (no visible animation). This is true for ev ## UI - [x] Settings menu with all options. - - [ ] Color themes (dark/light), other colors. + - [ ] Color themes (dark/light), other colors. - [x] Font size. - [x] Vim mode. - [ ] Repair the current layout (aside + CodeMirror) diff --git a/src/main.ts b/src/main.ts index 32a3b99..b2026e4 100644 --- a/src/main.ts +++ b/src/main.ts @@ -405,7 +405,6 @@ export class Editor { for (let j = 0; j < tabs.length; j++) { if (j != i) tabs[j].classList.remove("bg-orange-300"); } - this.currentFile.candidate = this.view.state.doc.toString(); let tab_id = tab.id.split("-")[1]; this.local_index = parseInt(tab_id); this.updateEditorView(); @@ -438,7 +437,6 @@ export class Editor { if (this.local_script_tabs.classList.contains("hidden")) { this.local_script_tabs.classList.remove("hidden"); } - this.currentFile.candidate = this.view.state.doc.toString(); this.editor_mode = 'local'; this.local_index = 0; this.changeToLocalBuffer(this.local_index); @@ -448,14 +446,12 @@ export class Editor { if (!this.local_script_tabs.classList.contains("hidden")) { this.local_script_tabs.classList.add("hidden"); } - this.currentFile.candidate = this.view.state.doc.toString(); this.editor_mode = "global"; changeColor(this.global_button); break; case "init": if (!this.local_script_tabs.classList.contains("hidden")) { this.local_script_tabs.classList.add("hidden"); } - this.currentFile.candidate = this.view.state.doc.toString(); this.editor_mode = "init"; changeColor(this.init_button); break; }