ide: recent menu hidden features improvements. use ctrl+shift to open without parsing...
authorRejean Loyer <redj@ecere.com>
Sat, 2 Jul 2016 01:52:28 +0000 (21:52 -0400)
committerJerome St-Louis <jerome@ecere.com>
Thu, 28 Jul 2016 22:23:32 +0000 (18:23 -0400)
ide/src/ide.ec

index 4845e0d..8600b5f 100644 (file)
@@ -759,7 +759,7 @@ class IDEWorkSpace : Window
                char extension[MAX_EXTENSION] = "";
                GetExtension(file, extension);
                isProjectFile = (!strcmpi(extension, "epj") || !strcmpi(extension, "ews"));
-               if(mods.ctrl)
+               if(mods.ctrl && !mods.shift)
                {
                   char * command = PrintString("ecere-ide ", isProjectFile ? "-t " : "", file);
                   Execute(command);
@@ -784,14 +784,14 @@ class IDEWorkSpace : Window
          {
             if(id == selection.id)
             {
-               if(mods.ctrl)
+               if(mods.ctrl && !mods.shift)
                {
                   char * command = PrintString("ecere-ide ", file);
                   Execute(command);
                   delete command;
                }
                else
-                  OpenFile(file, false, true, null, no, normal, mods.ctrl && mods.shift);
+                  OpenFile(file, false, true, (mods.ctrl && mods.shift) ? "txt" : null, no, normal, mods.ctrl && mods.shift);
                break;
             }
             id++;