spacehub

surshar / claude-code

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.

Built by Anthropic · github.com/anthropics

claude-code / mods / diff / hooks / views / sections / ask-key-of / ask-key-of.ts
10 lines · 328 BRaw
1import Layout from '../../layout'
2
3/**
4 * A file's ask Button address: the path made printable, under `ask:`, so
5 * each file's Button in the body has its own.
6 *
7 * @param path the file's path as git or the transcript gave it
8 * @returns the key
9 */
10export const askKeyOf = (path: string) => `ask:${Layout.sanitizeName(path)}`