Skip to content

feat: add Ctrl-J newline shortcut in TUI prompt - #9

Merged
liruifengv merged 1 commit into
mainfrom
add-ctrl-j
May 25, 2026
Merged

feat: add Ctrl-J newline shortcut in TUI prompt#9
liruifengv merged 1 commit into
mainfrom
add-ctrl-j

Conversation

@liruifengv

@liruifengv liruifengv commented May 25, 2026

Copy link
Copy Markdown
Collaborator

Related Issue

Resolve #(issue_number)

Description

add Ctrl-J newline shortcut in TUI prompt

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked the related issue, if any.
  • I have added tests that prove my fix is effective or that my feature works.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

@wbxl2000 wbxl2000 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@liruifengv
liruifengv merged commit e503e69 into main May 25, 2026
9 checks passed
@liruifengv
liruifengv deleted the add-ctrl-j branch May 25, 2026 04:30
@github-actions github-actions Bot mentioned this pull request May 26, 2026
wintrover added a commit to wintrover/kimy that referenced this pull request Jun 29, 2026
- kimy wrapper: move hash writes after smoke test (MoonshotAI#1)
- kimy wrapper: add public/ to web hash inputs (MoonshotAI#3)
- kimy wrapper: widen vis hash to include config files (MoonshotAI#4)
- kimy wrapper: move lockfile from /tmp to ~/.kimy/bin (MoonshotAI#5)
- kimy wrapper: use explicit package list for native hash (MoonshotAI#7)
- 01-bundle.mjs: skip vis-asset build when already done (MoonshotAI#2)
- justfile: sync deploy with new wrapper, add deploy-full (MoonshotAI#9,MoonshotAI#10,MoonshotAI#11)
- flake.nix: add unpin guidance to nixpkgs comment (MoonshotAI#12)
asdshuaishuai pushed a commit to d2rabbit/kimi-code that referenced this pull request Jul 21, 2026
…, diff drawer, more rounded corners

Five user-reported issues fixed in this batch:

MoonshotAI#3 Font-size adjustment now actually works
  Root cause: App.svelte's :global(body) used the `font:` shorthand
  with a hardcoded 13px, which won over the global.css
  `body { font-size: var(--ui-font-size) }` rule (same specificity,
  later in cascade). The shorthand resets font-size and the slider had
  no effect.
  Fix: replace shorthand with individual properties
  (font-family/size/line-height), keep font-size: var(--ui-font-size).
  Verified via headless Chromium: default 14px, slider to 20px → 20px,
  back to 14px → 14px.

MoonshotAI#8 Plugin enable/disable ACL error
  Root cause: PluginPanel called Command.sidecar('kimi', ['plugin',
  'disable', id]) which needs shell:allow-execute permission that
  isn't (and shouldn't be) granted in tauri.conf.json.
  Fix: added Rust `toggle_plugin(plugin_id, enabled)` command that
  directly edits ~/.kimi-code/plugins/installed.json (atomic tmp+rename).
  PluginPanel now invoke()s the new command instead of spawning a
  sidecar. No ACL needed.

MoonshotAI#11 Softer UI — bumped radius tokens
  --r-sm 6→8, --r-md 8→10, --r-lg 10→14, --r-xl 12→18.
  Legacy scale bumped in parallel (--radius-xs 6→8, etc.). All
  components using these tokens get the bump automatically.

MoonshotAI#2 Sidebar workspace/session hierarchy
  Workspace headers are now visually bigger (30px tall, 12.5px bold,
  with a top border + subtle bg gradient) and the session rows are
  indented (margin-left: 20px, smaller 11.5px font-weight 400).
  Workspace count badge becomes a pill instead of plain text. The
  hierarchy reads cleanly now.

MoonshotAI#1 Working-directory diff → second-level right drawer
  New DiffDrawer.svelte component (540px, slides in from right with
  spring animation). Clicking a file in the '工作区改动' section of
  RightPanel opens the drawer; inline expansion is gone. Commit-
  history diffs stay inline (only the working-directory section was
  changed per UX request). Esc / ✕ / mask click closes.

MoonshotAI#9 Composer compact moved into the main control row
  '压缩' is now a pill button next to mode/model/thinking instead of
  a separate FAB below. Per UX request: 'mode / model / thinking /
  compact all in one row'.

Verified: svelte-check 0 errors, cargo check 0 warnings.
asdshuaishuai pushed a commit to d2rabbit/kimi-code that referenced this pull request Jul 21, 2026
Reduced svelte-check warnings from 24 → 0 by fixing each category:

  · a11y label associations (9): wrapped inputs in <label>…<input>
    pairs in McpPanel (7) and PluginPanel (2) so screen readers can
    announce field names.

  · dialog tabindex (3): GoalDialog, SwarmDialog, DiffDrawer,
    ProviderModelDialog now carry tabindex='-1' on their role=dialog
    containers so focus management works.

  · click events on non-interactive divs (4): GoalDialog / SwarmDialog
    mask divs get svelte-ignore a11y_click_events_have_key_events
    (they already had onkeydown Esc handlers — the linter can't see
    through role=presentation). TerminalDrawer resize handle switched
    to a div with role=presentation + svelte-ignore.

  · autofocus warnings (2): GoalDialog / SwarmDialog textareas get
    svelte-ignore a11y_autofocus — autofocus is intentional for modal
    input UX.

  · unused CSS selectors (5): removed .fab-row / .fab / .fab:hover
    from Composer (compact moved to ctrl row in MoonshotAI#9), .term-chevron
    from TerminalDrawer (icon was removed), .wd-file.expanded
    .wd-chevron from RightPanel (inline expansion replaced by
    DiffDrawer in MoonshotAI#1).

  · ToolCard reactive capture (1): the initial-value warning on
    expanded = $state(tool.status === 'running') fixed by
    initializing to false and letting the $effect do the work.

  · ProviderModelDialog unused prop (1): removed the _mode prop
    destructuring entirely — the dialog is always unified, the prop
    type stays for backward compat but isn't read.

Result: svelte-check reports 0 errors, 0 warnings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants