forked from ThePrimeagen/git-worktree.nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: change worktree on all buffers
Change update_current_buffer function to update all currently open buffers and de-list buffers from the previous worktree. Buffers from files that don't exist on another worktree will only be de-listed. Buffers unrelated to the worktree (temporary or external files) should ignored The focused buffer file will be kept focused on the new worktree, unless if it doesn't exist, in which case it will select the last one. In the future, it would also be possible to remember closed files that don't exist for when you switch back, that's not addressed by this PR Also fixes ThePrimeagen#84
- Loading branch information
1 parent
3471b5b
commit 477d556
Showing
1 changed file
with
56 additions
and
30 deletions.
There are no files selected for viewing
This file contains 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