File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import {
2222import { useTheme } from "~/hooks/useTheme" ;
2323import { isElectron } from "~/env" ;
2424import { projectQueryKeys , projectReadFileQueryOptions } from "~/lib/projectReactQuery" ;
25- import { cn , isMacPlatform } from "~/lib/utils" ;
25+ import { cn } from "~/lib/utils" ;
2626import { isMarkdownPreviewFilePath } from "~/markdownPreview" ;
2727import { readNativeApi } from "~/nativeApi" ;
2828import { type CodeContextSelection , CodeMirrorViewer } from "./CodeMirrorViewer" ;
@@ -600,7 +600,7 @@ export default function CodeViewerPanel() {
600600 [ setPendingContext ] ,
601601 ) ;
602602
603- const modKey = isMacPlatform ( navigator . platform ) ? "\u2318" : "Ctrl+" ;
603+
604604
605605 return (
606606 < div className = "flex h-full w-full flex-col bg-background" >
@@ -618,9 +618,6 @@ export default function CodeViewerPanel() {
618618 onCloseAll = { onCloseAll }
619619 />
620620 < div className = "flex shrink-0 items-center gap-2 [-webkit-app-region:no-drag]" >
621- < span className = "hidden text-[10px] text-muted-foreground/50 sm:inline" >
622- Select code + { modKey } L to add context
623- </ span >
624621 < Button
625622 size = "icon-xs"
626623 variant = "ghost"
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import { useCallback, useEffect } from "react";
55import { useAppSettings } from "~/appSettings" ;
66import { useCodeViewerStore } from "~/codeViewerStore" ;
77import { useTheme } from "~/hooks/useTheme" ;
8- import { isMacPlatform } from "~/lib/utils" ;
98import type { CodeContextSelection } from "../CodeMirrorViewer" ;
109import { CodeViewerFileContent , CodeViewerTabStrip } from "../CodeViewerPanel" ;
1110import { Button } from "../ui/button" ;
@@ -85,7 +84,7 @@ export function FileViewShell(props: { initialCwd: string; initialPath: string |
8584 [ setPendingContext ] ,
8685 ) ;
8786
88- const modKey = isMacPlatform ( navigator . platform ) ? "\u2318" : "Ctrl+" ;
87+
8988
9089 return (
9190 < div className = "flex h-full w-full flex-col" >
@@ -99,9 +98,6 @@ export function FileViewShell(props: { initialCwd: string; initialPath: string |
9998 onCloseAll = { onCloseAll }
10099 />
101100 < div className = "flex shrink-0 items-center gap-2 [-webkit-app-region:no-drag]" >
102- < span className = "hidden text-[10px] text-muted-foreground/50 sm:inline" >
103- Select code + { modKey } L to add context
104- </ span >
105101 < Button
106102 size = "icon-xs"
107103 variant = "ghost"
You can’t perform that action at this time.
0 commit comments