MCPcopy Create free account
hub / github.com/chhoumann/quickadd / getSplitDirection

Function getSplitDirection

src/engine/helpers/openFileOptions.ts:5–12  ·  view source on GitHub ↗
(
	direction: IOpenFileCommand["direction"],
	fallback: "vertical" | undefined = undefined
)

Source from the content-addressed store, hash-verified

3import { NewTabDirection } from "../../types/newTabDirection";
4
5function getSplitDirection(
6 direction: IOpenFileCommand["direction"],
7 fallback: "vertical" | undefined = undefined
8): "horizontal" | "vertical" | undefined {
9 if (direction === NewTabDirection.horizontal) return "horizontal";
10 if (direction === NewTabDirection.vertical) return "vertical";
11 return fallback;
12}
13
14function createOpenFileOptions(
15 location: NonNullable<OpenFileOptions["location"]>,

Callers 1

buildOpenFileOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected