mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2025-07-24 01:39:59 +02:00
Antedit 2.0.1: bug fix & imporvement
This commit is contained in:
@ -378,7 +378,7 @@ namespace OS {
|
||||
}
|
||||
|
||||
getEditor(): any {
|
||||
return this.editor;
|
||||
return this._code_editor;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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:
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user