Compare commits

..

1 Commits

Author SHA1 Message Date
cuddle-please
d8911aab9c chore(release): 0.2.1
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-09-22 12:58:38 +00:00
4 changed files with 5 additions and 6 deletions

View File

@ -18,8 +18,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- *(deps)* update rust crate bytes to v1.7.2
### Other
- clear screen after build
- fix warnings
- update theme for vhs
- *(deps)* update rust crate clap to v4.5.18
- *(deps)* update rust crate pretty_assertions to v1.4.1

Binary file not shown.

Before

Width:  |  Height:  |  Size: 597 KiB

After

Width:  |  Height:  |  Size: 783 KiB

View File

@ -38,7 +38,7 @@ mod app {
crossterm::event::{self, Event, KeyCode},
layout::{Constraint, Layout},
style::{Style, Stylize},
text::{Line, Span},
text::{Line, Span, Text},
widgets::{ListItem, ListState, Paragraph, StatefulWidget},
DefaultTerminal, Frame,
};
@ -67,7 +67,7 @@ mod app {
}
fn update_matched_repos(&mut self) {
let res = self
let mut res = self
.app
.fuzzy_matcher()
.match_repositories(&self.current_search, self.repositories);
@ -102,7 +102,8 @@ mod app {
KeyCode::Esc => return Ok(None),
KeyCode::Enter => {
if let Some(selected) = self.list.selected() {
if let Some(repo) = self.matched_repos.get(selected).cloned() {
if let Some(repo) = self.matched_repos.iter().nth(selected).cloned()
{
return Ok(Some(repo));
}
}

View File

@ -3,7 +3,7 @@ Set Theme "Dracula"
Set Width 1200
Set Height 1000
Hide
Type "cargo run --features example -- --no-cache && clear"
Type "cargo run --features example -- --no-cache"
Enter
Sleep 1s
Show