|
@@ -279,7 +279,7 @@ var currentTabWidth = 0;
|
|
var mainCodingWindow = true;
|
|
var mainCodingWindow = true;
|
|
var functionList = {
|
|
var functionList = {
|
|
File: ["📄 New","📂 Open File","Run in FloatWindow","Open current directory","Reload","💾 Save","💾 Save As","Close All Tabs","🖨 Print","Exit"],
|
|
File: ["📄 New","📂 Open File","Run in FloatWindow","Open current directory","Reload","💾 Save","💾 Save As","Close All Tabs","🖨 Print","Exit"],
|
|
- Edit: ["⤺ Undo","⤻ Redo","Open in New Tab"],
|
|
|
|
|
|
+ Edit: ["⤺ Undo","⤻ Redo","Open in New Tab", "Open tmp folder"],
|
|
Search:["Find / Replace"],
|
|
Search:["Find / Replace"],
|
|
Theme:["ambiance","chaos","chrome","clouds","clouds_midnight","cobalt","crimson_editor","dawn","dracula","dreamweaver","eclipse","github","gob","gruvbox","idle_fingers","iplastic","katzenmilch","kr_theme","kuroir","merbivore","merbivore_soft","mono_industrial","monokai","pastel_on_dark","solarized_dark","solarized_light","sqlserver","terminal","textmate","tomorrow","tomorrow_night","tomorrow_night_blue","tomorrow_night_bright","tomorrow_night_eighties","twilight","vibrant_ink","xcode"],
|
|
Theme:["ambiance","chaos","chrome","clouds","clouds_midnight","cobalt","crimson_editor","dawn","dracula","dreamweaver","eclipse","github","gob","gruvbox","idle_fingers","iplastic","katzenmilch","kr_theme","kuroir","merbivore","merbivore_soft","mono_industrial","monokai","pastel_on_dark","solarized_dark","solarized_light","sqlserver","terminal","textmate","tomorrow","tomorrow_night","tomorrow_night_blue","tomorrow_night_bright","tomorrow_night_eighties","twilight","vibrant_ink","xcode"],
|
|
Font_Size:["8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25"],
|
|
Font_Size:["8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25"],
|
|
@@ -738,10 +738,8 @@ function handleEditMenu(itemText){
|
|
//Call to openInNewTab function for opening new tab;
|
|
//Call to openInNewTab function for opening new tab;
|
|
break;
|
|
break;
|
|
case 3:
|
|
case 3:
|
|
- //Insert a special character into the passage
|
|
|
|
- $("#specialCharInsert").show();
|
|
|
|
- var id = getFocusedTab()[0];
|
|
|
|
- insertTarget = $("#" + id)[0].contentWindow;
|
|
|
|
|
|
+ //Open tmp folder
|
|
|
|
+ ao_module_openPath("user:/Document/NotepadA/");
|
|
break;
|
|
break;
|
|
|
|
|
|
}
|
|
}
|
|
@@ -850,7 +848,9 @@ function handleFileMenu(itemText){
|
|
}
|
|
}
|
|
var id = getFocusedTab()[0];
|
|
var id = getFocusedTab()[0];
|
|
//var uid = Math.round((new Date()).getTime() / 1000);
|
|
//var uid = Math.round((new Date()).getTime() / 1000);
|
|
- var url = "./media?file=" + $("#" + id)[0].contentWindow.getFilepath().replace("../","");
|
|
|
|
|
|
+ var currentFilepath = $("#" + id)[0].contentWindow.getFilepath().replace("../","");
|
|
|
|
+ var fileExt = currentFilepath.split(".").pop();
|
|
|
|
+ var url = "./media?file=" + currentFilepath;
|
|
var title = "NotepadA Runtime";
|
|
var title = "NotepadA Runtime";
|
|
var icon = "code";
|
|
var icon = "code";
|
|
ao_module_newfw({
|
|
ao_module_newfw({
|
|
@@ -860,7 +860,6 @@ function handleFileMenu(itemText){
|
|
title: title,
|
|
title: title,
|
|
appicon: "NotepadA/img/small_icon.png",
|
|
appicon: "NotepadA/img/small_icon.png",
|
|
});
|
|
});
|
|
-
|
|
|
|
/*
|
|
/*
|
|
if (url.substr(0,14) == "/media/storage"){
|
|
if (url.substr(0,14) == "/media/storage"){
|
|
title += " (External Storage)";
|
|
title += " (External Storage)";
|