Comments (7)
I would prefer a future-proof solution, which can also be applied to possible new options. Something like the following perhaps:
bind generic 2 :set diff-options = "--full-diff"; :reload
Which would require
- A new option called 'diff-options' similar to the existing 'blame-options'.
- The possibility to bind 'tig scriptlets' to keybindings.
- Improvements to the code reading and executing 'tig scripts'.
from tig.
I think adding user defined diff options may break some features in the diff view (e.g. --names-only
or --color-words`). Am I mistaken?
from tig.
It's certainly possible for arbitrary diff options to break tig's parsing of the git-diff output. The same is probably true, however, of the existing blame-options
.
from tig.
@jonas: Should diff-options
replace the TIG_DIFF_OPTS
environment variable, or coexist peacefully? I'd opt to replace the env var, but there may be particular value in the per-invocation uses of it.
from tig.
I don't see a reason to remove it, but we could start a deprecation process to avoid any surprises.
from tig.
Nod. I already have code that coexists with TIG_DIFF_OPTS
, so I'm fine leaving it for now. I'll document the precedence of each method.
from tig.
Great
On Wed, Jan 23, 2013 at 11:00 PM, Thomas Sibley [email protected]:
Nod. I already have code that coexists with TIG_DIFF_OPTS, so I'm fine
leaving it for now. I'll document the precedence of each method.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/69#issuecomment-12636144.
Jonas Fonseca
from tig.
Related Issues (20)
- [question]how to go back to file list in blob mode? HOT 1
- tig with locale ISO8859-2 on AIX
- help/docs bug: blame view keybindings are hard to discover HOT 4
- RFE: jump to hash HOT 6
- Support grabbing input from read HOT 1
- Discuss the reliability of state variables
- [question] How to launch a command and substitute an environment variable? HOT 2
- When editor is set to subl, cannot locate the line HOT 3
- keybind with `+[cmd]` would not trigger view refreshing HOT 4
- Easily jump to different files of the commitdiff HOT 2
- Add context menus
- Allow binding multiple commands HOT 1
- Default main view / jump to "Staged/Unstaged changes" HOT 5
- --stdin makes vim complaining HOT 1
- User-defined Commands does not work well with Ctrl+C
- Feature request: When closing tig, do not clear the screen HOT 2
- Support prefetch branches HOT 2
- Filename detection in "deleted file" diffs HOT 1
- Buffer content does not disappear HOT 1
- bug: fail to find filename if not showing prefixes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tig.