feat: Add line manipulation shortcuts (Delete Line, Move Line Up/Down)#29
Merged
OlaProeis merged 2 commits intoOlaProeis:masterfrom Jan 19, 2026
Merged
Conversation
- Add Cmd/Ctrl+D to delete current line - Add Alt+Up/Down to move current line up/down - Fix line operations not working in Split mode (cursor position was being overwritten by rendered pane) - Fix tooltips showing "Ctrl+E" instead of "Cmd+E" on macOS - Add keyboard shortcut documentation - Add i18n translations for new shortcut settings
Contributor
Author
|
The delete line and move line are for me the killer features that allow me to be more productive – my IDE has those and it's always annoyed me that my markdown editor did not. Now it does. Now Ferrite is better than my old markdown editor and my IDE for editing MD files. |
Owner
|
Tested this locally and it works great! The Split mode fix is exactly what was needed - Move Line was broken there before and now it works perfectly. Delete Line is a nice addition too, can't believe I didn't have that already. Thanks for the solid work @abcd-ca, merging this 🎉 |
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.
Summary
Details
Line Manipulation
New keyboard shortcuts for common editing operations:
Split Mode Fix
In Split mode, the rendered pane was overwriting
tab.cursor_positionafter the raw editor set it. This caused line operations (delete line, move line) to operate on the wrong line when editing in the raw pane. Fixed by not updating cursor_position from the rendered pane in Split mode.macOS Tooltip Fix
View mode tooltips were hardcoded to show "Ctrl+E" on all platforms. Now uses
modifier_symbol()helper to show "Cmd+E" on macOS.Test plan
cargo buildcompiles successfully