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

4842 Commits

Author SHA1 Message Date
a65d3119c0 upgrade golangci/golangci-lint-action to v3.7.0 2023-08-21 18:11:33 +09:00
51ecf4089b upgrade actions/setup-go to v4 and remove actions/cache for go cache 2023-08-21 18:10:52 +09:00
0c0fe8997b upgrade goreleaser/goreleaser-action to v4 2023-08-21 18:09:59 +09:00
f86309dd03 upgrade JamesIves/github-sponsors-readme-action to v1.2.2 2023-08-21 18:09:33 +09:00
c31fcb7134 Switch to editor from commit message panel (#2881) 2023-08-21 10:12:26 +02:00
91ec42f3f8 Add integration test 2023-08-21 10:03:34 +02:00
8f628296ad Mention ctrl+o binding in commit message sub title
Only do this when an onSwitchToEditor function is actually provided. For the
"Move patch into new commit" command we don't, because it isn't totally
straightforward in that case.
2023-08-21 10:03:34 +02:00
61bd3e8dd2 Add key binding for switching from the commit message panel to an editor
This is useful for when you begin to type the message in lazygit's commit panel,
and then realize that you'd rather use your editor's more powerful editing
capabilities. Pressing <c-o> will take you right there.
2023-08-21 10:03:34 +02:00
7263630967 Remove obsolete comment 2023-08-21 10:03:34 +02:00
16711c6f1a Added termux installation [README.md] (#2892) 2023-08-21 18:02:59 +10:00
b2023f10b6 Fix: Update 'zh' to 'zh-CN' in lazygit Language Configuration (#2842) 2023-08-21 17:56:45 +10:00
e915488a83 Add gui.scrollOffBehavior config for scrolling list views by half-pages (#2939) 2023-08-21 09:11:03 +02:00
b2d629b50a Add scrollOffEnabled config 2023-08-21 09:03:45 +02:00
125d4fa9dc Pass UserConfig to checkScrollUp/Down instead of just the scrollOffMargin
This will allow us to add a scrollOffEnabled config and have the functions
respect it without changes to clients.
2023-08-21 08:10:28 +02:00
527a1596f3 Add tests for scroll-off margin of zero 2023-08-21 08:10:28 +02:00
51d9f70f9e Fix section levels
These appeared as subsections of "Platform Defaults", which doesn't make sense.
2023-08-21 08:10:28 +02:00
83727d48b5 Feature add git flow instructions (#2785) 2023-08-21 15:51:51 +10:00
8efc175340 Add git flow description in readme 2023-08-21 15:50:54 +10:00
6a6cb25d7e Handle trailing slash in worktree path (#2947) 2023-08-21 13:26:58 +10:00
fd782ff568 Updated README.md 2023-08-21 01:26:29 +00:00
dbfb469bad Add Makefile (#2937) 2023-08-21 11:26:15 +10:00
888a976fc0 Fix the commit graph display after selection jumps in commits view (#2943) 2023-08-20 08:51:29 +02:00
2073730186 Fix the commit graph display after selection jumps in commits view
When navigating in the commits view to a line that is out of view (e.g. by
pressing , or . to scroll by page, or < or > to scroll to the top or bottom),
the commit graph was not correctly highlighted. Fix this by rerendering the
viewport in this case.
2023-08-20 08:46:04 +02:00
7a4a0c85c4 Fix test 2023-08-19 19:12:36 +03:00
382ecb6bfe Add unit test 2023-08-19 19:10:35 +03:00
03694f7502 Fix arg order to asserts 2023-08-19 19:10:25 +03:00
ee308a4994 Clean before convertion? 2023-08-19 18:36:57 +03:00
a2b2336173 Stylistic changes 2023-08-19 18:36:57 +03:00
d7b1deb465 Clean path 2023-08-19 18:36:57 +03:00
dd01639f57 Improve error message 2023-08-19 18:36:57 +03:00
525932fbf2 Fix sha colors when rebasing (#2946) 2023-08-19 12:38:00 +02:00
b1314349d7 Fix yellow/red coloring while rebasing
It determines the yellow/red status by getting the merge-base between the
current branch and its upstream; while we're rebasing, the current branch is
HEAD, so it tried to get the merge-base between HEAD and HEAD{u}, which doesn't
work. Fix this by passing the name of the checked-out branch separately.
2023-08-19 09:26:27 +02:00
9671f549a1 Fix the blue sha color of todo commits while rebasing
This broke with 5d8a85f7e7.
2023-08-19 09:24:00 +02:00
a1738a77ae Add Makefile 2023-08-19 00:13:03 +09:00
689deb72bd Add emacs-keybinds for word navigation (#2935) 2023-08-17 09:41:14 +10:00
84372cfad9 Add emacs-keybinds for word navigation 2023-08-15 12:22:17 +02:00
e429415ed4 Updated README.md 2023-08-15 09:49:34 +00:00
7402be98b6 Jump to middle of the view when selection leaves the visible area (#2915) 2023-08-15 11:49:20 +02:00
341b9725d4 Add ScrollOffMargin user config
When set to a non-zero value, views will scroll when the selection gets this
close to the top or bottom of the view.
2023-08-15 11:40:40 +02:00
8f164f7bc5 Stop cycling hunks when reaching the end
Previously, when pressing right-arrow when the cursor is already in the last
hunk, it would jump back to the beginning of that hunk. This can be confusing if
the hunk is long, maybe the start of the hunk is already scrolled off the top of
the window, and then pressing right-arrow actually scrolls *backwards*, which is
counter-intuitive. It's better to do nothing in this case.

Same for left-arrow when the cursor is already in the first hunk, although here
the problem is not so severe (unless diff context was increased by a huge
amount, and the start of the first hunk is scrolled off the bottom of the
window).
2023-08-15 11:40:40 +02:00
79c11a0458 If selected line is outside, move it to the middle of the view
Previously, the current line was only moved as much as necessary so that it's in
view again. This had the problem that when jumping downwards from hunk to hunk
with the right-arrow key, only the first line of the new hunk was shown at the
bottom of the window. I prefer to put the selected line in the middle of the
view in this case, so that I can see more of the newly selected hunk.

This has the consequence that when scrolling through the view line by line using
down-arrow, the view jumps by half a screen whenever I reach the bottom. I can
see how some users might be opposed to this change, but I happen to like it too,
because it allows me to see more context of what's ahead.
2023-08-15 11:40:40 +02:00
4a4afc4639 Fix typo in comment 2023-08-15 11:40:40 +02:00
ebdfd8046a Bump gocui 2023-08-15 11:40:40 +02:00
d99e983236 Add compare-commits demo (#2929) 2023-08-12 17:32:15 +10:00
1c6cfafba7 Add features to table of contents 2023-08-12 17:27:25 +10:00
83d642b74f Add demo for diffing two commits 2023-08-12 17:24:05 +10:00
b1bc437d1b Factor out common config setup functions in demo package 2023-08-12 16:52:40 +10:00
26989ce0ee Show commit mark before showing extra info (#2928) 2023-08-12 16:44:27 +10:00
e6356ce10c Show commit mark before showing extra info
The 'YOU ARE HERE' marking should be shown before we show things like the current tag, otherwise it could be missed
2023-08-12 16:34:04 +10:00
b92da0dc54 Updated README.md 2023-08-12 06:19:15 +00:00