Explorar o código

CDB Paste file paths from external/generic clipboards

We can now use ctrl+v on a file path cell in cdb to paste a generic text from external clipboards.
Use this with pr/112.
Jed974 %!s(int64=4) %!d(string=hai) anos
pai
achega
f0503df1cd
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      hide/comp/cdb/Editor.hx

+ 2 - 0
hide/comp/cdb/Editor.hx

@@ -270,6 +270,8 @@ class Editor extends Component {
 						if( ~/^[A-Za-z0-9_]+$/.match(text) ) value = text;
 					case TString:
 						value = text;
+					case TFile:
+						value = ide.makeRelative(text);
 					case TInt:
 						text = text.split(",").join("").split(" ").join("");
 						value = Std.parseInt(text);