Skip to content

Commit

Permalink
feat: help popup display viewing progress (#2388)
Browse files Browse the repository at this point in the history
  • Loading branch information
wugeer authored Oct 18, 2024
1 parent ba9adf4 commit fb1ba7c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Checkout [THEMES.md](./THEMES.md) for more info.
### Added
* 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)
* 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))
* support help popup display viewing progress[[@wugeer](https://github.com/wugeer)](https://github.com/extrawurst/gitui/pull/2388))

### Fixes
* update yanked dependency to `libc` to fix building with `--locked`.
Expand Down
9 changes: 9 additions & 0 deletions src/popups/help.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,15 @@ impl DrawableComponent for HelpPopup {
chunks[0],
);

ui::draw_scrollbar(
f,
area,
&self.theme,
self.cmds.len(),
self.selection as usize,
ui::Orientation::Vertical,
);

f.render_widget(
Paragraph::new(Line::from(vec![Span::styled(
Cow::from(format!(
Expand Down

0 comments on commit fb1ba7c

Please sign in to comment.