Skip to content

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

TypeScript
358 B
Raw Blame
import type { BodyEntry } from '../../entries'
import Layout from '../../layout'

/**
 * A file row's Button address: the path made printable, under `file:`.
 *
 * @param entry the file, its path as git or the transcript gave it
 * @returns the key
 */
export const fileKeyOf = (entry: Pick<BodyEntry, 'path'>) =>
  `file:${Layout.sanitizeName(entry.path)}`