Update Ring Notepad - Tools - Operating System - Terminal (Command Prompt) & Files Manager (Explorer).
@@ -716,6 +716,25 @@ Class RNoteController from WindowsControllerParent
setclickEvent(Method(:pREPLGUI))
}
addaction(oAction)
+ addseparator()
+ subOSTools = addmenu("Operating System Tools")
+ subOSTools {
+ oAction = new qAction(this.win1) {
+ settext("Terminal (Command Prompt)")
+ setShortcut(new QKeySequence("Alt+Shift+T"))
+ setclickEvent(Method(:OSTerminal))
+ }
+ addaction(oAction)
+ addseparator()
+ oAction = new qAction(this.win1) {
+ settext("Files Manager (Explorer)")
+ setShortcut(new QKeySequence("Alt+Shift+F"))
+ setclickEvent(Method(:OSFilesManager))
+ }
+ addaction(oAction)
+ }
+
+
}
subHelp {
@@ -2460,3 +2479,17 @@ Class RNoteController from WindowsControllerParent
if not fexists(cMainFileName) return ok
pSave()
RunWebApplication(cMainFileName)
+
+ func OSTerminal
+ cCommand = ""
+ if isWindows()
+ cCommand = 'cmd /K "cd ' + cStartupFolder + '"'
+ else
+ cCommand = "xterm"
+ ok
+ system(cCommand)
+
+ func OSFilesManager
+ new QDesktopServices {
+ OpenURL(new qURL(this.cStartupFolder))
+ }
