Decluttering patterns - font style and color are erased on any change

44 views
Skip to first unread message

Alexey Tikhonov

unread,
Dec 16, 2020, 12:55:44 AM12/16/20
to leo-editor
Hello!

I use decluttering patterns which should change the appearance of some nodes in Leo outline, but they work only when I just open the outline. Collapsing, setting a mark or simply saving the file discards the font colours and styles.

When I saw a question from poseidon (Upgrading Leo from 6.1 to 6.3) I thought that settings from the theme file might override the styles of the decluttered nodes, but even with "@string theme-name = None" the behaviour is reproduced.

I use the decluttering patterns like these:

# Chapters - Diary, Todo, Nodes - should be displayed in bold.
RULE ^(@chapter)\s*
REPLACE-TAIL
WEIGHT DemiBold

# My Mondays under the Diary node
RULE ^(@Mo)\s*
REPLACE-TAIL
FG #D40000

# My Tuesdays
RULE ^(@Tu)\s*
REPLACE-TAIL
FG #FF6600

What should be hidden in the headlines ("@chapter", "@Mo", "@Tu") remains hidden as expected, but the styles are reset on any change. What could I try to fix it?

Alexey

Edward K. Ream

unread,
Dec 16, 2020, 9:14:18 AM12/16/20
to leo-editor
On Tuesday, December 15, 2020 at 11:55:44 PM UTC-6 tickli...@gmail.com wrote:
 
> I use decluttering patterns which should change the appearance of some nodes in Leo outline, but they work only when I just open the outline. Collapsing, setting a mark or simply saving the file discards the font colours and styles.

Thanks for this report. I have just created #1786 for this. This will likely have to wait awhile, unless someone volunteers to give it a look.

Edward
Reply all
Reply to author
Forward
0 new messages