added autocomplete for scp

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

View File

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