Comments (3)
I don't think it's lazygit's job to support this. Lazygit doesn't render diffs, it only takes what it gets from git (possibly passed through a pager) and displays it as-is. So if you can get git to show the images when you type git diff
in the command line, it should work in lazygit. If this doesn't work (and it doesn't for me, see below), then that would be a bug report for lazygit, not an enhancement request.
Here's some documentation that describes how to set up git so that it shows images in diffs (it looks like it's specific to iTerm2, maybe you need something slightly different for kitty).
I tried these instructions, and I could get it to work in the terminal; but only if I use the --no-pager
option, or pipe it through cat
:
However, it doesn't show in lazygit:
I haven't investigated yet why this is.
Another problem is that some pagers seem to have problems passing on the image data correctly; for example, it doesn't work with delta (see dandavison/delta#1399), which is a major problem if you otherwise want to use delta in lazygit; I can't think of a workaround.
from lazygit.
@stefanhaller thank you for those tips, you are right, I was thinking about the right pane in lazygit more like some "previewer" window where I could configure how to present a diff based on a file type. However, I will try the solution you posted and see if it works 🍻 .
from lazygit.
I ended up with this solution for Kitty terminal: https://sw.kovidgoyal.net/kitty/kittens/diff but I'm not sure if it's possible to integrate it with lazygit
from lazygit.
Related Issues (20)
- `M` no longer in yellow to signify staged modifications/commit HOT 2
- Lazygit from neovim inside tmux is slightly different than vanilla lazygit HOT 4
- Commit "Reset" does not do anything HOT 2
- UI shifts to the left and gets cut off when making an amend (when using floating window)
- Custom pagers do not work with WSL
- Ability to have folders or '/' character in custom branch colours (MacOS) HOT 2
- Interacting with Custom Command Output (Git-Town) HOT 2
- The & operator is reserved for future use (Windows Terminal)
- Feature request: Implement `git log --graph --all` functionality in LazyGit HOT 2
- Why is <c-h> not supported as a keybind? HOT 1
- Add option to show modified filenames log panel HOT 2
- Error when launching in a none repository folder HOT 1
- Ability to exclude diff signs from "changes" copied contents
- Add the ability to copy the 7-character commit hash in lazygit: [4] Commits :: `y` <== Add first 7 characters hash mode HOT 3
- Non-sticky range diff HOT 6
- Set default color to icons/folders the LazyVim way, how to ? HOT 2
- Offer to autostash changes when creating a new branch HOT 2
- Shell commands no longer run from the current repository directory HOT 6
- SegFault with Commit panel -> Create a custom patch -> '?' -> '/' -> type "custom" to search -> 'Ctrl+p' -> Crash HOT 1
- fatal error: all goroutines are asleep - deadlock!
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 lazygit.