--list and --listen options.I've encountered a challenge regarding the user experience: when new data is sent to YAD via stdin (especially when using --add-on-top), the scrollbar does not follow the new entries once the list exceeds the window height.
I've attempted several workarounds, such as sending @select:0 through the pipe or using hidden columns to trigger selection signals, but these methods are inconsistent across different GTK versions (currently testing on GTK 3.24.51 / YAD 14.2).
The Proposal:
I would like to suggest the implementation of a new flag, for example: --scroll-to-selection or --auto-scroll.
Expected behavior: When this flag is active, YAD should automatically adjust the TreeView scroll position to the most recently updated or selected row. This would be extremely useful for:
Real-time clocks/timers.
Live log monitors (tail -f style).
Dynamic status lists.
Example of current use case that would benefit:
while :; do
date +"%H:%M:%S" || exit
sleep 1
done | yad --list --column="Time" --listen --add-on-top --auto-scroll
Thank you for maintaining such a versatile and powerful tool.
Best regards,
Julio Neves