Skip to content
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

[RFC] diffopt/diffexpr: local settings #4782

Open
blueyed opened this issue Aug 6, 2019 · 3 comments
Open

[RFC] diffopt/diffexpr: local settings #4782

blueyed opened this issue Aug 6, 2019 · 3 comments

Comments

@blueyed
Copy link

blueyed commented Aug 6, 2019

Sometimes it would be useful to configure local diff options, e.g. "diffopt+=iwhite".

According to the help diffs are bound to the current tab, so it might make sense to allow for tab-local settings here - but tab-local settings do not exist yet.

The next best thing would be to have those be window-local settings, but then the question arises what would be used if those are different across windows being diffed.
It could use the options from the current window then, resulting in potentially different appearance (re-parsing) when changing the window (and the options differ).

What do you think?

@brammool
Copy link
Contributor

brammool commented Aug 6, 2019 via email

@blueyed
Copy link
Author

blueyed commented Aug 6, 2019

We do have tab-local variables. How about using l:diffopt-option ?

Assuming you mean t:diffopt I think that's good.
t:diffexpr should be handled there then also.

@chrisbra
Copy link
Member

chrisbra commented Aug 13, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants