Odd behavior of write_screen_file:open
when opening Zig output
#4780
-
IssueI have set Neovim as my default application for opening text files. Regardless of the output, my keyboard shortcut ( Except when the output is from a Zig command, such as ExamplesExpected Behavior:The following works correctly and opens in Neovim: [redacted][~//Coding/zig/fsm][main ?!] → ghostty --version
Ghostty 1.0.1
Version
- version: 1.0.1
- channel: stable
Build Config
- Zig version: 0.13.0
- build mode : builtin.OptimizeMode.ReleaseFast
- app runtime: apprt.Runtime.gtk
- font engine: font.main.Backend.fontconfig_freetype
- renderer : renderer.OpenGL
- libxev : main.Backend.io_uring
- GTK version:
build : 4.16.12
runtime : 4.16.3
- libadwaita : enabled
build : 1.6.2
runtime : 1.6.1
- libX11 : enabled
........
[redacted][~//Coding/zig/fsm][main ?!] → Unexpected Behavior:The following opens in Brave browser instead of Neovim: [redacted][~//Coding/zig/my_special_project][main ?!] → zig build test
test
└─ run tests
└─ zig test tests Debug native 1 errors
src/tests.zig:43:31: error: expected type '*main.StateMachineBuilder(tests.State,tests.Input,&.{ .{ ... }, .{ ... } }[0..2],.Idle,(function 'dummyStartFn'),(function 'dummyEndFn'),(function 'dummyErrFn'))', found '*const main.StateMachineBuilder(tests.State,tests.Input,&.{ .{ ... }, .{ ... } }[0..2],.Idle,(function 'dummyStartFn'),(function 'dummyEndFn'),(function 'dummyErrFn'))'
try std.testing.expect(my_special_project.currentState() == State.Idle);
......
[redacted][~//Coding/zig/my_special_project][main ?!] → Can someone explain why this behavior might be occurring? Is this more likely a bug in Ghostty or a misconfiguration on my system? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
We use |
Beta Was this translation helpful? Give feedback.
We use
xdg-open
, so its up to that.