-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Allow for default or inherited CWD in new window, tab and split surfaces (redone for GTK-NG) #9158
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
base: main
Are you sure you want to change the base?
Conversation
|
I consolidated the enums; it builds and tests fine on macOS. My Linux VM is not building it currently - hangs on this step: I'm working on getting Nix set up, but it's being recalcitrant. If someone can try a build on Linux, let me know if it works (or not) for them. |
Are you using Zig 0.15.2 or 0.15.1? I believe that this is caused by breakage in |
0.15.2 0 - that's the version Installed Thanks for the pointer - I hadn't gotten to the point of questioning the version of |
|
Got |
16a3435 to
cba1cef
Compare
- Define NewSurfaceContext enum (window, tab, split) - Add shouldInheritWorkingDirectory helper function - Thread surface context through newConfig and newSurfaceOptions - Replace window-inherit-working-directory checks with context-aware logic - Add context to embedded CAPI and GTK Surface structs
- Define NewSurfaceContext to match the Zig enum name and avoid magic numbers.
In order to set the private context variable so that initiSurface can use it.
(which should inherit based on the window setting), and a new tab in an existing window (which should inherit base on tab setting)
functions back into a single function with a second parameter for the source context.
|
@pluiedev thanks for the good feedback; can you take a look at the changes I made? |
Closes 1392
Add two boolean config settings:
tab-inherit-working-directorysplit-inherit-working-directoryThey mimic the existing
window-inherit-working-directory, and it's interaction withworking-directory.This allows users to configure working directory inheritance independently for new tabs, windows, and split panes,
providing maximum flexibility for different workflow patterns.
Sample config entries
Authored with Amp
Relevant threads:
Behavior in macOS
https://share.cleanshot.com/7LsSGM53
Behavior in linux (Ubuntu)
https://share.cleanshot.com/qJf3Hp6w