1028f8efb8
Migrate deprecated AllBranchesLogCmd to AllBranchesLogCmds
...
This solves https://github.com/jesseduffield/lazygit/issues/3961 because
we no longer have a combination of the default and the user defined
list. We just have the user defined list.
2025-05-06 23:33:17 -04:00
a9f9dee30d
Combine customCommand's subprocess, stream, and showOutput fields into a single output enum
2025-05-01 15:46:06 +02:00
f65166ae91
Update config docs and schema
2025-04-21 18:12:50 +02:00
eaaa937315
Add config for auto-forwarding branches after fetching
2025-04-21 18:06:09 +02:00
fa35f661d9
Update keybindings, config docs, and schema
2025-04-21 18:03:19 +02:00
80b5e21bd5
Add a command to select all commits of the current branch
...
This is useful for seeing the combined diff of all commits of a branch.
2025-04-10 09:02:09 +02:00
dc48cf963a
Add config os.shellFunctionsFile
2025-04-07 14:35:40 +02:00
41e9335ea8
Reorder configs in OSConfig
...
There is a section at the end with deprecated settings, and a comment saying
"The following configs are all deprecated". The clipboard-related settings were
accidentally added to that section; they are not deprecated, so move them up to
before that section.
2025-04-07 14:35:40 +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
0c9154ca9d
Add comments with more information
...
This will be useful in the next commit when these start to show up in the
generated Config.md.
2025-03-22 12:35:24 +01:00
95c5d51e64
Support home and end as alternatives to '<' and '>'
2025-03-17 19:58:01 +01:00
f989425f8c
Add acme editor preset
2025-03-06 15:02:53 +01:00
22512d55a8
Add commandMenu property to custom commands
2025-02-28 10:11:30 +01:00
0cc6e39f0f
Filter out [dev] comments earlier
...
Previously we only filtered them out from the example config section in
Config.md, but they still appeared in the schema. This is not ideal, because the
schema descriptions can appear in editors on mouse hover or in auto-completions.
So filter them out earlier, so that they don't appear in the schema either.
2025-02-25 11:42:47 +01:00
3b85307f67
Filter out [dev] comments when generating config doc
2025-02-23 20:55:28 +01:00
30e9bf8a75
Use refs in jsonschema userconfig generator
...
This makes it possible to use recursive structures in the user config.
2025-02-23 20:55:28 +01:00
11616190ee
Add a gui.tabWidth config
...
Affects everything that is shown in the main view, but probably mostly relevant
for diffs.
2025-02-20 09:13:56 +01:00
e3944c1707
Fix description of showFileTree
...
Change '~' to '`' as it's the correct key.
Signed-off-by: Adrian Gielniewski <adrian.gielniewski@gmail.com >
2025-02-17 20:14:11 +01:00
2fa4ee2cac
feat: Support multiple commit prefixes
...
This implementation, unlike that proposed in https://github.com/jesseduffield/lazygit/pull/4253
keeps the yaml schema easy, and does a migration from the single
elements to a sequence of elements.
2025-02-17 19:58:31 +01:00
19921b7c42
Fix json schema for context of CustomCommand
...
Previously the schema only allowed a single value; however, it is now possible
to specify multiple values separated by comma, and you would get very ugly red
error squiggles in VS Code when you did that.
The only solution that I can see is to get rid of the "enum" specification, and
mention the valid values only in the description. Add examples too so that you
get at least auto-completion.
2025-02-12 08:18:26 +01:00
7bea41534b
Collapse/expand all files in tree
...
Co-authored-by: Stefan Haller <stefan@haller-berlin.de >
2025-01-13 21:13:11 +01:00
c64a7904b7
Add ability to configure branch color patterns
2025-01-12 13:44:26 +01:00
28d10c26a4
Standardise on 'screen mode' name
...
We had some conflicting names so we're standardising on screen mode
2025-01-11 14:25:48 +11:00
15288b7bf4
Add user config to enable line wrapping in the staging view
...
It is enabled by default, because I think it's often helpful, and rarely in the
way. I bet most user won't even notice.
2024-12-23 12:24:09 +01:00
93a37cf83e
fix(config): allBranchesLogCmd description typo
2024-12-18 11:42:50 +01: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
10db72d223
Let schema/config.json end with a line feed
...
Some editors add one automatically when saving the file, which causes confusion
and ugly diffs containing `\ No newline at end of file`.
2024-11-30 15:03:29 +01:00
8da43af924
Add config option to disable tab switching with jump keys
2024-11-09 17:19:14 +11:00
0e489bb5cc
Add options for disabling switching to the Files panel after popping or applying a stash
2024-09-15 11:59:59 +02:00
da7a28c117
Add Zed to user_config.go and schema
2024-09-03 19:22:56 +02:00
90b8fd242d
Add config git.autoStageResolvedConflicts
2024-09-02 18:12:47 +02:00
dbca9306de
Rename "Custom Command" to "Shell Command"
...
The double use of the term "Custom Command" for both shell commands and
user-configured keybindings was confusing.
2024-08-17 10:56:03 +02:00
b9107d5fc8
Support setting the similarity threshold for detecting renames
2024-07-13 14:24:26 +10:00
be21328c69
Allow cycling between multiple log commands
...
- Introduced a new optional user config command, allBranchesLogCmds
- When pressing 'a' in the Status view, cycle between non-empty, non-identical log commands
- There will always be at least one command to run, since allBranhesLogCmd has a default
- Update documentation & write an integration test
- Update translation string
2024-07-06 22:02:47 +10:00
5959f7bc8e
Allow setting a default name when creating new branches
2024-07-06 21:06:28 +10:00
232be05785
feat: squash merge
2024-06-30 11:01:03 +10:00
bd782f16dd
Provide two config keys for configuring the author length in commits view
...
One is for the normal view, the other for the expanded view.
2024-06-29 11:28:44 +02:00
7be82d4713
Revert "Add user config gui.commitAuthorFormat ( #3625 )"
...
This reverts commit 3af545daf7
, reversing
changes made to 629b7ba1b8
.
We changed our mind about this and want to provide different options for
achieving the same thing, but with more flexibility.
2024-06-29 11:28:00 +02:00
68edfa20b4
Add function os.PasteFromClipboard
...
And a user config to override it with a custom command.
2024-06-26 22:20:54 +02:00
db0a1586d9
Highlight inactive selection in bold
...
An inactive selection is one where the view is part of the context stack, but
not the active view. For example, the files view when you enter the staging
panel, or any view when you open a panel.
2024-06-23 14:43:13 +02:00
57f9493770
Add user config gui.commitAuthorFormat
2024-06-15 10:39:50 +04:00
373b1970ca
Show divergence from base branch in branches list
2024-06-03 13:59:43 +02:00
1269938ee6
Add user config expandedSidePanelWeight
2024-06-01 08:21:23 +02:00
4bfda1a78c
Fix boolean config keys not appearing in the generated Config.md
...
The reason why they didn't appear is that they didn't get a default value in the
generated schema; this commit fixes that.
2024-05-31 20:07:58 +02:00
91cb33db85
Remove an outdated comment
...
Lazygit doesn't touch this, the comment is just not true.
I wonder if we need the config at all, actually; I'd be in favor of removing it.
2024-05-31 20:05:44 +02:00
22a38c9f50
Add property outputTitle to CustomCommand
...
It can optionally be used to set the title of the panel that shows the output of
a command (when showOutput is true). If left unset, the command string is used
as the title.
2024-05-20 21:02:49 +02:00
9b152d7619
Make Keybindings definition in UserConfig struct last
...
This makes the generated default config in Config.md match the original
order.
2024-05-19 14:08:27 +02:00
7d787afb2c
Set default value for WindowSize config to pass validation
2024-05-19 14:07:51 +02:00
af842e40d4
Remove unnecesary schema validations in user config
2024-05-19 14:07:40 +02:00
01ff18dd92
Add commitPrefix for defining a prefix for any project
2024-05-01 19:03:12 +02:00