We have revisions.current() in Lua bridge that returns the change id of the currently selected revisions. We are not on par with supporting all the placeholders that are available in the legacy custom commands.
I would like to make them available through context variable.
jjui.context.change_id()
jjui.context.commit_id()
jjui.context.file()
jjui.context.checked_files()
jjui.context.checked_change_ids()
jjui.context.checked_commit_ids()
jjui.context.operation_id()
I like this API more than providing access to them through the UI element name(e.g. revisions.current()) If we are to follow the same convention then file should be placed under details.file() which might suggest that it is always available even if the details is not showing.
We have
revisions.current()in Lua bridge that returns the change id of the currently selected revisions. We are not on par with supporting all the placeholders that are available in the legacy custom commands.I would like to make them available through
contextvariable.jjui.context.change_id()jjui.context.commit_id()jjui.context.file()jjui.context.checked_files()jjui.context.checked_change_ids()jjui.context.checked_commit_ids()jjui.context.operation_id()I like this API more than providing access to them through the UI element name(e.g.
revisions.current()) If we are to follow the same convention thenfileshould be placed underdetails.file()which might suggest that it is always available even if thedetailsis not showing.