1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00
Commit Graph

40 Commits

Author SHA1 Message Date
b0b8ef9cf6 Fix display of renamed files
This broke with #4346 (Add root node in file tree).
2025-04-02 18:15:44 +02:00
8ec37f80b7 Let users to define custom icons and color for files on the config file
Co-authored-by: Stefan Haller <stefan@haller-berlin.de>
2025-03-25 09:48:12 +01:00
26459523f5 Add a root item ("/") if files at top level have changed 2025-03-21 08:04:58 +01:00
53090b2c45 Use GetPath accessor outside of filetree package
In preparation of making it private to the package.
2025-03-20 12:31:34 +01:00
2dfc3491bd Rename Name to Path in File and CommitFile
Name was very confusing and misleading.
2025-03-20 12:31:34 +01:00
8b90cca521 Use HEX colors on file icons instead of C256 colors 2025-01-02 15:36:27 +11:00
f455f99705 Add user config gui.showNumstatInFilesView
When enabled, it adds "+n -m" after each file in the Files panel to show how
many lines were added and deleted, as with `git diff --numstat` on the command
line.
2024-12-08 12:09:47 +01:00
36134006c5 Add config setting to suppress showing file icons 2024-01-22 08:40:03 +01:00
7c3d8921b7 Show unstaged file names in default colour
Previously, we had the following rules:
* file names were in red when unstaged or partially staged
* directory names were in red if unstaged, yellow if partially staged, and
  green if fully staged

Red text on a black background can be hard to read, so instead I'm changing it
so that unstaged files have their names in the default text colour.
I'm also making it so that partially staged files are in yellow, just like how
partially staged directories are yellow (same deal with the commit files view
when adding to a custom patch).

So the new rules are:
* unstaged files/directories use the default colour
* partially staged files/directories are in yellow
* fully staged files/directories are in green

I've also done a refactor on the code clean up some dead code from when the file tree
outline was drawn with box characters, and I've made it so that the indentation in
each line is handled inside the function that draws the line rather than in the recursive
parent function. This makes it easier to experiment with things like showing the file
status characters on the left edge of the view (admittedly after experimenting with it,
I decided I didn't like it). Apologies for having a refactor and a functional change
in the one commit but by the time I was done, I couldn't be bothered going back and
retroactively splitting it into two halves.
2024-01-22 13:31:05 +11:00
19e8cafe41 create iconProperties struct and convert iconMaps to use iconProperties 2023-10-18 21:21:36 +11:00
7b05dacb98 Properly render worktrees in files panel 2023-07-30 18:35:22 +10:00
60f902f026 rename patch manager to patch builder 2023-03-19 16:35:57 +11:00
5c8bc790ff Make arrows consistent (#2501) 2023-03-18 11:32:44 +11:00
682be18507 refactor to use generics for file nodes
use less generic names
2022-07-31 19:43:14 +10:00
db3568e4f2 chore(gui): remove todo 2022-04-29 17:53:43 +09:00
cb13fe7f46 feat(gui): show commit icons 2022-04-23 12:25:41 +09:00
b07aeda5a6 feat(gui): show file icons 2022-04-23 12:25:40 +09:00
00afa30ebf better appearance for reverse attribute 2022-04-16 15:19:32 +10:00
4835fc00b8 introduce Ref interface 2022-04-02 17:04:42 +11:00
c7a629c440 make more use of generics 2022-03-24 20:14:41 +11:00
a34bdf1a04 update linters 2022-03-19 12:12:57 +11:00
b5515da00b move commit files context into new structure 2022-03-17 19:13:40 +11:00
c084abb378 move more view model logic into the files view model 2022-03-17 19:13:40 +11:00
f5a5b7f966 Add unstagedChangesColor config option 2022-03-16 19:21:39 +11:00
5b7dd9e43c properly resolve cyclic dependency 2022-01-22 10:48:51 +11:00
4ab5e54139 add support for git bisect 2022-01-22 10:48:51 +11:00
79848087bc Switch to github.com/gookit/color for terminal colors 2021-07-30 15:14:46 +02:00
fc76b44b45 correctly show files with special chars in commit 2021-07-23 12:04:23 +02:00
9a087d04eb Change the way file statuses are loaded
This makes it so file statuses recived from git no longer get joined
before spliting them again.
2021-07-22 22:12:43 +02:00
4b4bfae4f4 fix background colour on selected line 2021-03-30 21:57:00 +11:00
2b8302bced refactor 2021-03-30 21:57:00 +11:00
c27cea6f30 more file tree improvements 2021-03-30 21:57:00 +11:00
45939171ea WIP
start moving to new interface

WIP

WIP

WIP

WIP

WIP
2021-03-30 21:57:00 +11:00
ce6f8ed1bc move models folder into commands folder 2020-09-29 20:48:49 +10:00
8d2af5cc61 move file and submodule 2020-09-29 20:48:49 +10:00
b8da166ab1 support discarding submodule changes 2020-09-29 18:21:59 +10:00
ca437a6504 support submodules 2020-09-29 18:21:59 +10:00
267730bc00 standardise how we handle background colours 2020-05-13 21:24:25 +10:00
40fbce91ce add new diff mode
WIP

WIP

WIP

WIP

WIP

WIP

WIP
2020-03-29 18:26:24 +11:00
f94d0be2c9 refactor the way we render lists 2020-02-25 21:21:07 +11:00