idea plugin 0.0.1-SNAPSHOT: basic coloring and editing aids
This commit is contained in:
1 parent
9c342c5c72
commit
06e8e1579d
46 files changed
+4192
-6
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user