-
Notifications
You must be signed in to change notification settings - Fork 78
feat: add working directory control for Claude terminal #117
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
Merged
ThomasK33
merged 1 commit into
main
from
thomask33/feat_add_working_directory_control_for_Claude_terminal
Sep 10, 2025
Merged
feat: add working directory control for Claude terminal #117
ThomasK33
merged 1 commit into
main
from
thomask33/feat_add_working_directory_control_for_Claude_terminal
Sep 10, 2025
+353
−20
Conversation
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
This was referenced Aug 8, 2025
f756826
to
81582b3
Compare
dacbe9b
to
e1945e6
Compare
81582b3
to
5acc233
Compare
e1945e6
to
fbcc5d8
Compare
5acc233
to
85ff96b
Compare
pittcat
added a commit
to pittcat/claudecode.nvim
that referenced
this pull request
Aug 12, 2025
- Merged external terminal provider support from PR coder#117 - Preserved add-unsafe-command branch features (monitoring, notifications, anti-flicker) - Combined terminal integration improvements from both branches - Maintained backward compatibility with existing configurations - Added mini.files integration support - Enhanced documentation with new terminal providers and integration fixtures - Resolved conflicts by keeping the best features from both branches
85ff96b
to
f6e7c5b
Compare
fbcc5d8
to
6492393
Compare
Merge activity
|
Change-Id: I0cc3cf3815bc5634a6c01f4d708e0ccda8e53404 Signed-off-by: Thomas Kosiewski <[email protected]>
6492393
to
c65eaae
Compare
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.
Working Directory Control for Claude Terminal
This PR adds the ability to fix Claude terminal's working directory regardless of
autochdir
and buffer-local cwd changes. The feature provides three options (in precedence order):cwd_provider(ctx)
: A function that returns a directory string, receiving context with{ file, file_dir, cwd }
cwd
: A static path to use as working directorygit_repo_cwd = true
: Resolves git root from the current file directory (or cwd if no file)The implementation includes:
claudecode.cwd
module with directory resolution helpersThis makes it easier to ensure Claude has the correct context when working with projects, especially in monorepos or when navigating between different parts of a codebase.