-
Notifications
You must be signed in to change notification settings - Fork 689
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
write_scrollback_file:open
to use $EDITOR
#2504
Comments
write_scrollback_file:open
to use $EDITOR
write_scrollback_file:open
to use $EDITOR
Related: #2111 |
write_scrollback_file:open
to use $EDITOR
write_scrollback_file:open
to use $EDITOR
As a design for this feature: I don't think this needs a new enum value for The original idea behind using |
@NishantJoshi00 I also use neovim and you just need a desktop file to set filetypes for neovim and then set it as the default.
Then set nvim as the default for plain text (assuming linux):
|
I think using |
@grimm26 You suggestion seems to only work when the current ghostty terminal instance is spawned by another terminal instance? This is also mentioned in this issue: #3334 (comment) |
Very strange. This was working when I launch ghostty from the panel (Mint Linux 22), not from within another terminal. I had launched ghostty from another terminal previously in the same X session. Maybe I was using the same ghostty session? I rebooted to start fresh and |
I decided to look at the code and see if I can make the required edit. I found the open command in the os/open.zig after digging around for a bit. It seems adding the $EDITOR check there would be quick and simple |
The
write_scrollback_file:open
command opens the scrollback in my OS default text editor.Going through the code:
ghostty/src/Surface.zig
Lines 4184 to 4190 in ffc4c6e
It does seem to be the intended behavior, but would it be possible to instead open it in
$EDITOR
. In my caseneovim
.The text was updated successfully, but these errors were encountered: