19 lines · 663 B · TypeScript
RawDownload
import { EDITORS, type EditorId } from "@t3tools/contracts"; import { getLocalFileManagerName } from "~/lib/utils"; const editorLabels = new Map<EditorId, string>(EDITORS.map((editor) => [editor.id, editor.label])); export function editorLabelForPlatform(editorId: EditorId, platform: string): string {  if (editorId === "file-manager") {    return getLocalFileManagerName(platform);  }   return editorLabels.get(editorId) ?? "Editor";} export function openInEditorMenuLabel(editorId: EditorId | null): string {  return editorId === null || editorId === "file-manager"    ? "Open in editor"    : `Open in ${editorLabels.get(editorId) ?? "Editor"}`;}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t