Skip to content

Conversation

@0x61nas
Copy link
Contributor

@0x61nas 0x61nas commented Oct 5, 2025

Introduce -k,--key-bindings, -s, and --key-symbols arguments to allow the user from specifying a custom config files without having to change the global ones

This Pull Request fixes/closes #2714.

It changes the following:

I followed the checklist:

  • I added unittests
  • I ran make check without errors
  • I tested the overall application
  • I added an appropriate item to the changelog

@0x61nas 0x61nas force-pushed the feat/custom-configs-path branch from c678978 to 5a14779 Compare October 5, 2025 17:42
@extrawurst extrawurst requested a review from cruessler October 28, 2025 15:53
@extrawurst extrawurst added this to the v0.28 milestone Oct 28, 2025
Copy link
Collaborator

@cruessler cruessler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked the PR locally, I didn’t find any issues. There’s just a few suggestions for refactoring and a typo.

Copy link
Collaborator

@cruessler cruessler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn’t mean to approve just yet, this was by mistake.

@extrawurst
Copy link
Collaborator

@0x61nas will move this to the next release

@extrawurst extrawurst modified the milestones: v0.28, v0.29 Nov 28, 2025
@0x61nas
Copy link
Contributor Author

0x61nas commented Nov 28, 2025

sorry I got busy with life issues:(, I will try to get it done by tomorrow

@0x61nas 0x61nas force-pushed the feat/custom-configs-path branch from 942b3c4 to 1339a1d Compare November 29, 2025 07:30
@0x61nas 0x61nas requested a review from cruessler November 29, 2025 07:30
Copy link
Collaborator

@cruessler cruessler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! I tested the changes locally, both the symbols as well as the key bindings were loaded when I started gitui this way: cargo run -- --key-symbols ./key_symbols.ron --key-bindings key_bindings.ron. When the files were not present or when they were malformed, gitui would fall back to the defaults. Thanks a lot!

@extrawurst
Copy link
Collaborator

@0x61nas last thing we need is a changelog entry

@extrawurst extrawurst modified the milestones: v0.29, v0.28 Dec 1, 2025
@0x61nas
Copy link
Contributor Author

0x61nas commented Dec 1, 2025

okie

…e via the cli

Introduce `-k`,`--key-bindings`, `-s`, and `--key-symbols` arguments to allow the user from specifying a custom config files without having to change the global ones

this change is meant to address github issue: gitui-org#2714
Copy link
Collaborator

@extrawurst extrawurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@extrawurst extrawurst merged commit e1029b0 into gitui-org:master Dec 1, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a --config CLI argument

3 participants