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

@ -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:
}
}