summaryrefslogtreecommitdiffstats
path: root/pkg/config
AgeCommit message (Collapse)Author
2023-07-30Support opening worktree in editorJesse Duffield
2023-07-30Support creating worktrees from refsJesse Duffield
2023-07-29feat: add os.copyToClipboardCmd to allow for a custom command #1055 (#2784)Jesse Duffield
2023-07-29feat: add os.copyToClipboardCmd to allow for a custom commandRed S
Issue #1055 test: CopyPatchToClipboard (temporary commit for review)
2023-07-26bring back yaml library forkhatredholder
2023-07-14config: rely on .gitconfig for verbose commit messagesScott Callaway
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-13Allow checking for merge conflicts after running a custom commandJesse Duffield
We have a use-case to rebind 'm' to the merge action in the branches panel. There's three ways to handle this: 1) For all global keybindings, define a per-panel key that invokes it 2) Give a name to all controller actions and allow them to be invoked in custom commands 3) Allow checking for merge conflicts after running a custom command so that users can add their own 'git merge' custom command that matches the in-built action Option 1 is hairy, Option 2 though good for users introduces new backwards compatibility issues that I don't want to do right now, and option 3 is trivially easy to implement so that's what I'm doing. I've put this under an 'after' key so that we can add more things later. I'm imagining other things like being able to move the cursor to a newly added item etc. I considered always running this hook by default but I'd rather not: it's matching on the output text and I'd rather something like that be explicitly opted-into to avoid cases where we erroneously believe that there are conflicts.
2023-07-03Color view frame differently when searching/filteringJesse Duffield
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-06-26Rename the gui.skipUnstageLineWarning conf key to gui.skipDiscardChangeWarningStefan Haller
2023-06-26Fix the title and text (and variable names) of the Discard Changes promptStefan Haller
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-15Add nerdFontsVersion configStefan Haller
2023-06-05kakoune binary nameEnrico Borba
2023-06-01show commits against branchesJesse Duffield
2023-06-01Add --all to "git fetch" command when not fetching a specific remoteStefan Haller
2023-05-30Merge pull request #2508 from Ryooooooga/remove-jesseduffield-yamlJesse Duffield
2023-05-29Support suggestions generated from command in custom commandsJesse Duffield
This changes the interface a bit but it was only added earlier today so I doubt anybody is dependent on it yet. I'm also updating the docs.
2023-05-29Add suggestionsPreset to custom commands systemJesse Duffield
2023-05-26More compact and flexible date formatJesse Duffield
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-26Clean up helix editor presetJesse Duffield
2023-05-25Merge pull request #2668 from dvic/add-helix-supportJesse Duffield
2023-05-25Allow global logging when developingJesse Duffield
I'll be honest, for all I know logging should be global in general: it is a pain to pass a logger to any struct that needs it. But smart people on the internet tell me otherwise, and I do like the idea of not having any global variables lying around. Nonetheless, I often need to log things when locally debugging and that's a different kind of logging than the kind you would include in the actual released binary. For example if I want to log something from gocui, I would rather not have gocui depend on lazygit's logging setup.
2023-05-24Add helix editor presetdvic
2023-05-16Add config git.mainBranchesStefan Haller
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-04add comment to encourage keeping code and docs in syncJesse Duffield
2023-05-02Add config gui.experimentalShowBranchHeadsStefan Haller
People find the new (*) display for branch heads in the commits list confusing, so make it opt-in for now.
2023-04-30Split commit message panel into commit summary and commit description panelSean
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-27Add an editor preset for kakoune (kakoune.org).J. B. Rainsberger
2023-04-13Change OpenCommand to Open and OpenLinkCommand to OpenLinkStefan Haller
We do this for consistency with the edit settings. The old names are kept as a fallback for now.
2023-04-13Don't set platform defaults on OSConfig struct immediatelyStefan Haller
Instead, query the platform defaults only if the config is empty. This will be necessary later to distinguish an empty config from a default config, so that we can give deprecation warnings.
2023-04-13Implement edit presetsStefan Haller
2023-04-13Cleanup: fix copy/paste error in commentStefan Haller
2023-03-20Merge pull request #2495 from jesseduffield/feature/remove-altreturnJesse Duffield
2023-03-18Add border config (#2344)yk-kd
Co-authored-by: yk-kd <yosuke.komada@gmail.com>
2023-03-17build: remove `github.com/jesseduffield/yaml` packageRyooooooga
2023-03-09Remove alternative confirmation and return keymappingsLuka Markušić
2023-03-05generated cheatsheets and ran code formattingHumble Penguin
2023-03-05issue #2473Humble Penguin
2023-02-20remove x keybinding for opening menu so we now only use '?'Jesse Duffield
2023-02-20add create tag from commit testJesse Duffield
2023-02-19feat: support to create tag on branchRyooooooga
2023-02-19rename key to PullJesse Duffield
2023-02-01Fixing indent in user_config.goPhanindra kumar Paladi
2023-01-29Merge branch 'master' into #2319_default_screen_modePhanindra Kumar Paladi
2023-01-26Add user config gui.skipRewordInEditorWarningstk
2023-01-16replaced 'screenMode' to 'windowSize' in configPhanindra kumar Paladi
2023-01-11Added screenMode configuration to gui configurationPhanindra kumar Paladi
2023-01-06feat(config): change `git.commit.verbose` to accept "default"Ryooooooga
2023-01-01Add option to allow --verbose commit in editor commitsPaul Horn
2022-12-28Merge pull request #2311 from wakaka6/add_return_alt1Jesse Duffield
2022-12-26chore(config): remove unused configRyooooooga