Default keyboard shortcuts for Ghostty terminal emulator. Platform-specific differences are noted where applicable.
| Action | Windows/Linux | macOS |
|---|---|---|
| New window | Ctrl+Shift+N | Cmd+N |
| Close window | Alt+F4 | Cmd+Shift+W |
| import { PropsWithChildren, useEffect, useState } from "react"; | |
| import { Container } from "~/components/container"; | |
| import { ArrowLeft, ArrowRight } from "lucide-react"; | |
| import { range } from "~/utils/range"; | |
| const IMAGES = [ | |
| { | |
| id: 1, | |
| url: "https://images.pexels.com/photos/1366919/pexels-photo-1366919.jpeg", | |
| }, |
| name: 'Auto Commit Prettier' | |
| on: | |
| pull_request: | |
| branches: ['main'] | |
| jobs: | |
| auto-commit: | |
| name: 'Auto Commit' | |
| runs-on: ['ubuntu-latest'] |
| # GitHub Action that will run prettier on the whole repo and commit the changes to the PR. | |
| name: Prettier | |
| on: | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| prettier: | |
| runs-on: ubuntu-latest |
| import { useCallback, useEffect, useRef, useState } from "react"; | |
| interface UseUndoHook<T> { | |
| value: T; | |
| onChange: (newValue: T) => void; | |
| undo: () => void; | |
| redo: () => void; | |
| clear: () => void; | |
| canUndo: boolean; | |
| canRedo: boolean; |
Content :
| "use client"; | |
| import { | |
| Dialog, | |
| DialogContent, | |
| DialogTitle, | |
| DialogTrigger | |
| } from "@/components/ui/dialog"; | |
| import useDragDrop from "@/hooks/useDragDrop"; | |
| import { cn, formatBytes } from "@/lib/utils"; |
| import * as React from 'react'; | |
| import { DateTime } from 'luxon'; | |
| import { Calendar as CalendarIcon } from 'lucide-react'; | |
| import { Button } from '@/components/ui/Button'; | |
| import { Calendar } from '@/components/ui/Calendar'; | |
| import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/Popover'; | |
| import { cn } from '@/lib/utils'; | |
| import { SelectSingleEventHandler } from 'react-day-picker'; | |
| import { Label } from '@/components/ui/Label'; |
| // Note: this gist is a part of this OSS project that I'm currently working on: https://github.com/steven-tey/dub | |
| export default async function getTitleFromUrl (url: string) { | |
| const controller = new AbortController(); | |
| const timeoutId = setTimeout(() => controller.abort(), 2000); // timeout if it takes longer than 2 seconds | |
| const title = await fetch(url, { signal: controller.signal }) | |
| .then((res) => { | |
| clearTimeout(timeoutId); | |
| return res.text(); | |
| }) |
Let's say contributor has submitted a pull request to your (author) project (repo). They have made changes on their
branch feature and have proposed to merge this into origin/master, where
origin -> https://github.com/author/repo.gitNow say you would like to make commits to their PR and push those changes. First, add their fork as a remote called