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
Labels
Comments
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?
Tab-local options would be best for this specific case. It's in the
todo list:
8 Add local options for each tab page? E.g., 'diffopt' could differ between
tab pages.
However, it's only useful in very few cases. And would require quite a
bit if work to implement.
We do have tab-local variables. How about using l:diffopt-option ?
…--
I'm not familiar with this proof, but I'm aware of a significant
following of toddlers who believe that peanut butter is the solution
to all of life's problems... -- Tim Hammerquist
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|
Assuming you mean |
Can't this be handled by a custom plugin and TabEnter autocommands?
… Am 07.08.2019 um 00:13 schrieb Daniel Hahler ***@***.***>:
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.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?
The text was updated successfully, but these errors were encountered: