irssi/themes
kofany ad0d88b123 Implement automatic nick column formatting 'on-the-fly'
Major improvement: No theme modification required!

Features:
- When nick_column_enabled=OFF: Normal theme behavior
- When nick_column_enabled=ON: Automatic formatting applied

Changes:
1. Enhanced expandos to handle OFF state:
   - expando_nickalign() returns '' when disabled
   - expando_nicktrunc() returns original nick when disabled

2. Added automatic format modification in format_get_text_theme_charargs():
   - Detects message formats (own_msg, pubmsg, etc.)
   - Automatically adds $nickalign prefix
   - Replaces {ownnick $0} with {ownnick $nicktrunc}
   - Replaces {pubnick $0} with {pubnick $nicktrunc}
   - Replaces {menick $0} with {menick $nicktrunc}

3. Restored original theme format:
   - own_msg = '{ownmsgnick $2 {ownnick $0}}$1'
   - No manual $nickalign/$nicktrunc needed

Result: Clean theme compatibility + automatic nick column when enabled

Timestamp: 2025-01-25 00:20
2025-08-25 00:32:00 +02:00
..
colorless.theme Make colorless.theme de-color vertical window borders 2020-09-08 17:59:24 +07:00
default.theme Implement automatic nick column formatting 'on-the-fly' 2025-08-25 00:32:00 +02:00
meson.build meson build support 2019-07-10 09:25:26 +02:00