Skip to content

feat(#347): add editor mode with configurable ctrl-o keybind - #488

Merged
boxdot merged 1 commit into
boxdot:mainfrom
Koleok:koleok/347-editor-mode
Mar 8, 2026
Merged

feat(#347): add editor mode with configurable ctrl-o keybind#488
boxdot merged 1 commit into
boxdot:mainfrom
Koleok:koleok/347-editor-mode

Conversation

@Koleok

@Koleok Koleok commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

Description

Adds ctrl-o to open the system $EDITOR while the input is focused, composing the message externally and populating the input box on save. The binding is registered as the open_editor command in the normal mode keybinding table, user-overridable via gurk.toml like any other binding. Editor resolution ($VISUAL$EDITOR → fallback list), temp file lifecycle, and subprocess management are handled by the edit crate.

The crossterm EventStream task is aborted before the terminal is released and respawned after the TUI resumes, giving the editor exclusive access to stdin for the full session and keeping the terminal fd race-free throughout.

@Koleok
Koleok force-pushed the koleok/347-editor-mode branch from ce316e9 to 2da8dc0 Compare March 4, 2026 14:18
@Koleok
Koleok force-pushed the koleok/347-editor-mode branch from 5053bfc to ad32823 Compare March 7, 2026 21:33
@Koleok

Koleok commented Mar 7, 2026

Copy link
Copy Markdown
Contributor Author

Keeping it rebased :) I've been using this in daily driver mode for about a week, smooth sailing so far.

@boxdot

boxdot commented Mar 8, 2026

Copy link
Copy Markdown
Owner

Thank you for implementing and testing this advanced feature!

@boxdot
boxdot merged commit 8467faf into boxdot:main Mar 8, 2026
9 checks passed
@Koleok
Koleok deleted the koleok/347-editor-mode branch April 21, 2026 17:13
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