Hey all, I created the following command shortcut:
Code: Select all
CommandLine {
prefixes = "vsc";
action = function(prefix, filename)
win.ShellExecute(nil, "VSCode", filename, nil, panel.GetPanelDirectory(nil, 1).Name)
end;
}
which will open the argument in Visual Studio Code. The problem I have is that this command always inserts a newline character in Far, messing up the interface. It only happens with this particular shell exectue handler, if you replace it by
Code: Select all
win.ShellExecute(nil, "open", "notepad", filename, panel.GetPanelDirectory(nil, 1).Name)
it works without problem. Does anyone know what is causing this and how to avoid it?