aboutsummaryrefslogtreecommitdiffstats
path: root/loggedin.js
diff options
context:
space:
mode:
Diffstat (limited to 'loggedin.js')
-rw-r--r--loggedin.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/loggedin.js b/loggedin.js
index f34c169..f015658 100644
--- a/loggedin.js
+++ b/loggedin.js
@@ -948,6 +948,8 @@ function add_file_visuals(fileview) {
open_file = fileview;
openfile(fileview.is_directory);
}],
+
+
];
if (is_in_trash) {
@@ -960,6 +962,18 @@ function add_file_visuals(fileview) {
['Rename', () => { rename_file(fileview.filename); }],
);
if (!fileview.is_directory) {
+ for (let a of actions) {
+ if (fileview.filename.endsWith(a.extension)) {
+ context_list.push(
+ [a.text, () => {
+ read_file_contents(false, (x) => {
+ alert (encodeURIComponent(x));
+ }, get_path(), fileview.filename);
+ }]
+ );
+ }
+ }
+
if (fileview.write_permissions) {
context_list.push(
['Replace', () => { replace_file(false, fileview.filename); }],