дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-09 03:05:40 +02:00
- Settings › Commit › "Use non-modal commit interface": when off, Local Changes, Shelf and Stash become tabs of the Git tool window and ⌘K opens a Commit dialog; switches live. - Git tool window: Worktrees tab; Show History and Show Git Log for a branch open their own closable tabs instead of changing the Log filters. - Log: toolbar and context menu for a commit's changed files, vertical toolbar, Tags node and hiding for the branches pane, Collapse / Expand Linear Branches as separate actions, and a Version Control › Log page. - Branch popup: collapsible groups, branches grouped by prefix, an options menu behind the gear, incoming / outgoing icons and "Pull into … Using Rebase / Merge"; New Branch on ⌥⌘N outside the editor. - Git main menu regrouped with Uncommitted Changes and Current File submenus; rebase / merge controls enabled only while one is in progress. - Settings: Version Control lists its pages; new options for clearing the initial commit message, showing Update options, confirming dropped commits, revealing created patches, large-file and file-name warnings, the Push dialog after Commit and Push, combined stashes and shelves, and removing applied files from the shelf.
40 рядки
1.5 KiB
TypeScript
40 рядки
1.5 KiB
TypeScript
/** Settings › Version Control › Log: how the Git Log shows references, dates and columns. */
|
||
import { Checkbox, T } from "@/ui";
|
||
import { setLogOptions, useLogOptions, type LogOptions } from "./logOptions";
|
||
import styles from "./LogSettingsPage.module.css";
|
||
import { tx } from "@/platform/i18n";
|
||
|
||
type Flag = { [K in keyof LogOptions]: LogOptions[K] extends boolean ? K : never }[keyof LogOptions];
|
||
|
||
const OPTIONS: { key: Flag; label: string }[] = [
|
||
{ key: "compactRefs", label: "Show only the first reference" },
|
||
{ key: "tagNames", label: "Show tag names" },
|
||
{ key: "commitTimestamp", label: "Show commit time rather than author time" },
|
||
{ key: "refsOnLeft", label: "Show references on the left" },
|
||
];
|
||
|
||
const COLUMNS: { key: Flag; label: string }[] = [
|
||
{ key: "showAuthor", label: "Author" },
|
||
{ key: "showHash", label: "Hash" },
|
||
{ key: "showDate", label: "Date" },
|
||
];
|
||
|
||
export function LogSettingsPage() {
|
||
const o = useLogOptions();
|
||
// Display options only: the log needs no reload.
|
||
const flag = ({ key, label }: { key: Flag; label: string }) => (
|
||
<Checkbox key={key} checked={o[key]} onChange={(v) => setLogOptions({ [key]: v })} label={label} />
|
||
);
|
||
return (
|
||
<div className={styles.page}>
|
||
{OPTIONS.map(flag)}
|
||
<section className={styles.section} aria-label={tx("Visible columns")}>
|
||
<div className={styles.header}>
|
||
<T>Visible columns:</T>
|
||
</div>
|
||
<div className={styles.columns}>{COLUMNS.map(flag)}</div>
|
||
</section>
|
||
</div>
|
||
);
|
||
}
|