Skip to content

Remove src/editor/keybindings.rs — dead code at a path this repo does not have - #469

Merged
GoKubar merged 1 commit into
mainfrom
agent/kabir-claude/remove-stray-keybindings
Sep 14, 2026
Merged

GoKubar merged 1 commit into
mainfrom
agent/kabir-claude/remove-stray-keybindings

Conversation

@GoKubar

@GoKubar GoKubar commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

c0b666e2 added 496 lines of Rust at src/editor/keybindings.rs, committed
to main directly from the GitHub web editor. It cannot work, for three
independent reasons:

  • Nothing compiles it. This repository has no root src/; every crate
    lives under crates/ and is listed in the workspace. A file at that path is
    not in any crate, so cargo build never sees it. It is not a broken build;
    it is not a build at all.
  • The editor is not written in Rust. Keybindings, key dispatch and the Tab
    precedence chain live in Swift, in apps/mac/Sources/FlashTeXMac/ —
    EditorKeyHandling.swift, Completion.swift (CompletingTextView.keyDown)
    and VimMode.swift. The Rust crates are the typesetting engine and have no
    editor, no key handling and no concept of a modifier.
  • The feature it implements already shipped. Its own doc comment names the
    goal: "Alt+Shift+Down duplicates the current line downward, which is
    essential when working through algebra." That is mac editor: ⌥⇧↓ / ⌥⇧↑ copy the line, the way Overleaf does #419, merged earlier today
    as EditorKeyHandling.duplicateLinesEdit plus a keyDown hook, with ⌥⇧↓
    and ⌥⇧↑, multi-line selections, the unterminated last line, and seven tests.

So this is well-aimed work — it is answering a real request the owner made —
that has no route to being used. Removing it rather than leaving it for the
next person to find, believe, and try to wire up.

@AarushRaheja the feature you were after is already in: ⌥⇧↓ and ⌥⇧↑, caret
staying on the copy so the key repeats. If you want to build on it, the file
is apps/mac/Sources/FlashTeXMac/EditorKeyHandling.swift. Two things that
would help a lot: open a pull request rather than committing to main from
the web editor — each direct push cancels the CI run on the tip — and check
docs/INDEX.md for where a given concern actually lives before writing
against a path.

No code or test changes; this only deletes an unreferenced file.

… not have

`c0b666e2` added 496 lines of Rust at `src/editor/keybindings.rs`, committed
to `main` directly from the GitHub web editor. It cannot work, for three
independent reasons:

- **Nothing compiles it.** This repository has no root `src/`; every crate
  lives under `crates/` and is listed in the workspace. A file at that path is
  not in any crate, so `cargo build` never sees it. It is not a broken build;
  it is not a build at all.
- **The editor is not written in Rust.** Keybindings, key dispatch and the Tab
  precedence chain live in Swift, in `apps/mac/Sources/FlashTeXMac/` —
  `EditorKeyHandling.swift`, `Completion.swift` (`CompletingTextView.keyDown`)
  and `VimMode.swift`. The Rust crates are the typesetting engine and have no
  editor, no key handling and no concept of a modifier.
- **The feature it implements already shipped.** Its own doc comment names the
  goal: "Alt+Shift+Down duplicates the current line downward, which is
  essential when working through algebra." That is #419, merged earlier today
  as `EditorKeyHandling.duplicateLinesEdit` plus a `keyDown` hook, with ⌥⇧↓
  and ⌥⇧↑, multi-line selections, the unterminated last line, and seven tests.

So this is well-aimed work — it is answering a real request the owner made —
that has no route to being used. Removing it rather than leaving it for the
next person to find, believe, and try to wire up.

@AarushRaheja the feature you were after is already in: ⌥⇧↓ and ⌥⇧↑, caret
staying on the copy so the key repeats. If you want to build on it, the file
is `apps/mac/Sources/FlashTeXMac/EditorKeyHandling.swift`. Two things that
would help a lot: open a pull request rather than committing to `main` from
the web editor — each direct push cancels the CI run on the tip — and check
`docs/INDEX.md` for where a given concern actually lives before writing
against a path.

No code or test changes; this only deletes an unreferenced file.

Implementation-Agent: Claude Opus 5 (Commander session, linux-primary)
Commit-Executor: Claude Opus 5 (direct git, observed Cursor usage limit)

Claude-Session: https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu

Co-authored-by: Claude Opus 5 <[email protected]>
@GoKubar
GoKubar merged commit 6c76ef0 into main Sep 14, 2026
21 checks passed
@GoKubar
GoKubar deleted the agent/kabir-claude/remove-stray-keybindings branch September 16, 2026 04:17
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.

1 participant