MCPcopy Index your code
hub / github.com/nikivdev/go / cursorOpenPath

Method cursorOpenPath

cli/flow/main.go:258–273  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

256}
257
258func (e *windowFocusEntry) cursorOpenPath() string {
259 if e == nil {
260 return ""
261 }
262
263 active := strings.TrimSpace(e.ActiveFile)
264 if active != "" && filepath.IsAbs(active) {
265 return active
266 }
267
268 if trimmed := strings.TrimSpace(e.WorkspacePath); trimmed != "" {
269 return trimmed
270 }
271
272 return ""
273}
274
275var commandCatalog []commandInfo
276

Callers 1

runFocusCursorWindowFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected