Commit graph

985 commits

Author SHA1 Message Date
extrawurst
2374e00302
validate path on startup for gix aswell (#2768)
so far we only try to open using the legacy libgit2 based one
2025-10-29 22:07:46 +01:00
extrawurst
58490961c5
update log (#2766) 2025-10-29 15:27:28 +01:00
extrawurst
1032cccd55
cleanup format strings (#2765) 2025-10-29 13:58:27 +01:00
Kristoffer Plagborg Bak Sørensen
2ced3f9acc
fix: disable blame and history popup for untracked files (#2489)
* fix: disable blame and history popup for untracked files

An untracked file does not have any history data. Right now when
you press `B` for the blame popup or the `H` for the history popup
you get an empty popup where the title spins endlessly trying to find
the file in the commit history, and show relevant information.
This commit disables the two actions in the `StatusTreeComponent`, when the
selected item is a file which is not tracked by git.

---------

Co-authored-by: extrawurst <mail@rusticorn.com>
2025-10-28 22:41:36 +01:00
extrawurst
7c7698d5a2
cleanup some expects (#2754) 2025-10-28 22:40:44 +01:00
xlai89
eb48b3788f
feat: message tab supports pageup and pagedown (gitui-org#2623) (#2730)
Co-authored-by: extrawurst <776816+extrawurst@users.noreply.github.com>
2025-10-28 19:01:33 +01:00
wugeer
7674dae0cc
fix: When the terminal is insufficient to display all the commands, the cmdbar_bg configuration color does not fully take effect (#2348)
Co-authored-by: extrawurst <776816+extrawurst@users.noreply.github.com>
2025-10-28 18:42:54 +01:00
0x61nas
ec65b372e2
refactor(args.rs): make the flags id slices and the default values as a const (#2733)
Co-authored-by: extrawurst <776816+extrawurst@users.noreply.github.com>
2025-10-28 18:03:48 +01:00
linkmauve
88ace76db5
Fix typos (#2740)
Thanks to typos for finding those!

Co-authored-by: extrawurst <776816+extrawurst@users.noreply.github.com>
2025-10-28 16:35:05 +01:00
linkmauve
26a38183cf
Fix all mismatched_lifetime_syntaxes warnings (#2727) 2025-10-28 16:34:42 +01:00
Christoph Rüßler
db211e5ac7
Update gix from 0.71.0 to 0.74.1 (#2745)
* Update gix from 0.71.0 to 0.74.1

* Bump MSRC from 1.81 to 1.82

This is required by `gitoxide` 0.74.

* Address clippy issues

* Add getrandom and rustix to deny.toml

* Document reasons for ignoring duplicates
2025-10-27 18:37:30 +01:00
extrawurst
e5ebb2239f fix nightly error 2025-10-22 10:47:59 +02:00
linkmauve
180368621e
Print a nicer error when failing to create cache directory (#2728)
Same as in 1d2248571d for the config
directory, when the cache directory fails to get created for whichever
reason, we currently exit gitui with a pretty undescriptive error.

Improves on #2684.
Fixes #2652.
2025-10-09 06:01:37 -03:00
Łukasz Sobczak
1d2248571d
Improve error message on config dir error (#2684) 2025-10-02 21:26:12 -03:00
Christoph Rüßler
8bff603a72
Address clippy issues on nightly (#2707) 2025-09-08 10:31:11 +02:00
Christoph Rüßler
57d7d00701
Fix clippy errors on nightly (#2688) 2025-08-05 10:02:26 -07:00
Peer Sommerlund
6d0a2ec115
Minimal docs at module level (#2639) 2025-06-24 09:23:02 +02:00
Peer Sommerlund
dea3d25bcc
Avoid exposing internal tuple in CommitList.marked (#2638)
* Document tuple used in CommitList.marked

* Remove CommitList::marked() to avoid exposing internal structure
2025-05-29 14:12:12 +02:00
Fatpandac
706cdf9243
feat: file and status tab support pageup and pagedown (#2496) 2025-04-21 20:23:05 +02:00
Lena
ee5c243cbf
Improve error messages (#2617) 2025-04-21 20:22:25 +02:00
extrawurst
1205cd620b Revert "Show cursor on panic (#2620)"
This reverts commit 9056e5e75c.
2025-04-18 10:08:02 +02:00
extrawurst
9271b4116e remove duplicate panic handler 2025-04-18 10:05:23 +02:00
Johannes Agricola
9056e5e75c
Show cursor on panic (#2620)
ratatui::Terminal starts by hiding the cursor. If we panic and abort,
that Terminal instance is not dropped, which leaves restoring the cursor
state to us.

Co-authored-by: Naseschwarz <naseschwarz@0x53a.de>
2025-04-18 09:53:25 +02:00
Johannes Agricola
baa1822180
Remove some #[allow]s II (#2616)
Co-authored-by: Naseschwarz <naseschwarz@0x53a.de>
2025-04-18 09:29:06 +02:00
Johannes Agricola
e08d954573
Clean up a few #[allow]s (#2614) 2025-04-16 10:45:08 +02:00
Johannes Agricola
7f88934d05
Bump msrv to 1.81 (#2613)
Co-authored-by: Naseschwarz <naseschwarz@0x53a.de>
2025-04-16 09:21:06 +02:00
extrawurst
cc907996f4
fix latest clippy (#2597) 2025-04-07 16:06:00 +02:00
Johannes Agricola
89f73d2ec2
Disable dotted range commit yanking (#2577)
The algorithm for computing marked_consecutive assumes that commits are
consecutive in the commit graph if they are consecutive in the
linearized log used in` commitlist.rs`. That is not universally correct,
as siblings may also be displayed consecutively in this list.

For now, this just removes generating commit lists in dotted range
notation.

Co-authored-by: Naseschwarz <naseschwarz@0x53a.de>
2025-04-04 15:27:50 +02:00
Clément
65b57c4b60
feat(ui): Add use_selection_fg flag to control selection foreground color (#2515) 2025-03-22 14:11:54 +01:00
Lena
ad32993721
Support loading custom syntax themes from a file (#2565) 2025-03-20 00:31:09 +01:00
Lena
3ede6b56f1
Set the terminal title to gitui ({repo_path}) (#2484) 2025-03-18 19:23:16 +01:00
Vasileios Manolopoulos
597e944af9
Select out of the defaults syntect syntax themes in theme.ron (#2532) 2025-03-16 22:06:28 +01:00
Vasley
4031b0d1a7
Change links to point to gitui-org instead of extrawurst (#2538) 2025-03-16 15:33:28 +01:00
Wessam
4ad2c4b271
Dismiss commit msg key (#2563) 2025-03-16 15:32:43 +01:00
Lena
4ccdeed3a2
Add --logfile (#2539)
Co-authored-by: extrawurst <776816+extrawurst@users.noreply.github.com>
2025-03-16 15:30:02 +01:00
Johannes Agricola
3c1e35eec7
Copy text using OSC52 (#2548)
* Copy text using OSC52 if X/Wayland methods fail
* Move Wayland/X string copying out of copy_string

Copying logic seems too nested to comprehend with the introcution of two
paths towards OSC52 otherwise.

---------

Co-authored-by: Naseschwarz <naseschwarz@0x53a.de>
Co-authored-by: extrawurst <776816+extrawurst@users.noreply.github.com>
2025-03-15 09:33:54 +01:00
Lena
7f30be88e3
Remove redundant to_str() conversion (#2527) 2025-02-21 09:04:27 +01:00
Lena
338dc2f4de
Improve syntax detection (#2524)
* Improve syntax detection

Currently, gitui prioritizes file extensions for syntax detection.
When a file lacks an extension (e.g. Makefile), or the extension
isn't tied to a specific format (e.g. .lock), it disables syntax
highlighting. Gitui will now try to detect the syntax from the entire
filename and the first line of the file using find_syntax_for_file().

---------

Co-authored-by: extrawurst <mail@rusticorn.com>
2025-02-19 14:13:47 +01:00
tommady
50c6562492
fix: File selector should jump back and highlight unstaged files (#2499)
Co-authored-by: extrawurst <mail@rusticorn.com>
2025-01-29 17:30:20 +01:00
extrawurst
66af52ae70 rust 1.84 update 2025-01-09 17:38:44 +01:00
extrawurst
640bf333fc
Fix ci (#2447) 2024-12-10 09:44:01 +01:00
Nicholas R. Smith
94924db632
Support "Copy Path" operation in WSL (#2413) 2024-11-02 18:54:33 +01:00
extrawurst
603116f491
ratatui update (#2403) 2024-10-23 09:34:24 +02:00
Antonio Yang
b4c0244a2a
Bump struct-patch from 0.4.1 to 0.8.6 (#2386) 2024-10-21 09:20:17 +02:00
extrawurst
1866bf5f89 spaces to tabs 2024-10-18 18:14:21 +02:00
wugeer
fb1ba7c0b9
feat: help popup display viewing progress (#2388) 2024-10-18 18:07:35 +02:00
extrawurst
11a0b9b0b7 fix create-remote 2024-09-18 23:47:12 +02:00
extrawurst
7a51dbec4d some comments 2024-09-18 16:52:25 +02:00
Robin
d4f9400e04
Remotes popup (#2350)
Co-authored-by: extrawurst <mail@rusticorn.com>
Co-authored-by: extrawurst <776816+extrawurst@users.noreply.github.com>
2024-09-18 16:31:21 +02:00
extrawurst
9dd3cf30e1 fix crashes for multiline textboxes
for zero width or height terminals
2024-09-17 20:48:04 +02:00