MCPcopy Create free account
hub / github.com/cursorless-dev/cursorless / splitKey

Method splitKey

src/core/HatTokenMap.ts:57–65  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

55 }
56
57 static splitKey(key: string) {
58 let [hatStyle, character] = key.split(".");
59 if (character.length === 0) {
60 // If the character is `.` then it will appear as a zero length string
61 // due to the way the split on `.` works
62 character = ".";
63 }
64 return { hatStyle: hatStyle as HatStyleName, character };
65 }
66
67 private async getActiveMap() {
68 // NB: We need to take a snapshot of the hat map before we make any

Callers 2

extractTargetedMarksFunction · 0.80
checkMarksFunction · 0.80

Calls

no outgoing calls

Tested by 1

checkMarksFunction · 0.64