treeify icon indicating copy to clipboard operation
treeify copied to clipboard

Add unicode or embolden keys

Open ORESoftware opened this issue 7 years ago • 1 comments

I would like to add unicode to the tree and also use something like chalk.bold() on the tree. For example, I have this:

     └─ npm-link-up (root)
           └─ node_modules
              ├─ @oresoftware/shell
              ├─ json-stdio
              ├─ prepend-transform
              └─ residence

and it would be really awesome to have this:

     └─ npm-link-up (root)
           └─ node_modules
              ├─ @oresoftware/shell  ⏰
              ├─ json-stdio  ⏰
              ├─ prepend-transform ⏰
              └─ residence ⏰

and have bold branches using chalk.bold(), etc, is it possible somehow?

ORESoftware avatar Oct 12 '18 18:10 ORESoftware

Right now if I do this:

node[name] = ' ⏰';

instead of

node[name] = null;

then that works. But I will still looking to get bold characters if possible

ORESoftware avatar Oct 12 '18 18:10 ORESoftware