1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-19 00:28:03 +02:00

271 Commits

Author SHA1 Message Date
b2d629b50a Add scrollOffEnabled config 2023-08-21 09:03:45 +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
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
9c5eedf748 use 'suspend' instead of 'editInTerminal' internally
'suspend' is a more appropriate name, especially now that you can choose not to suspend despite
still being in a terminal
2023-08-09 22:03:58 +10:00
ca08956f77 Use soft wrapping in config doc
Looking online I can't find any consensus about whether soft or hard wrap is better.
This post goes into the pros/cons: https://martin-ueding.de/posts/hard-vs-soft-line-wrap/

I find that editing hard-wrapped text is a pain in the ass, and it's hard to enforce
consistency. So I'm switching to soft-wrapping for this doc.
2023-08-09 21:33:12 +10:00
aa74239f05 Add nvim-remote editor preset
This allows us to jump back to the parent neovim process when we want to edit a file, rather than opening a new neovim
process within lazygit.

Arguably this should be the default, but I'm not familiar with the various ways people use lazygit with neovim.
2023-08-09 21:32:53 +10:00
ebd56bd8d5 Mention JSON schema () 2023-08-08 08:19:05 +10:00
82b5c20050 Add zh-TW to docs/Config.md
Co-authored-by: Bill ZHANG <36790218+Lutra-Fs@users.noreply.github.com>
2023-08-07 19:52:28 +08:00
f32fe84c9b feat(doc): better JSON schema usage explanation 2023-08-07 18:27:37 +10:00
fb05ee369f feat(doc): mention JSON schema 2023-08-07 03:38:30 +10:00
a200fccba9 Add explosion animation when nuking working tree
I've been thinking about this for a while: I think it looks really cool if nuking your working tree
actually results in a nuke animation.

So I've added an opt-out config for it
2023-08-01 22:16:04 +10:00
9c57444adc Remove the old experimentalShowBranchHeads mechanism and config
We are going to replace it with a better one later in this branch.
2023-07-31 08:34:00 +02:00
3a7468ecac Support opening worktree in editor 2023-07-30 18:35:23 +10:00
d7f84aed8a feat: add os.copyToClipboardCmd to allow for a custom command
Issue 

test: CopyPatchToClipboard (temporary commit for review)
2023-07-29 19:09:59 +10:00
1431ffcebf Corrected 'zh' to 'zh-CN' in lazygit docs for proper localization 2023-07-29 12:07:40 +08:00
9617737352 config: rely on .gitconfig for verbose commit messages
As discussed in https://github.com/jesseduffield/lazygit/pull/2599, it
makes more sense to have the user specify whether they want verbose
commits from their own git config, rather than lazygit config.

This means that we can remove all the code (including test coverage)
associated with the custom verbose flag, and lazygit will just inherit
the .gitconfig settings automatically.
2023-07-14 07:56:09 +02:00
9df634f13f Color view frame differently when searching/filtering
Given that we now persist search/filter states even after a side context loses focus, we need to make it really
clear to the user that the context is currently being searched/filtered
2023-07-03 12:54:14 +10:00
5133113142 feat(i18n): add russian translation 2023-06-28 00:34:59 +06:00
51a558040d Fix the title and text (and variable names) of the Discard Changes prompt
The title was saying "Unstage lines", which was just wrong. The text said
"Delete lines", which can be seen as a bit misleading; we are only discarding
the changes to the selected lines, not deleting the lines themselves.

