Skip to content

Commit 09cee99

Browse files
committed
feat: support help popup display viewing progress
1 parent 90a2269 commit 09cee99

File tree

5 files changed

+14
-8
lines changed

5 files changed

+14
-8
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Checkout [THEMES.md](./THEMES.md) for more info.
3838
### Added
3939
* due to github runner changes, the regular mac build is now arm64, so we added support for intel x86 apple build in nightlies and releases (via separat artifact)
4040
* support `BUILD_GIT_COMMIT_ID` enabling builds from `git archive` generated source tarballs or other outside a git repo [[@alerque](https://github.com/alerque)] ([#2187](https://github.com/extrawurst/gitui/pull/2187))
41+
* support help popup display viewing progress[[@wugeer](https://github.com/wugeer)](https://github.com/extrawurst/gitui/pull/2388))
4142

4243
### Fixes
4344
* update yanked dependency to `libc` to fix building with `--locked`.

asyncgit/src/sync/commit_filter.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,7 @@ pub fn filter_commit_by_search(
214214

215215
Ok(msg_summary_match
216216
|| msg_body_match
217-
|| file_match
218-
|| authors_match)
217+
|| file_match || authors_match)
219218
},
220219
))
221220
}

src/popups/help.rs

+9
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,15 @@ impl DrawableComponent for HelpPopup {
6767
chunks[0],
6868
);
6969

70+
ui::draw_scrollbar(
71+
f,
72+
area,
73+
&self.theme,
74+
self.cmds.len(),
75+
self.selection as usize,
76+
ui::Orientation::Vertical,
77+
);
78+
7079
f.render_widget(
7180
Paragraph::new(Line::from(vec![Span::styled(
7281
Cow::from(format!(

src/popups/remotelist.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,7 @@ impl RemoteListPopup {
245245
.enumerate()
246246
.map(|(i, remote)| {
247247
let selected = (self.selection as usize
248-
- self.scroll.get_top())
249-
== i;
248+
- self.scroll.get_top()) == i;
250249
let mut remote_name = remote.clone();
251250
if remote_name.len()
252251
> name_length

src/tabs/status.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -686,8 +686,7 @@ impl Status {
686686
strings::commands::select_staging(&self.key_config),
687687
!focus_on_diff,
688688
(self.visible
689-
&& !focus_on_diff
690-
&& self.focus == Focus::WorkDir)
689+
&& !focus_on_diff && self.focus == Focus::WorkDir)
691690
|| force_all,
692691
)
693692
.order(strings::order::NAV),
@@ -697,8 +696,7 @@ impl Status {
697696
strings::commands::select_unstaged(&self.key_config),
698697
!focus_on_diff,
699698
(self.visible
700-
&& !focus_on_diff
701-
&& self.focus == Focus::Stage)
699+
&& !focus_on_diff && self.focus == Focus::Stage)
702700
|| force_all,
703701
)
704702
.order(strings::order::NAV),

0 commit comments

Comments
 (0)