mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-19 18:40:57 -07:00
feat: terse transformations of image paths in text buffer (#4924)
Co-authored-by: Jacob Richman <jacob314@gmail.com> Co-authored-by: owenofbrien <86964623+owenofbrien@users.noreply.github.com>
This commit is contained in:
@@ -59,15 +59,17 @@ const createMockTextBufferState = (
|
||||
selectionAnchor: null,
|
||||
viewportWidth: 80,
|
||||
viewportHeight: 24,
|
||||
transformationsByLine: lines.map(() => []),
|
||||
visualLayout: {
|
||||
visualLines: lines,
|
||||
logicalToVisualMap: lines.map((_, i) => [[i, 0]]),
|
||||
visualToLogicalMap: lines.map((_, i) => [i, 0]),
|
||||
transformedToLogicalMaps: lines.map(() => []),
|
||||
visualToTransformedMap: [],
|
||||
},
|
||||
...partial,
|
||||
};
|
||||
};
|
||||
|
||||
// Test constants
|
||||
const TEST_SEQUENCES = {
|
||||
ESCAPE: createKey({ sequence: '\u001b', name: 'escape' }),
|
||||
@@ -174,6 +176,10 @@ describe('useVim hook', () => {
|
||||
cursorState.pos = [row, col - 1];
|
||||
}
|
||||
}),
|
||||
// Additional properties for transformations
|
||||
transformedToLogicalMaps: lines.map(() => []),
|
||||
visualToTransformedMap: [],
|
||||
transformationsByLine: lines.map(() => []),
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user