MCPcopy Create free account
hub / github.com/modem-dev/hunk / resolveEditableFilePath

Function resolveEditableFilePath

src/ui/lib/openInEditor.ts:75–77  ·  view source on GitHub ↗
(filePath: string, basePath = process.cwd())

Source from the content-addressed store, hash-verified

73
74/** Resolve diff paths relative to their source repo instead of the launch cwd. */
75export function resolveEditableFilePath(filePath: string, basePath = process.cwd()) {
76 return resolve(basePath, filePath);
77}
78
79/** Open the selected file in $EDITOR, suspending TUI for terminal editors. */
80export function openSelectedFileInEditor({

Callers 2

openSelectedFileInEditorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected