Feature Request: Add --scroll-to-selection or --auto-scroll to --list in --listen mode

3 views
Skip to first unread message

Julio C. Neves

unread,
Feb 3, 2026, 7:19:12 AM (8 days ago) Feb 3
to yad-c...@googlegroups.com, y...@googlecode.com
I am a long-time user of YAD and I've been working on a project that involves real-time data logging using the --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

==================================================
UNIX is very simple, it just needs a
genius to understand its simplicity.
(Dennis Ritchie)

Reply all
Reply to author
Forward
0 new messages