On Thu, 6 Aug 2015 12:25:40 -0700 (PDT)
john lunzer <lun...@gmail.com> wrote:
> Directives in node headers cause a great deal of visual clutter,
> making it more difficult to navigate expansive trees filled primarily
> with @clean/@file/@edit nodes.
I agree completely, rather than seeing:
@clean /home/tbrown/projects/pyth|
@edit /home/tbrown/misc/maps_and_|
@nosent /home/tbrown/projects/rec|
I'd like to see
𝓒 …/somecode.py
𝓔 …/file.js
𝓝 …/someelse.txt
i.e. icons for the directive and path hiding / compression.
Maybe even the …/ is too much :-)
Ok, I've pushed what I've got. I checked the unit tests and they
seemed unchanged. It seems to work in py3 as well as py2.
# Add Icon to folders, remove forward slashes
RULE ^/(.*)/$
REPLACE \1
ICON Tango/16x16/places/folder_inv.png
# Add icon to path folders / remove @path
RULE ^@path (.*)
REPLACE \1
ICON Tango/16x16/places/folder_path_inv.png
Directives in node headers cause a great deal of visual clutter, making it more difficult to navigate expansive trees filled primarily with @clean/@file/@edit nodes.
RULE ^.{1,1000}([/\\])(.{30})
REPLACE …\1\2
The first capture group with faithfully respect the use of backslashes in windows paths. (I like 30 instead of 20, no need to change that though)
Also, kudos for collapsing leoSettings.leo again before pushing, so that it looks right when opened.