feat(attach): Allow attaching to files out of repo #980
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.
This will allow to highlight usaved changes in buffer, even if file is not in the git repo. This behaviour needs to be enabled by
attach_to_out_of_repo
config option (false by default).Resolves #164
I feel like this may be a little out of scope of this project. But I wanted it myself, and saw other people want it, so I decided to share. I also think this is a small change and should not make any difference by default (needs to be explicitly enabled in user config).
It is of course for the maintainer to decide, and I will understand if PR gets rejected. If you know a better way to do this, I would like to know and help implement it.
Anyway, it is a pleasure to use this plugin, keep up the great work!