Repository navigation
Remove src/editor/keybindings.rs — dead code at a path this repo does not have - #469
Merged
Merged
Conversation
… 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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
c0b666e2added 496 lines of Rust atsrc/editor/keybindings.rs, committedto
maindirectly from the GitHub web editor. It cannot work, for threeindependent reasons:
src/; every cratelives under
crates/and is listed in the workspace. A file at that path isnot in any crate, so
cargo buildnever sees it. It is not a broken build;it is not a build at all.
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 noeditor, no key handling and no concept of a modifier.
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.duplicateLinesEditplus akeyDownhook, 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 thatwould help a lot: open a pull request rather than committing to
mainfromthe web editor — each direct push cancels the CI run on the tip — and check
docs/INDEX.mdfor where a given concern actually lives before writingagainst a path.
No code or test changes; this only deletes an unreferenced file.