Skip to content

IP: context methods in Lua #433

@idursun

Description

@idursun

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions