added autocomplete for scp

This commit is contained in:
Olivier Gagnon 2021-10-11 22:35:00 -04:00
parent 65ee49fb92
commit b1e37acaa1

@ -18,6 +18,7 @@ const commands = [
"clear",
"cls",
"connect",
"cp",
"download",
"expr",
"free",
@ -239,6 +240,13 @@ export function determineAllPossibilitiesForTabCompletion(
return allPos;
}
if (isCommand("cp") && index === 0) {
addAllScripts();
addAllTextFiles();
addAllDirectories();
return allPos;
}
if (isCommand("connect")) {
// All network connections
for (let i = 0; i < currServ.serversOnNetwork.length; ++i) {