For consistency, rename the config variable skipUnstageLineWarning accordingly.
2023-06-26 08:15:35 +02:00
77c5d1761d Add nerdFontsVersion config 2023-06-15 21:47:52 +02:00
a4db44bc3d show commits against branches 2023-06-01 19:21:24 +10:00
31a2ea1f19 Add --all to "git fetch" command when not fetching a specific remote 2023-06-01 10:13:14 +02:00
0e0458f355 More compact and flexible date format
You can now configure both a time format and a short time format, where the short format kicks in
when the time is within the last day
2023-05-26 17:31:39 +10:00
ed496deeca Add helix editor preset 2023-05-24 23:08:26 +02:00
820f7b9404 Support strikethrough text style 2023-05-21 10:46:13 +10:00
46b93bba0e Add config git.mainBranches
It defaults to {"master", "main"}, but can be set to whatever branch names
are used as base branches, e.g. {"master", "devel", "v1.0-hotfixes"}. It is
used for color-coding the shas in the commit list, i.e. to decide whether
commits are green or yellow.
2023-05-16 13:20:03 +02:00
1636931c2b Include "kakoune" in supported edit presets 2023-05-04 08:28:58 +02:00
6e027f42da Include "nvim" in supported edit presets 2023-05-03 13:30:51 +02:00
c88ecdf87c update open docs 2023-05-03 13:48:04 +10:00
fba1a2b5ac Add config gui.experimentalShowBranchHeads
People find the new (*) display for branch heads in the commits list confusing,
so make it opt-in for now.
2023-05-02 18:58:54 +10:00
49da7b482d Split commit message panel into commit summary and commit description panel
When we use the one panel for the entire commit message, its tricky to have a keybinding both for adding a newline and submitting.
By having two panels: one for the summary line and one for the description, we allow for 'enter' to submit the message when done from the summary panel,
and 'enter' to add a newline when done from the description panel. Alt-enter, for those who can use that key combo, also works for submitting the message
from the description panel. For those who can't use that key combo, and don't want to remap the keybinding, they can hit tab to go back to the summary panel
and then 'enter' to submit the message.

We have some awkwardness in that both contexts (i.e. panels) need to appear and disappear in tandem and we don't have a great way of handling that concept,
so we just push both contexts one after the other, and likewise remove both contexts when we escape.
2023-04-30 12:17:34 +10:00
bf3dd79b7a feat: add gitea to hosting service 2023-04-18 16:16:09 +00:00
e3c5e07b20 Update documentation 2023-04-13 13:14:00 +02:00
a82d952f48 Merge pull request from jesseduffield/feature/remove-altreturn 2023-03-20 20:11:35 +11:00
b5d612e6d6 Add border config ()
Co-authored-by: yk-kd <yosuke.komada@gmail.com>
2023-03-18 11:23:31 +11:00
f314cb3763 Remove alternative confirmation and return keymappings 2023-03-09 10:32:00 +01:00
6735bf4c89 Update Config.md 2023-03-07 11:54:47 -08:00
56424eb1aa remove x keybinding for opening menu so we now only use '?' 2023-02-20 19:28:45 +11:00
67b08ac239 feat: support to create tag on branch 2023-02-19 23:31:46 +09:00
01f0efb997 Merge branch 'master' into #2319_default_screen_mode 2023-01-29 10:25:14 +05:30
996a1e469f Merge pull request from Ryooooooga/disable-log-order 2023-01-29 14:05:31 +11:00
2183c157d4 feat(log): allow to disable git.log.order 2023-01-28 21:17:05 +09:00
stk
67fb28e2b8 Add user config gui.skipRewordInEditorWarning 2023-01-26 09:01:22 +01:00
fd86d29400 Merge pull request from Ryooooooga/commit-verbose 2023-01-17 09:19:22 +11:00
a11e91e651 replaced 'screenMode' to 'windowSize' in config 2023-01-16 20:07:21 +05:30
f4ccb68464 Added screenMode configuration to gui configuration 2023-01-11 16:51:46 +05:30
acbcf9933d docs(Config.md): add missing keybindings 2023-01-10 20:43:23 +09:00
965f7bfcb2 feat(config): change git.commit.verbose to accept "default" 2023-01-06 11:15:33 +09:00
d98130c3ef Add option to allow --verbose commit in editor commits 2023-01-01 02:01:04 +01:00
f3fa9ec2d1 Merge pull request from wakaka6/add_return_alt1 2022-12-28 11:54:16 +11:00