Файли
openidea/src/features/vcs/common.module.css
T
l0ng-ai 81e0e8e2d0 feat: Align interactions with IntelliJ IDEA (#22)
* feat(nav): Complete file paths and flag unresolved web file references

Path completion in href/src/url()/@import, Markdown links and path-like strings, folders first. HTML and CSS paths that name no file get a 'Cannot resolve file' warning. File references resolve in the backend like IDEA's: relative to the file, /-rooted against the project and resource roots.

* feat: Align editor, workbench, run/debug and VCS interactions with IntelliJ IDEA

Keymap
- Let AltGr characters through instead of firing Ctrl+Alt shortcuts (Windows/Linux)
- Double Shift: strict press/release timing, ignored while typing or after Shift+click
- Chords wait 2s and swallow an unmatched second stroke
- Drop CodeMirror defaults that clash with IDEA keys; ⌘Enter is Split Line, add
  Scroll to Center and Code Block Start/End
- Add missing IDEA defaults (⌃J, ⌘Y, ⇧⌘C, ⌥⌘Y, ⇧⌘M, F9 Resume, ⌘R Rerun, …)

Editor
- Tab inserts at the caret; smart Backspace to the proper indent; Enter continues
  a `//` comment; per-language line comment placement
- Back/Forward records navigations only; ⌘F searches the selected text
- In-place rename; ⌃Space inserts a sole candidate; commit characters only for a
  focused lookup; usage highlighting survives edits; ⌥Enter offers fixes from the
  caret line; ⌘-hover shows declaration info only for navigable targets

Workbench
- Tool windows: primary and split area per side, six Move To anchors, layout migration
- ⌘W closes tool window content; Shift+Esc from the editor; closing a tab
  activates the left neighbour; preview tab and tab limit follow IDEA defaults
- Switcher lists open editors and tool windows; Recent Files Delete removes items
- Search Everywhere tab/scope behaviour; popups close when the window deactivates
- Project view: Copy/Move dialogs on paste, skippable usage search on delete,
  new-file input cancels on blur; Settings search Esc clears the filter
- Status bar breadcrumbs open a children popup; notification timeouts

Run / Debug / Build / Terminal
- Run asks to stop a running single-instance config; Rerun restarts silently;
  "Allow multiple instances" option
- Run chooser: Enter runs, Shift debugs, F4/Delete/digits
- Type into the console for stdin; Stop covers debug sessions
- Log (Shift+click) and temporary (Alt+click) breakpoints; independent suspend/log
  options; Evaluate prefill and history; changed-value highlighting; expandable hints
- Build window opens on failure and jumps to the first error
- Terminal confirms closing a busy tab and lets IDE shortcuts through

VCS
- Correct ours/theirs labels during rebase, cherry-pick and revert
- Smart/Force Checkout; remote branch checkout updates the local branch
- Partial commit by changed block; inline before-commit check results
- F7 continues into the next file; Rollback Lines; Commit and Push; Amend message swap
- Branch delete with Restore; force push confirmation; editable push target;
  update summary with the incoming commits

* chore: Regenerate bindings
2026-10-25 09:34:02 +08:00

223 рядки
3.9 KiB
CSS

.form {
display: flex;
flex-direction: column;
gap: 8px;
padding: 14px;
}
.fieldLabel {
color: var(--fg-secondary);
font-size: var(--fs-small);
}
.error {
color: var(--danger);
font-size: var(--fs-small);
}
.hint {
color: var(--fg-subtle);
font-size: var(--fs-small);
line-height: 1.5;
}
.section {
padding: 10px 14px 4px;
color: var(--fg-subtle);
font-size: var(--fs-small);
}
.radioRow {
display: flex;
align-items: flex-start;
gap: 8px;
padding: 4px 0;
color: var(--fg);
cursor: default;
}
.radioRow input {
margin: 2px 0 0;
accent-color: var(--accent);
}
.radioText {
display: flex;
flex-direction: column;
gap: 2px;
}
.fileList {
max-height: 260px;
overflow: auto;
margin: 0 14px;
border: 1px solid var(--border);
border-radius: var(--radius-small);
}
.fileRow {
height: var(--h-row);
display: flex;
align-items: center;
gap: 6px;
padding: 0 8px;
white-space: nowrap;
overflow: hidden;
}
.fileRow:hover {
background: var(--bg-hover);
}
.fileName {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
}
.fileDir {
color: var(--fg-subtle);
font-size: var(--fs-small);
overflow: hidden;
text-overflow: ellipsis;
}
.grow {
flex: 1;
}
.mono {
font-family: var(--font-mono);
font-size: var(--fs-small);
}
.commitRow {
height: var(--h-row);
display: flex;
align-items: center;
gap: 8px;
padding: 0 8px;
white-space: nowrap;
}
.commitHash {
color: var(--fg-subtle);
font-family: var(--font-mono);
font-size: var(--fs-small);
}
.commitSubject {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
color: var(--fg);
}
.commitMeta {
color: var(--fg-subtle);
font-size: var(--fs-small);
}
.empty {
padding: 12px;
color: var(--fg-faint);
text-align: center;
}
.boxList {
flex: 1;
border: 1px solid var(--border);
border-radius: var(--radius-small);
}
.cloneDirRow {
display: flex;
align-items: center;
gap: 6px;
}
.cloneDirInput {
flex: 1;
min-width: 0;
}
.cloneProgress {
display: flex;
flex-direction: column;
gap: 6px;
padding-top: 4px;
min-width: 0;
}
.cloneProgress > span {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.todoList {
margin: 8px 0 0;
padding-left: 18px;
white-space: normal;
}
.linkButton {
padding: 0;
border: none;
background: none;
color: var(--link);
font: inherit;
cursor: pointer;
}
.linkButton:hover {
color: var(--link-hover);
text-decoration: underline;
}
/* Operation in progress (rebase, merge…) above the Commit tool window's changes. */
.banner {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 2px 10px;
min-height: 28px;
padding: 4px 10px;
border-bottom: 1px solid var(--border);
background: var(--bg-banner-warning, color-mix(in srgb, var(--warning) 12%, transparent));
color: var(--fg);
font-size: var(--fs-small);
}
.bannerText {
flex: 1 0 auto;
max-width: calc(100% - 24px);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.linkButton:disabled {
color: var(--fg-faint);
cursor: default;
text-decoration: none;
}
.textarea {
resize: vertical;
min-height: 48px;
padding: 4px 8px;
border: 1px solid var(--border-input, var(--border));
border-radius: var(--radius-small);
background: var(--bg-input);
color: var(--fg);
font: inherit;
}
.textarea:focus {
outline: none;
border-color: var(--focus-ring);
}
/* Interactive rebase dialog. */
.rebaseList {
max-height: 360px;
overflow: auto;
margin: 0 14px;
border: 1px solid var(--border);
border-radius: var(--radius-small);
}
.rebaseRow {
min-height: var(--h-row);
display: flex;
align-items: center;
gap: 8px;
padding: 2px 6px;
white-space: nowrap;
}
.rebaseRow:hover {
background: var(--bg-hover);
}
.rebaseAction {
width: 120px;
flex: none;
}
.rebaseMessage {
flex: 1;
min-width: 0;
min-height: 0;
}
/* Push dialog: the editable target branch. */
.targetInput {
width: 220px;
margin-left: 6px;
}