MCPcopy Index your code
hub / github.com/codeaashu/claude-code / useSelectionBgColor

Function useSelectionBgColor

src/hooks/useCopyOnSelect.ts:93–98  ·  view source on GitHub ↗
(selection: Selection)

Source from the content-addressed store, hash-verified

91 * so the selection color tracks the theme live.
92 */
93export function useSelectionBgColor(selection: Selection): void {
94 const [themeName] = useTheme()
95 useEffect(() => {
96 selection.setSelectionBgColor(getTheme(themeName).selectionBg)
97 }, [selection, themeName])
98}
99

Callers 1

ScrollKeybindingHandlerFunction · 0.85

Calls 3

getThemeFunction · 0.90
setSelectionBgColorMethod · 0.80
useThemeFunction · 0.50

Tested by

no test coverage detected