entryTitle

tcmts.store.entryTitle · #pfasixlz · term · runs anywhere

What a history entry is called: its message's first line, or else the label of the command that made it.

export const entryTitle = (c: { command: string; message?: string }) =>
  c.message?.split("\n")[0] || c.command

used by