idea plugin 0.0.1-SNAPSHOT: basic coloring and editing aids

This commit is contained in:
sergeych committed 2025-11-30 23:57:04 +01:00
1 parent 9c342c5c72
commit 06e8e1579d
46 files changed
+4192 -6

No files matched your search

+20 -6
View File
@@ -1,4 +1,4 @@
#!/bin/env lyng
//#!/bin/env lyng
import lyng.io.fs
import lyng.stdlib
@@ -6,9 +6,23 @@ import lyng.stdlib
val files = Path("../..").list().toList()
val longestNameLength = files.maxOf { it.name.length }
val format = "%-"+(longestNameLength+1) +"s %d"
for( f in files ) {
var name = f.name
if( f.isDirectory() ) name += "/"
println( format(name, f.size()) )
/*
The comment for our test1.
There are _more_ data
*/
fun test21() {
21
}
val format = "%-"+(longestNameLength+1) +"s %d"
for( f in files )
{
var name = f.name
if( f.isDirectory() )
name += "/"
println( format(name, f.size()) )
}
test21()