nano: Add File Manager option to edit selected file

Change-Id: Ie7d940545569e6de976d2a51666b692f3fc23798
diff --git a/gui/action.cpp b/gui/action.cpp
index 4783937..238327f 100755
--- a/gui/action.cpp
+++ b/gui/action.cpp
@@ -242,6 +242,9 @@
 		ADD_ACTION(uninstalltwrpsystemapp);
 		ADD_ACTION(repackimage);
 		ADD_ACTION(fixabrecoverybootloop);
+#ifndef TW_EXCLUDE_NANO
+		ADD_ACTION(editfile);
+#endif
 	}
 
 	// First, get the action
@@ -2272,3 +2275,15 @@
 		gui_changePage("terminalcommand");
 	return 0;
 }
+#ifndef TW_EXCLUDE_NANO
+int GUIAction::editfile(std::string arg) {
+	if (term != NULL) {
+		for (uint8_t iter = 0; iter < arg.size(); iter++)
+			term->NotifyCharInput(arg.at(iter));
+		term->NotifyCharInput(13);
+	}
+	else
+		LOGINFO("Unable to switch to Terminal\n");
+	return 0;
+}
+#endif