Compare commits
1 Commits
7c6dbf27f2
...
d8911aab9c
Author | SHA1 | Date | |
---|---|---|---|
|
d8911aab9c |
@ -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 |
@ -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));
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user