chandler icon indicating copy to clipboard operation
chandler copied to clipboard

Customize display names based on condition

Open phorcys420 opened this issue 1 year ago • 4 comments

You can already customise display names using a string of text, but I think you should be able to change the display name format based on a condition.

Now, I'm thinking you could link a display name to a user template. For example, for close friends & family, I usually want their format to be %first_name% %last_name%, whereas for online friends, I'd usually go with %nickname% (%first_name% %last_name%)

phorcys420 avatar Mar 27 '23 19:03 phorcys420

Would it be an idea to make this kind of templating possible connected to a group_type?

Customize group -> naming prefix is always standard unless user specifies a different way. This way you can change the template for Family or Roommate etc.

Martijn-Bos avatar May 05 '23 13:05 Martijn-Bos

Would it be an idea to make this kind of templating possible connected to a group_type?

yes, that could be nice too !

actually, maybe user templates could be conditional ? something like "use template X if user is in group X", or actually, all share the same template, but "display this field if user is in group Y".

phorcys420 avatar May 05 '23 13:05 phorcys420

The idea of a 'If this then that' is quite powerful. If [user] has [pet_type(cat)] then [notify] - [email] - International cat day

I would suggest this type of system as it can be extended in the future but start simple implementation. Starting with the ability to alter contact name visualization depending on certain parameters(ex. is in group Y).

It can later on be very easily extended with extra functionality. It starts with a If [dropdown] - adds further dropdowns and texts with options based on selected values.

Atleast that might be advisable. It can be that this is not in line with what Chandler should be doing. It could lead to unreasonable computing as you can build system wide rules. it would then be better to stick to single implementation.

Martijn-Bos avatar May 05 '23 13:05 Martijn-Bos

I really like the idea of having name formats, as well as templates per group type, or perhaps per label, because not everyone will be part of a group.

djaiss avatar May 05 '23 18:05 djaiss