MISC: Various small fixes (#574)

* ns.ls filter can include leading slash in filename
* scp from terminal accepts multiple filenames
* terminal displays root / instead of ~ as base
* cd with no args returns to root
This commit is contained in:
Snarling
2023-06-06 08:46:07 -04:00
committed by GitHub
parent ed93fea141
commit 40b89baca1
6 changed files with 77 additions and 50 deletions
+1 -1
View File
@@ -902,7 +902,7 @@ export const ns: InternalAPI<NSFull> = {
];
if (!substring) return allFilenames.sort();
return allFilenames.filter((filename) => filename.includes(substring)).sort();
return allFilenames.filter((filename) => ("/" + filename).includes(substring)).sort();
},
getRecentScripts: () => (): RecentScript[] => {
return recentScripts.map((rs) => ({