Antedit 2.0.1: bug fix & imporvement

This commit is contained in:
DanyLE
2022-07-04 19:58:51 +02:00
parent 5f0588ee27
commit 6c678b53d9
11 changed files with 34 additions and 2350 deletions

View File

@ -6,6 +6,7 @@ The editor functionality can be extended by its extension mechanism.
Extension can be developed/released/isntalled by the editor itself.
### Change logs
- 0.2.1-b: Add open file to right, editor actions are only attached to code editor
- 0.2.0-b: Support diff mode in editor + fix new Monaco version compatible bug
- 0.1.17-b: Fix extension keybinding bug with the new monaco editor
- 0.1.16-b: use the new version of monaco editor

View File

@ -6,6 +6,7 @@ The editor functionality can be extended by its extension mechanism.
Extension can be developed/released/isntalled by the editor itself.
### Change logs
- 0.2.1-b: Add open file to right, editor actions are only attached to code editor
- 0.2.0-b: Support diff mode in editor + fix new Monaco version compatible bug
- 0.1.17-b: Fix extension keybinding bug with the new monaco editor
- 0.1.16-b: use the new version of monaco editor

File diff suppressed because one or more lines are too long

View File

@ -7,7 +7,7 @@
"author": "Xuan Sang LE",
"email": "mrsang@iohub.dev"
},
"version": "0.2.0-b",
"version": "0.2.1-b",
"category": "Development",
"iconclass": "bi bi-journal-code",
"mimes": [

Binary file not shown.

View File

@ -7,7 +7,7 @@
"author": "Xuan Sang LE",
"email": "mrsang@iohub.dev"
},
"version": "0.2.0-b",
"version": "0.2.1-b",
"category": "Development",
"iconclass": "bi bi-journal-code",
"mimes": [

View File

@ -378,7 +378,7 @@ namespace OS {
}
getEditor(): any {
return this.editor;
return this._code_editor;
}
}
}

View File

@ -457,6 +457,7 @@ namespace OS {
{
items.push( { text: "__(Select for compare)", id: "diff-org" });
items.push( { text: "__(Compare with selected)", id: "diff-mod" });
items.push( { text: "__(Open to right)", id: "open-right" });
}
m.items = items;
m.onmenuselect = (e) => {
@ -987,6 +988,14 @@ namespace OS {
this.diff_buffer[1] = file.path.asFileHandle() as EditorFileHandle;
this.openDiff(this.diff_buffer);
break;
case "open-right":
if(!file || file.type === "dir") return;
if(this.split_mode == false)
{
this.toggleSplitMode();
}
this.eum.editors[1].openFile(file.path.asFileHandle() as EditorFileHandle);
break;
default:
}
}