[vim/vim] Add tabpanel_getinfo() and tabpanel_scroll() (PR #20056)

2 views
Skip to first unread message

mattn

unread,
7:25 AM (5 hours ago) 7:25 AM
to vim/vim, Subscribed

Expose the tabpanel scroll state to Vim script.

  • `tabpanel_getinfo()` returns a dict with `align`, `columns`, `scroll`, `scrollbar`, `offset`, `total`, `max_offset`.
  • `tabpanel_scroll({n})` scrolls by `n` rows (positive down, negative up). With `{absolute: v:true}` the argument becomes the new offset instead of a delta. The offset is clamped to the valid range; returns true when it actually changes.

You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/20056

Commit Summary

  • aaff1a3 Add tabpanel_getinfo() and tabpanel_scroll()

File Changes

(5 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20056@github.com>

Reply all
Reply to author
Forward
0 new messages