We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d18857e commit 7117ce2Copy full SHA for 7117ce2
lib/Terminal/Widgets/Viewer/DirTree.rakumod
@@ -11,6 +11,10 @@ class Terminal::Widgets::Viewer::DirTree
11
is Terminal::Widgets::Viewer::Tree {
12
has Color::DirColors:D $.dir-colors .= new-from-env;
13
14
+ submethod TWEAK() {
15
+ self.set-sort-by(*.short-name) unless self.sort-by;
16
+ }
17
+
18
#| Displayed content for a given node itself, not including children
19
method node-content($node) {
20
my $color = $.dir-colors.color-for($node.data.path);
0 commit comments